Open richstandbrook opened 11 years ago
I'm also experiencing this issue. Any ideas?
Hitting the same thing -- the error "sh: make: not found" caught my eye first. Poking around the recipes it looks as if the "build-essential" package should have been installed, which depends on "make." But neither of those had been installed yet ("vagrant ssh -c 'dpkg -s build-essential'" ).
I'm new to chef, so I'm not sure yet what's missing ...
Adding build-essential to the runlist in the Vagrantfile will fix it:
Enable provisioning with chef solo, specifying a cookbooks path (relative
to this Vagrantfile), and adding some recipes and/or roles.
config.vm.provision :chef_solo do |chef| chef.cookbooks_path = "cookbooks" + chef.add_recipe "build-essential" chef.add_recipe "apt" chef.add_recipe "wordpress"
guys I do have a similar problem....but cant figure out my solution..anyone any idea? here is my log file...please suggest..thanks.
←[0m
================================================================================←[0m
←[31mError executing action install
on resource 'package[sqldeveloper]'←[0m
================================================================================←[0m
←[0m
Chef::Exceptions::Exec←[0m
----------------------←[0m
dpkg -i /opt/sqldeveloper_3.2.2.deb returned 1, expected 0←[0m
←[0m
Resource Declaration:←[0m
---------------------←[0m
20: package "sqldeveloper" do 21: source "/opt/sqldeveloper_#{node['sqldeveloper']['version']}.deb" 22: version node['sqldeveloper']['version'] 23: provider Chef::Provider::Package::Dpkg 24: action :install 25: end 26: ←[0m
←[0m Compiled Resource:←[0m ------------------←[0m
package("sqldeveloper") do provider Chef::Provider::Package::Dpkg action [:install] retries 0 retry_delay 2 package_name "sqldeveloper" source "/opt/sqldeveloper_3.2.2.deb" version "3.2.20.09.87-2" cookbook_name :sqldeveloper recipe_name "default" end ←[0m
←[0m [2013-09-06T01:17:51-05:00] INFO: Running queued delayed notifications before re-raising exception [2013-09-06T01:17:51-05:00] INFO: template[/usr/local/EAP-6.1.0/jboss-eap-6.1/standalone/configuration/override.properties] sending restart action to servicejboss [2013-09-06T01:17:51-05:00] INFO: Processing service[jboss] action restart (jboss::default line 126) [2013-09-06T01:18:05-05:00] INFO: service[jboss] restarted [2013-09-06T01:18:05-05:00] ERROR: Running exception handlers [2013-09-06T01:18:05-05:00] ERROR: Exception handlers complete [2013-09-06T01:18:05-05:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out [2013-09-06T01:18:05-05:00] FATAL: Chef::Exceptions::Exec: package[sqldeveloper](sqldeveloper::default line 20) had an error: Chef::Except ions::Exec: dpkg -i /opt/sqldeveloper_3.2.2.deb returned 1, expected 0 Chef never successfully completed! Any errors should be visible in the output above. Please fix your recipes so that they properly complete.
Hi Guys! I'm having troubles with this too. Any ideas?
I've been googling a lot but I still cannot find any answer. Thanks in advance!
Running chef-solo... stdin: is not a tty [2013-10-06T14:33:53+00:00] INFO: * Chef 10.14.2 * [2013-10-06T14:33:54+00:00] INFO: Setting the run_list to ["recipe[build-essential]", "recipe[rails_env]"] from JSON [2013-10-06T14:33:54+00:00] INFO: Run List is [recipe[build-essential], recipe[rails_env]] [2013-10-06T14:33:54+00:00] INFO: Run List expands to [build-essential, rails_env] [2013-10-06T14:33:54+00:00] INFO: Starting Chef Run for precise64 [2013-10-06T14:33:54+00:00] INFO: Running start handlers [2013-10-06T14:33:54+00:00] INFO: Start handlers complete.
uninitialized constant Chef::Resource::UlimitDomain
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/ulimit/resources/rule.rb:7:in `class_from_file'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/ulimit/resources/rule.rb:
1: actions :create, :delete
2: default_action :create
3:
4: attribute :type, :kind_of => [Symbol,String], :required => true
5: attribute :item, :kind_of => [Symbol,String], :required => true
6: attribute :value, :kind_of => [String,Numeric], :required => true
7: attribute :domain, :kind_of => [Chef::Resource::UlimitDomain, String], :required => true
8:
[2013-10-06T14:33:55+00:00] ERROR: Running exception handlers [2013-10-06T14:33:55+00:00] ERROR: Exception handlers complete [2013-10-06T14:33:55+00:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out [2013-10-06T14:33:55+00:00] FATAL: NameError: uninitialized constant Chef::Resource::UlimitDomain Chef never successfully completed! Any errors should be visible in the output above. Please fix your recipes so that they properly complete.
In addition here is the stacktrace:
Generated at Sun Oct 06 14:39:27 +0000 2013
Chef::Exceptions::CookbookNotFound: Cookbook ruby_build not found. If you're loading ruby_build from another cookbook, make sure you configure the dependency in your metadata
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/cookbook/cookbook_collection.rb:38:in initialize' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/ohai-6.14.0/lib/ohai/mash.rb:77:in
call'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/ohai-6.14.0/lib/ohai/mash.rb:77:in default' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/ohai-6.14.0/lib/ohai/mash.rb:77:in
default'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/language_include_recipe.rb:45:in []' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/language_include_recipe.rb:45:in
load_recipe'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/language_include_recipe.rb:33:in include_recipe' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/language_include_recipe.rb:27:in
each'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/language_include_recipe.rb:27:in include_recipe' /tmp/vagrant-chef-1/chef-solo-1/cookbooks/rails_env/recipes/rbenv.rb:19:in
from_file'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/cookbook_version.rb:558:in load_recipe' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/language_include_recipe.rb:46:in
load_recipe'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/language_include_recipe.rb:33:in include_recipe' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/language_include_recipe.rb:27:in
each'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/language_include_recipe.rb:27:in include_recipe' /tmp/vagrant-chef-1/chef-solo-1/cookbooks/rails_env/recipes/default.rb:21:in
from_file'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/cookbook_version.rb:558:in load_recipe' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/language_include_recipe.rb:46:in
load_recipe'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/language_include_recipe.rb:33:in include_recipe' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/language_include_recipe.rb:27:in
each'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/mixin/language_include_recipe.rb:27:in include_recipe' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/run_context.rb:79:in
load'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/run_context.rb:75:in each' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/run_context.rb:75:in
load'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/client.rb:198:in setup_run_context' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/client.rb:418:in
do_run'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/client.rb:176:in run' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/application/solo.rb:230:in
run_application'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/application/solo.rb:218:in loop' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/application/solo.rb:218:in
run_application'
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/../lib/chef/application.rb:70:in run' /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/chef-10.14.2/bin/chef-solo:25 /opt/vagrant_ruby/bin/chef-solo:19:in
load'
/opt/vagrant_ruby/bin/chef-solo:19
had the same errors however it worked for me after running gem install chef
then vagrant reload
When I run
vagrant up
I keep getting errors and the box never has mysql/php etc.