Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Call to undefined method fromShellCommandline and Bad port for SSH connection #178

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
peterpan666 opened this issue Dec 4, 2019 · 8 comments

Comments

@peterpan666
Copy link

  • Envoy Version: 1.6.4
  • PHP Version: 7.2

Description:

Hi, I ran Envoy on CircleCI and got an error I don't have on v1.6.1 I think the bug arrived on 1.6.4. Here is the error I got

Fatal error: Uncaught Error: Call to undefined method Symfony\Component\Process\Process::fromShellCommandline() in /home/circleci/.composer/vendor/laravel/envoy/src/RemoteProcessor.php on line 57

I fixed Envoy version to 1.6.3 and got another error

[-p XX [email protected]]: Bad port ' XX [email protected]'
[✗] This task did not complete successfully on one of your servers.

The SSH port is not 22 on this server.

Everything works fine on Envoy 1.6.1 though.

I use this image on CircleCI circleci/php:7.2-node-browsers

Cheers

@driesvints
Copy link
Member

It seems this method was added only in Symfony 4.2 so I suspect you're running a lower version. Try upgrading symfony. In the meantime I'll whip up a PR to remove support for older versions.

@driesvints
Copy link
Member

We'll probably release Envoy 2.0 soon which will drop support for old versions. We're currently waiting a bit to see how symfony/symfony#32126 plays out before doing the release. In the meantime please use v1.6.1 for now.

@peterpan666
Copy link
Author

Does Envoy use my local symfony components? Or global?

@driesvints
Copy link
Member

@peterpan666 depends if you've installed it locally or globally

@peterpan666
Copy link
Author

It's installed globally, I thought Envoy does not work locally. Envoy is the only package I install globally on the CircleCI image, but I don't know if other packages are shipped with a basic CircleCI image though.

@driesvints
Copy link
Member

I use Envoy locally a lot myself

@driesvints
Copy link
Member

@peterpan666 can you confirm this was fixed if you update tot he latest 4.x version of symfony/process?

@peterpan666
Copy link
Author

peterpan666 commented Jan 6, 2020

Hi Dries,

I can't test it right now 😕

I'll just fix the version of Envoy until 2.0 is released, I've got many projects to maintain and it's the better solution I've got right now.

Thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants