RafaelGorski / VagrantChefHubot

Vagrant configuration using Chef Solo to bootstrap a Hubot using Skype as client.
http://bit.ly/1gLHVLE
6 stars 0 forks source link

Error on loading Vagrant #5

Closed lbiazao closed 11 years ago

lbiazao commented 11 years ago

claw@CLAW-VAIO ~/app/VagrantChefHubot/cookbooks (master) $ cookbooks-update.sh Cloning into 'nodejs'... remote: Counting objects: 105, done. remote: Compressing objects: 100% (51/51), done. rRemote: Total 105 (delta 49), reused 98 (delta 42)eceiving objects: 21% (23/10 Receiving objects: 30% (32/105) Receiving objects: 100% (105/105), 12.57 KiB | 0 bytes/s, done. Resolving deltas: 100% (49/49), done. Cloning into 'build-essential'... remote: Counting objects: 290, done. remote: Compressing objects: 100% (173/173), done. rRemote: Total 290 (delta 139), reused 227 (delta 85)eceiving objects: 16% (47/

Receiving objects: 100% (290/290), 41.44 KiB | 0 bytes/s, done. Resolving deltas: 100% (139/139), done. Cloning into 'git'... remote: Counting objects: 496, done. remote: Compressing objects: 100% (277/277), done. rReceiving objects: 92emote: Total 496 (delta 233), reused 441 (delta 186) Receiving objects: 94% (467/496), 60.00 KiB | 111.00 KiB/s Receiving objects: 100% (496/496), 72.52 KiB | 111.00 KiB/s, done. Resolving deltas: 100% (233/233), done. Cloning into 'apt'... remote: Counting objects: 1068, done. remote: Compressing objects: 100% (584/584), done. rRemote: Total 1068 (delta 478), reused 953 (delta 373)eceiving objects: 96% (1

Receiving objects: 100% (1068/1068), 163.70 KiB | 138.00 KiB/s, done. Resolving deltas: 100% (478/478), done.

claw@CLAW-VAIO ~/app/VagrantChefHubot/cookbooks (master) $ vagrant up; Bringing machine 'default' up with 'virtualbox' provider... [default] Box 'lucid32' was not found. Fetching box from specified URL for the provider 'virtualbox'. Note that if the URL does not have a box for this provider, you should interrupt Vagrant now and add the box yourself. Otherwise Vagrant will attempt to download the full box prior to discovering this error. Downloading or copying the box... ←[0KExtracting box...ate: 247k/s, Estimated time remaining: --:--:--) Successfully added box 'lucid32' with provider 'virtualbox'! [default] Importing base box 'lucid32'... ←[0K[default] Matching MAC address for NAT networking... [default] Setting the name of the VM... [default] Clearing any previously set forwarded ports... [default] Creating shared folders metadata... [default] Clearing any previously set network interfaces... [default] Preparing network interfaces based on configuration... [default] Forwarding ports... [default] -- 22 => 2222 (adapter 1) [default] Booting VM... [default] Waiting for VM to boot. This can take a few minutes. [default] Forcing shutdown of VM... [default] Destroying VM and associated drives... c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib/vagrant/util /retryable.rb:19:in rescue in retryable': undefined method-' for "50000":Stri ng (NoMethodError) from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/util/retryable.rb:16:in retryable' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/plu gins/communicators/ssh/communicator.rb:199:inconnect' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/plu gins/communicators/ssh/communicator.rb:38:in ready?' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/plu gins/providers/virtualbox/action/boot.rb:26:inblock in wait_for_boot' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/plu gins/providers/virtualbox/action/boot.rb:25:in times' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/plu gins/providers/virtualbox/action/boot.rb:25:inwait_for_boot' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/plu gins/providers/virtualbox/action/boot.rb:17:in call' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/warden.rb:34:incall' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/plu gins/providers/virtualbox/action/customize.rb:38:in call' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/warden.rb:34:incall' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/plu gins/providers/virtualbox/action/sane_defaults.rb:49:in call' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/warden.rb:34:incall' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/builtin/set_hostname.rb:16:in call' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/warden.rb:34:incall' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/plu gins/providers/virtualbox/action/forward_ports.rb:31:in call' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/warden.rb:34:incall' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/plu gins/providers/virtualbox/action/network.rb:105:in call' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/warden.rb:34:incall' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/plu gins/providers/virtualbox/action/clear_network_interfaces.rb:26:in call' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/warden.rb:34:incall' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/plu gins/providers/virtualbox/action/share_folders.rb:25:in call' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/warden.rb:34:incall' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/plu gins/providers/virtualbox/action/clear_shared_folders.rb:12:in call' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/warden.rb:34:incall' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/plu gins/providers/virtualbox/action/prepare_nfs_settings.rb:11:in call' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/warden.rb:34:incall' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/builtin/nfs.rb:30:in call' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/warden.rb:34:incall' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/plu gins/providers/virtualbox/action/prune_nfs_exports.rb:15:in call' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/warden.rb:34:incall' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/builtin/handle_forwarded_port_collisions.rb:118:in call' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/warden.rb:34:incall' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/plu gins/providers/virtualbox/action/prepare_forwarded_port_collision_params.rb:30:i n call' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/warden.rb:34:incall' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/builtin/env_set.rb:19:in call' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/warden.rb:34:incall' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/builtin/provision.rb:45:in call' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/warden.rb:34:incall' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/plu gins/providers/virtualbox/action/clear_forwarded_ports.rb:13:in call' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/warden.rb:34:incall' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/plu gins/providers/virtualbox/action/set_name.rb:35:in call' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/warden.rb:34:incall' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/plu gins/providers/virtualbox/action/clean_machine_folder.rb:17:in call' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/warden.rb:34:incall' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/plu gins/providers/virtualbox/action/check_accessible.rb:18:in call' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/warden.rb:34:incall' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/runner.rb:61:in block in run' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/util/busy.rb:19:inbusy' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/runner.rb:61:in run' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/builtin/call.rb:51:incall' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/warden.rb:34:in call' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/runner.rb:61:inblock in run' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/util/busy.rb:19:in busy' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/runner.rb:61:inrun' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/builtin/call.rb:51:in call' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/warden.rb:34:incall' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/runner.rb:61:in block in run' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/util/busy.rb:19:inbusy' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/runner.rb:61:in run' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/builtin/call.rb:51:incall' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/warden.rb:34:in call' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/builtin/config_validate.rb:25:incall' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/warden.rb:34:in call' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/plu gins/providers/virtualbox/action/check_virtualbox.rb:17:incall' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/warden.rb:34:in call' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/builtin/call.rb:57:incall' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/warden.rb:34:in call' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/builtin/config_validate.rb:25:incall' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/warden.rb:34:in call' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/builtin/call.rb:57:incall' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/warden.rb:34:in call' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/plu gins/providers/virtualbox/action/check_virtualbox.rb:17:incall' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/warden.rb:34:in call' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/builder.rb:116:incall' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/runner.rb:61:in block in run' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/util/busy.rb:19:inbusy' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/action/runner.rb:61:in run' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/machine.rb:147:inaction' from c:/Program Files (x86)/vagrant/embedded/gems/gems/vagrant-1.2.7/lib /vagrant/batch_action.rb:63:in `block (2 levels) in run'

RafaelGorski commented 11 years ago

@lbiazao , please try the following:

   vagrant destroy
   # yes 
   vagrant up;

Sometimes we got this errors, then I just redo the VM again and works!

lbiazao commented 11 years ago

I have tested the this commands but the same problem keeps happening. I have removed the box lucid32 and started downloading all over again to test. I hope it helps.

lbiazao commented 11 years ago

http://docs-v1.vagrantup.com/v1/docs/getting-started/ Reading at Vagrant Website I have found that we need first to use the commands:

vagrant init lucid32; vagrant up;

Here is the result...

$ vagrant init lucid32 A Vagrantfile has been placed in this directory. You are now ready to vagrant up your first virtual environment! Please read the comments in the Vagrantfile as well as documentation on vagrantup.com for more information on using Vagrant.

claw@CLAW-VAIO ~/app/VagrantChefHubot/cookbooks (master) $ vagrant up Bringing machine 'default' up with 'virtualbox' provider... [default] Importing base box 'lucid32'... ←[0K[default] Matching MAC address for NAT networking... [default] Setting the name of the VM... [default] Clearing any previously set forwarded ports... [default] Creating shared folders metadata... [default] Clearing any previously set network interfaces... [default] Preparing network interfaces based on configuration... [default] Forwarding ports... [default] -- 22 => 2222 (adapter 1) [default] Booting VM... [default] Waiting for VM to boot. This can take a few minutes. [default] VM booted and ready for use! [default] Mounting shared folders... [default] -- /vagrant

RafaelGorski commented 11 years ago

It is odd :) , in fact when you run vagrant up it suppose to download automatically the vm(lucid32) , lets make a google hangout and figure out the problem.

RafaelGorski commented 11 years ago

@lbiazao let me know when it best for you.

lbiazao commented 11 years ago

I have noticed that the problem happen sometimes without any reason after the recommended:

vagrant destroy and vagrat up The problem didn't repeat.