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

Snapshot commands crash when the VMID file doesn't exist. #28

Closed
muk302 opened this issue Sep 9, 2014 · 3 comments
Closed

Snapshot commands crash when the VMID file doesn't exist. #28

muk302 opened this issue Sep 9, 2014 · 3 comments

Comments

@muk302
Copy link

muk302 commented Sep 9, 2014

I receive the following stack trace when running any of the snapshot commands. As it turns out, I 'vagrant destroy' before each new test instance I run. It would be nice to get a simple error message stating that the VMID file does not exist for that environment.
I will test things without the 'vagrant destroy' command and provide an update.
Example stack trace for the list command:

Listing snapshots for 'win764ult_rtm_avg':
INFO subprocess: Starting process: ["/usr/bin/VBoxManage", "snapshot", nil, "list", "--details"]
INFO environment: Running hook: environment_unload
INFO host: Autodetecting host type for [#<Vagrant::Environment: /home/tester/ba>]
INFO host: Detected: linux!
INFO runner: Preparing hooks for middleware sequence...
INFO runner: 1 hooks defined.
INFO runner: Running action: #Vagrant::Action::Builder:0x0000000231d920
/opt/vagrant/embedded/gems/gems/childprocess-0.5.3/lib/childprocess/abstract_process.rb:45:in initialize': all arguments must be String: ["/usr/bin/VBoxManage", "snapshot", nil, "list", "--details"] (ArgumentError) from /opt/vagrant/embedded/gems/gems/childprocess-0.5.3/lib/childprocess.rb:19:innew'
from /opt/vagrant/embedded/gems/gems/childprocess-0.5.3/lib/childprocess.rb:19:in new' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/util/subprocess.rb:64:inexecute'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/util/subprocess.rb:22:in execute' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.5/plugins/providers/virtualbox/driver/base.rb:372:inblock in raw'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/util/busy.rb:19:in busy' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.5/plugins/providers/virtualbox/driver/base.rb:371:inraw'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.5/plugins/providers/virtualbox/driver/base.rb:310:in block in execute' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/util/retryable.rb:17:inretryable'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.5/plugins/providers/virtualbox/driver/base.rb:305:in execute' from /home/tester/.vagrant.d/gems/gems/vagrant-vbox-snapshot-0.0.5/lib/vagrant-vbox-snapshot/commands/list.rb:20:inblock in execute'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/plugin/v2/command.rb:226:in block in with_target_vms' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/plugin/v2/command.rb:220:ineach'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/plugin/v2/command.rb:220:in with_target_vms' from /home/tester/.vagrant.d/gems/gems/vagrant-vbox-snapshot-0.0.5/lib/vagrant-vbox-snapshot/commands/list.rb:17:inexecute'
from /home/tester/.vagrant.d/gems/gems/vagrant-vbox-snapshot-0.0.5/lib/vagrant-vbox-snapshot/commands/root.rb:50:in execute' from /opt/vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/cli.rb:42:inexecute'
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.5/lib/vagrant/environment.rb:292:in cli' from /opt/vagrant/bin/../embedded/gems/gems/vagrant-1.6.5/bin/vagrant:174:in

'

@muk302
Copy link
Author

muk302 commented Sep 9, 2014

I have an existing .box. Result of a 'vagrant status'.
win8164pro poweroff (virtualbox)

When I run:
vagrant snapshot list win8164pro, I get the following error on this vbox which incidentally has no snapshots. This is not related to this thread, but thought I'd mention it.

Listing snapshots for 'win8164pro':
This machine does not have any snapshots

There was an error while executing VBoxManage, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["snapshot", "74854aea-b467-4862-ab21-97b8e1c393de", "list", "--details"]

Stderr:

@dergachev
Copy link
Owner

@dergachev
Copy link
Owner

@muk302 your second comment is a duplicate of #17
I'm working on the issue in the first comment now.

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