Closed sonicparke closed 11 years ago
You can try re-pulling or just add the npm version in your Vagrantfile
chef.json = {
:nodejs => {
:install_method => "package",
:npm => "1.3.4"
},
It works! Thanks! I just re-pulled and started over and it went fine this time. Thanks a lot for making this so much easier.
I've been trying to figure this one out on my own but I haven't had any luck with it yet. I've tried to provision Meteor on Vagrant 3 times so far and keep getting the same error. I've done all the pre-req's and everything seems to be in order so I'm not sure why it's failing. Have you ever seen this before?
c:\brad\meteorprojects\recital>vagrant up Bringing machine 'default' up with 'virtualbox' provider... [default] Importing base box 'opscode32'... ←[0K[default] Matching MAC address for NAT networking... [default] Setting the name of the VM... [default] Clearing any previously set forwarded ports... [Berkshelf] Updating Vagrant's berkshelf: 'C:/Users/bmcalister/.berkshelf/defaul t/vagrant/berkshelf-20130714-10572-oaur1o-default' [Berkshelf] Using meteor_windows (0.0.1) at './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.3.0) [Berkshelf] Using windows (1.10.0) [Berkshelf] Using chef_handler (1.1.4) [Berkshelf] Using runit (1.1.6) [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-07-14T06:54:12+00:00] INFO: * Chef 11.4.4 * [2013-07-14T06:54:13+00:00] INFO: Setting the run_list to ["recipe[meteor_window s]"] from JSON [2013-07-14T06:54:13+00:00] INFO: Run List is [recipe[meteor_windows]] [2013-07-14T06:54:13+00:00] INFO: Run List expands to [meteor_windows] [2013-07-14T06:54:13+00:00] INFO: Starting Chef Run for vagrant.vm [2013-07-14T06:54:13+00:00] INFO: Running start handlers [2013-07-14T06:54:13+00:00] INFO: Start handlers complete. [2013-07-14T06:54:13+00:00] WARN: Cloning resource attributes for package[curl] from prior resource (CHEF-3694)
ef-solo-1/cookbooks/nodejs/recipes/npm.rb:23:in `from_file'
ef-solo-1/cookbooks/curl/recipes/default.rb:20:in`from_file' [2013-07-14T06:54:13+00:00] INFO: Install Meteorite: true [2013-07-14T06:54:13+00:00] INFO: Meteor Command: mrt [2013-07-14T06:54:13+00:00] INFO: Config: [2013-07-14T06:54:13+00:00] INFO: Creating Meteor App: mymeteorapp [2013-07-14T06:54:13+00:00] INFO: Processing execute[apt-get-update] action run (apt::default line 22) [2013-07-14T06:54:18+00:00] INFO: execute[apt-get-update] ran successfully [2013-07-14T06:54:18+00:00] INFO: Processing execute[apt-get update] action noth ing (apt::default line 29) [2013-07-14T06:54:18+00:00] INFO: Processing execute[apt-get autoremove] action nothing (apt::default line 36) [2013-07-14T06:54:18+00:00] INFO: Processing execute[apt-get autoclean] action n othing (apt::default line 42) [2013-07-14T06:54:18+00:00] INFO: Processing package[update-notifier-common] act ion install (apt::default line 48) [2013-07-14T06:54:20+00:00] INFO: package[update-notifier-common] sending run ac tion to executeapt-get-update [2013-07-14T06:54:20+00:00] INFO: Processing execute[apt-get-update] action run (apt::default line 22) [2013-07-14T06:54:22+00:00] INFO: execute[apt-get-update] ran successfully [2013-07-14T06:54:22+00:00] INFO: Processing execute[apt-get-update-periodic] ac tion run (apt::default line 52) [2013-07-14T06:54:22+00:00] INFO: Processing directory[/var/cache/local] action create (apt::default line 62) [2013-07-14T06:54:22+00:00] INFO: directory[/var/cache/local] created directory /var/cache/local [2013-07-14T06:54:22+00:00] INFO: directory[/var/cache/local] owner changed to 0
[2013-07-14T06:54:22+00:00] INFO: directory[/var/cache/local] group changed to 0
[2013-07-14T06:54:22+00:00] INFO: directory[/var/cache/local] mode changed to 75 5 [2013-07-14T06:54:22+00:00] INFO: Processing directory[/var/cache/local/preseedi ng] action create (apt::default line 62) [2013-07-14T06:54:22+00:00] INFO: directory[/var/cache/local/preseeding] created directory /var/cache/local/preseeding [2013-07-14T06:54:22+00:00] INFO: directory[/var/cache/local/preseeding] owner c hanged to 0 [2013-07-14T06:54:22+00:00] INFO: directory[/var/cache/local/preseeding] group c hanged to 0 [2013-07-14T06:54:22+00:00] INFO: directory[/var/cache/local/preseeding] mode ch anged to 755 [2013-07-14T06:54:22+00:00] INFO: Processing package[autoconf] action install (b uild-essential::debian line 40) [2013-07-14T06:54:25+00:00] INFO: Processing package[binutils-doc] action instal l (build-essential::debian line 40) [2013-07-14T06:54:27+00:00] INFO: Processing package[bison] action install (buil d-essential::debian line 40) [2013-07-14T06:54:28+00:00] INFO: Processing package[build-essential] action ins tall (build-essential::debian line 40) [2013-07-14T06:54:28+00:00] INFO: Processing package[flex] action install (build -essential::debian line 40) [2013-07-14T06:54:30+00:00] INFO: Processing apt_repository[node.js] action add (nodejs::install_from_package line 32) [2013-07-14T06:54:30+00:00] INFO: Processing execute[install-key C7917B12] actio n run (/tmp/vagrant-chef-1/chef-solo-1/cookbooks/apt/providers/repository.rb lin e 28) [2013-07-14T06:54:33+00:00] INFO: execute[install-key C7917B12] ran successfully
[2013-07-14T06:54:33+00:00] INFO: Processing file[/var/lib/apt/periodic/update-s uccess-stamp] action nothing (/tmp/vagrant-chef-1/chef-solo-1/cookbooks/apt/prov iders/repository.rb line 98) [2013-07-14T06:54:33+00:00] INFO: Processing execute[apt-get update] action noth ing (/tmp/vagrant-chef-1/chef-solo-1/cookbooks/apt/providers/repository.rb line 102) [2013-07-14T06:54:33+00:00] INFO: Processing file[/etc/apt/sources.list.d/node.j s.list] action create (/tmp/vagrant-chef-1/chef-solo-1/cookbooks/apt/providers/r epository.rb line 114) [2013-07-14T06:54:33+00:00] INFO: entered create [2013-07-14T06:54:33+00:00] INFO: file[/etc/apt/sources.list.d/node.js.list] own er changed to 0 [2013-07-14T06:54:33+00:00] INFO: file[/etc/apt/sources.list.d/node.js.list] gro up changed to 0 [2013-07-14T06:54:33+00:00] INFO: file[/etc/apt/sources.list.d/node.js.list] mod e changed to 644 [2013-07-14T06:54:33+00:00] INFO: file[/etc/apt/sources.list.d/node.js.list] cre ated file /etc/apt/sources.list.d/node.js.list [2013-07-14T06:54:33+00:00] INFO: file[/etc/apt/sources.list.d/node.js.list] sen ding delete action to file/var/lib/apt/periodic/update-success-stamp [2013-07-14T06:54:33+00:00] INFO: Processing file[/var/lib/apt/periodic/update-s uccess-stamp] action delete (/tmp/vagrant-chef-1/chef-solo-1/cookbooks/apt/provi ders/repository.rb line 98) [2013-07-14T06:54:33+00:00] INFO: file[/var/lib/apt/periodic/update-success-stam p] backed up to /var/chef/backup/var/lib/apt/periodic/update-success-stamp.chef- 20130714065433 [2013-07-14T06:54:33+00:00] INFO: file[/var/lib/apt/periodic/update-success-stam p] deleted file at /var/lib/apt/periodic/update-success-stamp [2013-07-14T06:54:33+00:00] INFO: file[/etc/apt/sources.list.d/node.js.list] sen ding run action to executeapt-get update [2013-07-14T06:54:33+00:00] INFO: Processing execute[apt-get update] action run (/tmp/vagrant-chef-1/chef-solo-1/cookbooks/apt/providers/repository.rb line 102)
[2013-07-14T06:54:36+00:00] INFO: execute[apt-get update] ran successfully [2013-07-14T06:54:36+00:00] INFO: Processing package[nodejs] action install (nod ejs::install_from_package line 48) [2013-07-14T06:54:45+00:00] INFO: Processing package[curl] action install (nodej s::npm line 23) [2013-07-14T06:54:47+00:00] INFO: Processing bash[install npm - package manager for node] action run (nodejs::npm line 27) ←[0m
←[0m
←[31mError executing action
run
on resource 'bash[install npm - package manage r for node]'←[0m←[0m
←[0m
Mixlib::ShellOut::ShellCommandFailed←[0m
------------------------------------←[0m
Expected process to exit with [0], but received '2' ---- Begin output of "bash" "/tmp/chef-script20130714-1094-14q1zid" ---- STDOUT: STDERR: % Total % Received % Xferd Average Speed Time Time Time Cu rrent Dload Upload Total Spent Left Speed 100 64 100 64 0 0 77 0 --:--:-- --:--:-- --:--:-- 2133
gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now ---- End output of "bash" "/tmp/chef-script20130714-1094-14q1zid" ---- Ran "bash" "/tmp/chef-script20130714-1094-14q1zid" returned 2←[0m
←[0m
Resource Declaration:←[0m
---------------------←[0m
In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/nodejs/recipes/npm.rb
27: bash "install npm - package manager for node" do 28: cwd "/usr/local/src" 29: user "root" 30: code <<-EOH 31: mkdir -p npm-v#{node['nodejs']['npm']} && \ 32: cd npm-v#{node['nodejs']['npm']} 33: curl -L #{npm_src_url} | tar xzf - --strip-components=1 && \ 34: make uninstall dev 35: EOH 36: not_if "#{node['nodejs']['dir']}/bin/npm -v 2>&1 | grep '#{node['nodejs'] ['npm']}'" 37: end 38: ←[0m
←[0m
Compiled Resource:←[0m
------------------←[0m
Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/nodejs/recipes/npm.rb:27
:in `from_file'
bash("install npm - package manager for node") do action "run" retries 0 retry_delay 2 command "\"bash\" \"/tmp/chef-script20130714-1094-14q1zid\"" backup 5 cwd "/usr/local/src" returns 0 user "root" code " mkdir -p npm-v1.2.14 && cd npm-v1.2.14\n curl -L http://regis try.npmjs.org/npm/-/npm-1.2.14.tgz | tar xzf - --strip-components=1 && make uninstall dev\n" interpreter "bash" cookbook_name :nodejs recipe_name "npm" not_if "/usr/local/bin/npm -v 2>&1 | grep '1.2.14'" end ←[0m
←[0m
[2013-07-14T06:54:48+00:00] INFO: Running queued delayed notifications before re -raising exception [2013-07-14T06:54:48+00:00] ERROR: Running exception handlers [2013-07-14T06:54:48+00:00] ERROR: Exception handlers complete [2013-07-14T06:54:48+00:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef -stacktrace.out [2013-07-14T06:54:48+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: bash[in stall npm - package manager for node](nodejs::npm line 27) had an error: Mixlib ::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '2' ---- Begin output of "bash" "/tmp/chef-script20130714-1094-14q1zid" ---- STDOUT: STDERR: % Total % Received % Xferd Average Speed Time Time Time Cu rrent Dload Upload Total Spent Left Speed 100 64 100 64 0 0 77 0 --:--:-- --:--:-- --:--:-- 2133
gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now ---- End output of "bash" "/tmp/chef-script20130714-1094-14q1zid" ---- Ran "bash" "/tmp/chef-script20130714-1094-14q1zid" returned 2 Chef never successfully completed! Any errors should be visible in the output above. Please fix your recipes so that they properly complete.
c:\brad\meteorprojects\recital>