Closed jflheureux closed 11 years ago
I've seen this before but thought it was resolved by using the Opscode Base Box. You can try switching the NodeJs Install Method in the vagrantfile from package to source or removing it completely. It looks to me like Apt for node isn't working correctly.
Thank you very much. It worked. I had a little trouble with the VM I already started provisionning. I had to delete all the files, clone the git repo again and redo the steps. I now have it working.
I am running into a similar issue, details of the error message I am getting is here http://pastebin.com/WdErvcjM
However, I don't quite follow the resolution shoebappa has given here. Could some more details be provided? Thank you.
I installed latest versions of Git (1.8.3), VirtualBox (4.2.12-84980), Vagrant (1.2.2) and Berkshelf Vagrant Plugin and successfully executed the steps before "vagrant up" command.
The first time I executed the command in PowerShell, I had the same error as below. I tried to SSH to the VM but it did not had "mrt" installed on it. I shutdown the VM in VirtualBox and ran "vagrant up" again. I has the same error below.
Do you think it's related to the Berkshelf message "This version of the Berkshelf plugin has not been fully tested on this version of Vagrant."? Do I need to run an older version of Vagrant?
PS E:\Projects\Other\Vagrant\meteor> vagrant up Bringing machine 'default' up with 'virtualbox' provider... [default] Setting the name of the VM... [default] Clearing any previously set forwarded ports... ←[33m[Berkshelf] This version of the Berkshelf plugin has not been fully tested on this version of Vagrant.←[0m ←[33m[Berkshelf] You should check for a newer version of vagrant-berkshelf.←[0m ←[33m[Berkshelf] If you encounter any errors with this version, please report them at https://github.com/RiotGames/vagrant-berkshelf/issues←[0m ←[33m[Berkshelf] You can also join the discussion in #berkshelf on Freenode.←[0m [Berkshelf] Updating Vagrant's berkshelf: 'C:/Users/jflheureux/.berkshelf/vagrant/berkshelf-20130612-4472-1j9so55' [Berkshelf] Using meteor_windows (0.0.1) at path: 'E:/Projects/Other/Vagrant/meteor/cookbooks/meteor_windows' [Berkshelf] Using apt (2.0.0) [Berkshelf] Using build-essential (1.4.0) [Berkshelf] Using nodejs (1.1.2) [Berkshelf] Using git (2.5.2) [Berkshelf] Using dmg (1.1.0) [Berkshelf] Using yum (2.2.4) [Berkshelf] Using windows (1.9.0) [Berkshelf] Using chef_handler (1.1.4) [Berkshelf] Using runit (1.1.4) [Berkshelf] Using curl (1.1.0) [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] Running any VM customizations... [default] Booting VM... [default] Waiting for VM to boot. This can take a few minutes. [default] VM booted and ready for use! [default] Configuring and enabling network interfaces... [default] Mounting shared folders... [default] -- /vagrant [default] -- /tmp/vagrant-chef-1/chef-solo-1/cookbooks [default] Running provisioner: chef_solo... Generating chef JSON and uploading... Running chef-solo... stdin: is not a tty [2013-06-13T01:48:18+00:00] INFO: * Chef 11.4.4 * [2013-06-13T01:48:18+00:00] INFO: Setting the run_list to ["recipe[meteor_windows]"] from JSON [2013-06-13T01:48:18+00:00] INFO: Run List is [recipe[meteor_windows]] [2013-06-13T01:48:18+00:00] INFO: Run List expands to [meteor_windows] [2013-06-13T01:48:18+00:00] INFO: Starting Chef Run for vagrant.vm [2013-06-13T01:48:18+00:00] INFO: Running start handlers [2013-06-13T01:48:18+00:00] INFO: Start handlers complete. [2013-06-13T01:48:21+00:00] WARN: Cloning resource attributes for package[curl] from prior resource (CHEF-3694) [2013-06-13T01:48:21+00:00] WARN: Previous package[curl]: /tmp/vagrant-chef-1/chef-solo-1/cookbooks/nodejs/recipes/npm.rb:23:in `from_file'
[2013-06-13T01:48:21+00:00] INFO: Install Meteorite: true [2013-06-13T01:48:21+00:00] INFO: Meteor Command: mrt [2013-06-13T01:48:21+00:00] INFO: Config: [2013-06-13T01:48:21+00:00] INFO: Creating Meteor App: InSyncClients [2013-06-13T01:48:21+00:00] INFO: Processing execute[apt-get-update] action run (apt::default line 22) [2013-06-13T01:48:21+00:00] INFO: Processing execute[apt-get update] action nothing (apt::default line 29) [2013-06-13T01:48:21+00:00] INFO: Processing execute[apt-get autoremove] action nothing (apt::default line 36) [2013-06-13T01:48:21+00:00] INFO: Processing execute[apt-get autoclean] action nothing (apt::default line 42) [2013-06-13T01:48:21+00:00] INFO: Processing package[update-notifier-common] action install (apt::default line 48) [2013-06-13T01:48:21+00:00] INFO: Processing execute[apt-get-update-periodic] action run (apt::default line 52) [2013-06-13T01:48:21+00:00] INFO: Processing directory[/var/cache/local] action create (apt::default line 62) [2013-06-13T01:48:21+00:00] INFO: Processing directory[/var/cache/local/preseeding] action create (apt::default line 62)
[2013-06-13T01:48:21+00:00] INFO: Processing package[autoconf] action install (build-essential::debian line 40) [2013-06-13T01:48:21+00:00] INFO: Processing package[binutils-doc] action install (build-essential::debian line 40) [2013-06-13T01:48:21+00:00] INFO: Processing package[bison] action install (build-essential::debian line 40) [2013-06-13T01:48:21+00:00] INFO: Processing package[build-essential] action install (build-essential::debian line 40) [2013-06-13T01:48:21+00:00] INFO: Processing package[flex] action install (build-essential::debian line 40) [2013-06-13T01:48:21+00:00] INFO: Processing apt_repository[node.js] action add (nodejs::install_from_package line 32) [2013-06-13T01:48:21+00:00] INFO: Processing execute[install-key C7917B12] action run (/tmp/vagrant-chef-1/chef-solo-1/cookbooks/apt/providers/repository.rb line 28) ←[0m
================================================================================←[0m
←[31mError executing action
run
on resource 'execute[install-key C7917B12]'←[0m================================================================================←[0m
←[0m
Mixlib::ShellOut::ShellCommandFailed←[0m
------------------------------------←[0m
Expected process to exit with [0], but received '2' ---- Begin output of apt-key adv --keyserver keyserver.ubuntu.com --recv C7917B12 ---- STDOUT: Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.fYdzKLhFmL --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv C7917B12 STDERR: gpg: requesting key C7917B12 from hkp server keyserver.ubuntu.com gpg: keyserver timed out gpg: keyserver receive failed: keyserver error ---- End output of apt-key adv --keyserver keyserver.ubuntu.com --recv C7917B12 ---- Ran apt-key adv --keyserver keyserver.ubuntu.com --recv C7917B12 returned 2←[0m
←[0m
Resource Declaration:←[0m
---------------------←[0m
In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/apt/providers/repository.rb
28: execute "install-key #{key}" do 29: if !node['apt']['key_proxy'].empty? 30: command "apt-key adv --keyserver-options http-proxy=#{node['apt']['key_proxy']} --keyserver #{keyserver} --recv #{key}" 31: else 32: command "apt-key adv --keyserver #{keyserver} --recv #{key}" 33: end 34: action :run ←[0m
←[0m
Compiled Resource:←[0m
------------------←[0m
Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/apt/providers/repository.rb:28:in `install_key_from_keyserver'
execute("install-key C7917B12") do action [:run] retries 0 retry_delay 2 command "apt-key adv --keyserver keyserver.ubuntu.com --recv C7917B12" backup 5 returns 0 cookbook_name :nodejs not_if "apt-key list | grep C7917B12" end ←[0m
←[0m
[2013-06-13T01:50:21+00:00] INFO: Running queued delayed notifications before re-raising exception ←[0m
================================================================================←[0m
←[31mError executing action
add
on resource 'apt_repository[node.js]'←[0m================================================================================←[0m
←[0m
Mixlib::ShellOut::ShellCommandFailed←[0m
------------------------------------←[0m
execute[install-key C7917B12](/tmp/vagrant-chef-1/chef-solo-1/cookbooks/apt/providers/repository.rb line 28) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '2' ---- Begin output of apt-key adv --keyserver keyserver.ubuntu.com --recv C7917B12 ---- STDOUT: Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.fYdzKLhFmL --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv C7917B12 STDERR: gpg: requesting key C7917B12 from hkp server keyserver.ubuntu.com gpg: keyserver timed out gpg: keyserver receive failed: keyserver error ---- End output of apt-key adv --keyserver keyserver.ubuntu.com --recv C7917B12 ---- Ran apt-key adv --keyserver keyserver.ubuntu.com --recv C7917B12 returned 2←[0m
←[0m
Resource Declaration:←[0m
---------------------←[0m
In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/nodejs/recipes/install_from_package.rb
32: apt_repository 'node.js' do 33: uri repo 34: distribution node['lsb']['codename'] 35: components ['main'] 36: keyserver "keyserver.ubuntu.com" 37: key "C7917B12" 38: action :add 39: end 40: when 'smartos' ←[0m
←[0m Compiled Resource:←[0m ------------------←[0m
Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/nodejs/recipes/install_from_package.rb:32:in `from_file'
apt_repository("node.js") do action [:add] retries 0 retry_delay 2 cookbook_name :nodejs recipe_name "install_from_package" uri "http://ppa.launchpad.net/chris-lea/node.js/ubuntu" distribution "precise" components ["main"] keyserver "keyserver.ubuntu.com" key "C7917B12" cache_rebuild true end ←[0m
←[0m [2013-06-13T01:50:21+00:00] INFO: Running queued delayed notifications before re-raising exception [2013-06-13T01:50:21+00:00] ERROR: Running exception handlers [2013-06-13T01:50:21+00:00] ERROR: Exception handlers complete [2013-06-13T01:50:21+00:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out [2013-06-13T01:50:21+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: apt_repository[node.js](nodejs::install_from_package line 32) had an error: Mixlib::ShellOut::ShellCommandFailed: execute[install-key C7917B12](/tmp/vagrant-chef-1/chef-solo-1/cookbooks/apt/providers/repository.rb line 28) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '2' ---- Begin output of apt-key adv --keyserver keyserver.ubuntu.com --recv C7917B12 ---- STDOUT: Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.fYdzKLhFmL --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv C7917B12 STDERR: gpg: requesting key C7917B12 from hkp server keyserver.ubuntu.com gpg: keyserver timed out gpg: keyserver receive failed: keyserver error ---- End output of apt-key adv --keyserver keyserver.ubuntu.com --recv C7917B12 ---- Ran apt-key adv --keyserver keyserver.ubuntu.com --recv C7917B12 returned 2 Chef never successfully completed! Any errors should be visible in the output above. Please fix your recipes so that they properly complete.