Skip to content
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

Better feedback for failing SSH commands. #2616

Closed
wants to merge 2 commits into from

Conversation

danepowell
Copy link
Contributor

@danepowell danepowell commented Feb 14, 2017

If you are running Drush commands on a remote host and SSH fails for any reason (say, because you forgot to spin up your DrupalVM or Vagrant Box, or the remote host is unavailable), you have to wait two minutes to find out that there's anything wrong, and then Drush silently exits with no indication of any error. Needless to say, this is a pretty bad UX and causes a lot of confusion and issue churn (just search the issue queue for "SSH").

This is a fairly simple solution. It's a little tricky to determine if a failed command is due to a problem with SSH or something else, so it's possible that this could produce false positives. If we want to make it more selective, we could just check for an error_status of 255, which indicates SSH failed to connect. And maybe verify that SSH was actually used to call the command. Let me know where you want to go with it.

@greg-1-anderson
Copy link
Member

Sorry that I missed seeing this PR last year. This year, Drush has replaced backend invoke with the Symfony Process component. Please test the latest master branch and see if it is working to expectations.

@weitzman
Copy link
Member

ssh failures are reported immediately in master.

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

Successfully merging this pull request may close these issues.

3 participants