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

reload doesn't retry ssh after the first ssh connection attempt times out #275

Closed
gsauthof opened this issue Feb 4, 2018 · 1 comment
Closed

Comments

@gsauthof
Copy link

gsauthof commented Feb 4, 2018

Currently, a vagrant reload always fails with this scary message:

==> dropletname: Rebooting the droplet...
Guest-specific operations were attempted on a machine that is not
ready for guest communication. This should not happen and a bug
should be reported.

Turning on debug output (--debug) one can see that vagrant immediately tries to ssh into the droplet (synced_folders: Invoking synced folder prepare for: rsync and then Attempting SSH connection...) after it has received the digitalocean API completion response ("status"=>"completed", "type"=>"reboot").

There doesn't seem to be any attempts at retrying to establish an ssh connection.

Right before the error message, the debug log contains:

DEBUG ssh: == Net-SSH connection debug-level log START ==
DEBUG ssh: D, [2018-02-04T21:23:24.995675 #25399] DEBUG -- 
net.ssh.transport.session[2ac0395acfc0]: establishing connection to XXX.XXX.XXX.XXX:22
DEBUG ssh: == Net-SSH connection debug-level log END ==
 INFO ssh: SSH not up: #<Vagrant::Errors::NetSSHException: An error occurred in the
    underlying SSH library that Vagrant uses.
The error message is shown below. In many cases, errors from this
library are caused by ssh-agent issues. Try disabling your SSH
agent or removing some keys and try again.
If the problem persists, please report a bug to the net-ssh project.
Net::SSH::ConnectionTimeout>

Related issues:

I'm opening a new issue, because #219 is about a hard coded timeout not being enough - but AFAICS with the above there isn't any timeout logic at work, at all.

Used versions:

  • Fedora 26
  • vagrant-1.9.1-3.fc26.noarch
    - vagrant-digitalocean-0.9.0-3.fc26.noarch
@seth-reeser
Copy link
Member

Hello, are you still having this issue? Either way if you could please reply with a solution or any further findings to help move you along that would be great.

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

No branches or pull requests

2 participants