Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Vagrant aws terminates instance at startup after rsync. #98

Open
neillturner opened this issue Jun 17, 2013 · 3 comments
Open

Vagrant aws terminates instance at startup after rsync. #98

neillturner opened this issue Jun 17, 2013 · 3 comments

Comments

@neillturner
Copy link

Vagrant AWS on windows using RubyInstaller Ruby 193 and same issue Ruby 187.

DEBUG ssh: == Net-SSH connection debug-level log END ==
INFO ssh: SSH is ready!
INFO run_instance: Time for SSH ready: 16.245227098464966
INFO interface: info: Machine is booted and ready for use!
[default] Machine is booted and ready for use!
INFO machine: Calling action: read_ssh_info on provider AWS (i-fd4c9f90)
INFO runner: Running action: #Vagrant::Action::Builder:0x2ade2d0
INFO warden: Calling action: #<Vagrant::Action::Builtin::ConfigValidate:0x2aa28
58>
INFO warden: Calling action: #<VagrantPlugins::AWS::Action::ConnectAWS:0x2aa276
8>
INFO connect_aws: Connecting to AWS...
INFO warden: Calling action: #<VagrantPlugins::AWS::Action::ReadSSHInfo:0x2f2dc
58>
INFO interface: info: Rsyncing folder: C:/repository/vagrant/base/ => /vagrant
[default] Rsyncing folder: C:/repository/vagrant/base/ => /vagrant
DEBUG ssh: Re-using SSH connection.
INFO ssh: Execute: mkdir -p '/vagrant' (sudo=true)
DEBUG ssh: stderr: stdin: is not a tty

DEBUG ssh: Exit status: 0
DEBUG ssh: Re-using SSH connection.
INFO ssh: Execute: chown ubuntu '/vagrant' (sudo=true)
DEBUG ssh: stderr: stdin: is not a tty

DEBUG ssh: Exit status: 0
INFO subprocess: Starting process: ["rsync", "--verbose", "--archive", "-z", "-
-exclude", ".vagrant/", "-e", "ssh -p 22 -o StrictHostKeyChecking=no -i 'C:/repo
sitory/keys/us_east.pem'", "C:/repository/vagrant/base/",
"[email protected]:/vagrant"]
ERROR warden: Error occurred: Unknown error (Windows says "The operation complet
ed successfully.", but it did not.)
INFO warden: Beginning recovery process...
INFO warden: Calling recover: #<VagrantPlugins::AWS::Action::RunInstance:0x3134
838>
INFO machine: Calling action: read_state on provider AWS (i-fd4c9f90)
INFO runner: Running action: #Vagrant::Action::Builder:0x2ad0878
INFO warden: Calling action: #<Vagrant::Action::Builtin::ConfigValidate:0x2aa51
08>
INFO warden: Calling action: #<VagrantPlugins::AWS::Action::ConnectAWS:0x2aa50c
0>
INFO connect_aws: Connecting to AWS...
INFO warden: Calling action: #<VagrantPlugins::AWS::Action::ReadState:0x2f1fa50

INFO runner: Running action: #Vagrant::Action::Builder:0x312eb20
INFO warden: Calling action: #<Vagrant::Action::Builtin::ConfigValidate:0x4383c
c0>
INFO warden: Calling action: #<VagrantPlugins::AWS::Action::ConnectAWS:0x4383ca
8>
INFO connect_aws: Connecting to AWS...
INFO warden: Calling action: #<VagrantPlugins::AWS::Action::TerminateInstance:0
x436f9b0>
INFO interface: info: Terminating the instance...
[default] Terminating the instance...
INFO warden: Recovery complete.
INFO warden: Beginning recovery process...
INFO warden: Recovery complete.
ERROR warden: Error occurred: Unknown error (Windows says "The operation complet
ed successfully.", but it did not.)
INFO warden: Beginning recovery process...
INFO warden: Calling recover: #Vagrant::Action::Builtin::Call:0x313bc60
INFO warden: Beginning recovery process...
INFO warden: Recovery complete.
INFO warden: Recovery complete.
INFO warden: Beginning recovery process...
INFO warden: Recovery complete.
INFO warden: Beginning recovery process...
INFO warden: Recovery complete.
INFO environment: Running hook: environment_unload
INFO runner: Running action: #Vagrant::Action::Builder:0x456d560
C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/util/subproces
s.rb:84:in rescue in execute': Unknown error (Windows says "The operation compl eted successfully.", but it did not.) (Vagrant::Util::Subprocess::LaunchError) from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/u til/subprocess.rb:77:inexecute'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/u
til/subprocess.rb:23:in execute' from C:/Users/neillturner/.vagrant.d/gems/gems/vagrant-aws-0.2.2/lib/vag rant-aws/action/sync_folders.rb:55:inblock in call'
from C:/Users/neillturner/.vagrant.d/gems/gems/vagrant-aws-0.2.2/lib/vag
rant-aws/action/sync_folders.rb:25:in each' from C:/Users/neillturner/.vagrant.d/gems/gems/vagrant-aws-0.2.2/lib/vag rant-aws/action/sync_folders.rb:25:incall'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a
ction/warden.rb:34:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a ction/builtin/provision.rb:45:incall'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a
ction/warden.rb:34:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a ction/runner.rb:61:inblock in run'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/u
til/busy.rb:19:in busy' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a ction/runner.rb:61:inrun'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a
ction/builtin/call.rb:51:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a ction/warden.rb:34:incall'
from C:/Users/neillturner/.vagrant.d/gems/gems/vagrant-aws-0.2.2/lib/vag
rant-aws/action/connect_aws.rb:41:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a ction/warden.rb:34:incall'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a
ction/builtin/config_validate.rb:25:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a ction/warden.rb:34:incall'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a
ction/builder.rb:116:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a ction/runner.rb:61:inblock in run'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/u
til/busy.rb:19:in busy' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/a ction/runner.rb:61:inrun'
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/m
achine.rb:147:in action' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.2.2/lib/vagrant/b atch_action.rb:63:inblock (2 levels) in run'

@miguno
Copy link

miguno commented Jul 3, 2013

Seems like a duplicate of #72 .

@mgeens
Copy link

mgeens commented Jul 29, 2013

I think it's separate from #72 . Fixing the tty permission issue still gives this error. I'm also using RubyInstaller 193 on Windows.

@mgeens
Copy link

mgeens commented Jul 29, 2013

Looking at the logging, I'd guess the problem is that the plugin shells out to the rsync command, which isn't going to be present on Windows.

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

No branches or pull requests

3 participants