Created
December 12, 2012 10:55
-
-
Save pierreozoux/4266900 to your computer and use it in GitHub Desktop.
Error when running monit recipe from cookbooks folder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[default] [Tue, 11 Dec 2012 19:31:31 +0000] INFO: Ran execute[cleanup-backup-inittab] successfully | |
[Tue, 11 Dec 2012 19:31:31 +0000] INFO: Chef Run complete in 131.255645 seconds | |
[default] ln: | |
[default] creating symbolic link `/etc/chef-custom/recipes/cookbooks/cookbooks' | |
[default] : Read-only file system | |
[default] | |
[default] [Tue, 11 Dec 2012 19:31:31 +0000] INFO: Starting Chef Solo Run | |
[default] /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/node.rb:180:in `method_missing' | |
[default] : | |
[default] Attribute default is not defined! | |
[default] ( | |
[default] ArgumentError | |
[default] ) | |
[default] from /etc/chef-custom/recipes/cookbooks/monit/attributes/default.rb:1:in `from_file' | |
[default] from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/cookbook.rb:73:in `load_attributes' | |
[default] from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/cookbook.rb:71:in `each' | |
[default] from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/cookbook.rb:71:in `load_attributes' | |
[default] from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/compile.rb:61:in `load_attributes' | |
[default] from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/cookbook_loader.rb:107:in `each' | |
[default] from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/cookbook_loader.rb:106:in `each_value' | |
[default] from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/cookbook_loader.rb:106:in `each' | |
[default] from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/compile.rb:60:in `load_attributes' | |
[default] from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/client.rb:342:in `converge' | |
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/lib/chef/client.rb:96:in `run_solo' | |
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/chef-0.6.0.2/bin/chef-solo:94 | |
from /usr/local/ey_resin/ruby/bin/chef-solo:19:in `load' | |
from /usr/local/ey_resin/ruby/bin/chef-solo:19 | |
[ey-local] The following SSH command responded with a non-zero exit status. | |
ey-local assumes that this means the command failed! | |
source /etc/profile.d/*; | |
export RVM_RUBY=`rvm list | grep "^ " | awk '{ print $1 }' | tail -1`; | |
rvm use $RVM_RUBY > /dev/null; | |
if [[ ! -d /etc/chef/recipes ]]; then curl -s http://ey-cloud.s3.amazonaws.com/chef-ey-1.1.340.tgz > /tmp/chef.tar.gz; sudo mkdir -p /etc/chef/recipes && cd /etc/chef/recipes && sudo tar -xzf /tmp/chef.tar.gz; sudo patch -p1 < /tmp/eylocal_patches/* >& /dev/null; sudo touch /etc/chef/ey_local_cookbook_version; sudo chown ey-local /etc/chef/ey_local_cookbook_version; echo "1.1.340" > /etc/chef/ey_local_cookbook_version; rm /tmp/chef.tar.gz; fi; | |
cd /etc/chef; | |
sudo env PATH=/usr/local/ey_resin/bin:/sbin:/bin:/usr/sbin:/usr/bin chef-solo -j /etc/chef/dna.json -c /etc/chef/solo.rb; | |
if [[ ! -e /usr/bin/rake ]]; then sudo ln -s /usr/bin/rake19 /usr/bin/rake; fi; | |
if [[ ! -d /etc/chef-custom/recipes ]]; then sudo mkdir -p /etc/chef-custom/recipes; fi; | |
if [[ -d /vagrant/cookbooks ]]; then sudo ln -sF /vagrant/cookbooks /etc/chef-custom/recipes/cookbooks; fi; | |
echo 'cookbook_path "/etc/chef-custom/recipes/cookbooks" | |
log_level :info | |
file_store_path "/etc/chef-custom/recipes/" | |
file_cache_path "/etc/chef-custom/recipes/" | |
node_name "localhost"' > /tmp/_solo.rb; | |
sudo mv -f /tmp/_solo.rb /etc/chef-custom/solo.rb; | |
sudo env PATH=/usr/local/ey_resin/bin:/sbin:/bin:/usr/sbin:/usr/bin chef-solo -j /etc/chef/dna.json -c /etc/chef-custom/solo.rb; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment