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 --provision ssh too fast #179

Closed
emsi opened this issue Feb 6, 2015 · 3 comments
Closed

reload --provision ssh too fast #179

emsi opened this issue Feb 6, 2015 · 3 comments

Comments

@emsi
Copy link

emsi commented Feb 6, 2015

vagrant reload --provision is performing ssh too fast and spits:

SSH connection was refused! This usually happens if the VM failed to
boot properly. Some steps to try to fix this: First, try reloading your
VM with vagrant reload, since a simple restart sometimes fixes things.
If that doesn't work, destroy your VM and recreate it with a vagrant destroy
followed by a vagrant up. If that doesn't work, contact a Vagrant
maintainer (support channels listed on the website) for more assistance.

I checked by looking at Digitalocean console that the machine is not 100% ready yet at that time.
Almost immediately after this error vagerant ssh works like a charm.

@ghost
Copy link

ghost commented May 2, 2015

Same here..

@ghost
Copy link

ghost commented May 2, 2015

I just figured out a solution. It's hacky, but ya

  1. sudo find / -type f -name "reload.rb", to find following file
    https://github.com/smdahlen/vagrant-digitalocean/blob/master/lib/vagrant-digitalocean/actions/reload.rb

  2. add
    puts "Wait 30 seconds"
    sleep 30
    above # wait for request to complete

@seth-reeser
Copy link
Member

Duplicates #219

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