jamescarr / nodejs-vagrant

A vagrant box configured for one of my node.js apps
12 stars 5 forks source link

Chef::Exceptions::CookbookNotFound #2

Closed mulderp closed 12 years ago

mulderp commented 12 years ago

After a

   vagrant up

I get:

Guest Additions Version: 4.1.16
VirtualBox Version: 4.1.18
[default] Matching MAC address for NAT networking...
[default] Clearing any previously set forwarded ports...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] -- 80 => 8080 (adapter 1)
[default] -- 55672 => 56672 (adapter 1)
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[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] -- v-root: /vagrant
[default] -- v-csc-1: /tmp/vagrant-chef-1/chef-solo-1/cookbooks
[default] Running provisioner: Vagrant::Provisioners::ChefSolo...
[default] Generating chef JSON and uploading...
[default] Running chef-solo...
stdin: is not a tty
[Tue, 03 Jul 2012 15:33:54 +0200] INFO: *** Chef 0.10.10 ***
[Tue, 03 Jul 2012 15:33:54 +0200] INFO: Setting the run_list to ["recipe[apt]", "recipe[nginx]", "recipe[monit]", "recipe[gems]", "recipe[nodejs]", "recipe[rabbitmq]", "recipe[mongodb]"] from JSON
[Tue, 03 Jul 2012 15:33:54 +0200] INFO: Run List is [recipe[apt], recipe[nginx], recipe[monit], recipe[gems], recipe[nodejs], recipe[rabbitmq], recipe[mongodb]]
[Tue, 03 Jul 2012 15:33:54 +0200] INFO: Run List expands to [apt, nginx, monit, gems, nodejs, rabbitmq, mongodb]
[Tue, 03 Jul 2012 15:33:54 +0200] INFO: Starting Chef Run for lucid32
[Tue, 03 Jul 2012 15:33:54 +0200] INFO: Running start handlers
[Tue, 03 Jul 2012 15:33:54 +0200] INFO: Start handlers complete.
[Tue, 03 Jul 2012 15:33:54 +0200] WARN: found a directory nodejs in the cookbook path, but it contains no cookbook files. skipping.
[Tue, 03 Jul 2012 15:33:54 +0200] ERROR: Running exception handlers
[Tue, 03 Jul 2012 15:33:54 +0200] ERROR: Exception handlers complete
[Tue, 03 Jul 2012 15:33:54 +0200] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out
[Tue, 03 Jul 2012 15:33:54 +0200] FATAL: Chef::Exceptions::CookbookNotFound: Cookbook nodejs not found. If you're loading nodejs from another cookbook, make sure you configure the dependency in your metadata
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
mulderp commented 12 years ago

somehow my git submodules were not initialized correctly, re-doing:

git submodule init && git submodule update

solves the problem