Created
April 6, 2013 00:33
-
-
Save gmcinnes/5323709 to your computer and use it in GitHub Desktop.
Chef fail
This file contains 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
[2013-04-06T00:02:53+00:00] INFO: Processing service[ssh] action restart (openssh::default line 30) | |
================================================================================ | |
Error executing action `restart` on resource 'service[ssh]' | |
================================================================================ | |
Mixlib::ShellOut::ShellCommandFailed | |
------------------------------------ | |
Expected process to exit with [0], but received '1' | |
---- Begin output of /etc/init.d/ssh restart ---- | |
STDOUT: ** Running mongodb (/usr/bin/mongod --port 27017 --dbpath /var/lib/mongodb --logpath /var/log/mongodb/mongodb.log) | |
STDERR: Usage: /etc/init.d/mongodb {start|stop|force-stop|restart|force-reload|status} | |
---- End output of /etc/init.d/ssh restart ---- | |
Ran /etc/init.d/ssh restart returned 1 | |
Resource Declaration: | |
--------------------- | |
# In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/openssh/recipes/default.rb | |
30: service "ssh" do | |
31: service_name node['openssh']['service_name'] | |
32: supports value_for_platform( | |
33: "debian" => { "default" => [ :restart, :reload, :status ] }, | |
34: "ubuntu" => { | |
35: "8.04" => [ :restart, :reload ], | |
36: "default" => [ :restart, :reload, :status ] | |
37: }, | |
38: "centos" => { "default" => [ :restart, :reload, :status ] }, | |
39: "redhat" => { "default" => [ :restart, :reload, :status ] }, | |
40: "fedora" => { "default" => [ :restart, :reload, :status ] }, | |
41: "scientific" => { "default" => [ :restart, :reload, :status ] }, | |
42: "arch" => { "default" => [ :restart ] }, | |
43: "default" => { "default" => [:restart, :reload ] } | |
44: ) | |
45: action [ :enable, :start ] | |
46: end | |
47: | |
Compiled Resource: | |
------------------ | |
# Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/openssh/recipes/default.rb:30:in `from_file' | |
service("ssh") do | |
action [:enable, :start] | |
updated true | |
supports {:restart=>true, :reload=>true, :status=>true} | |
retries 0 | |
retry_delay 2 | |
service_name "ssh" | |
enabled true | |
running true | |
pattern "ssh" | |
startup_type :automatic | |
cookbook_name :openssh | |
recipe_name "default" | |
end | |
[2013-04-06T00:02:53+00:00] INFO: template[/etc/monit/conf.d/ssh.conf] sending restart action to service[monit] (delayed) | |
[2013-04-06T00:02:53+00:00] INFO: Processing service[monit] action restart (monit::default line 14) | |
[2013-04-06T00:02:53+00:00] INFO: service[monit] restarted | |
[2013-04-06T00:02:53+00:00] INFO: template[/etc/fail2ban/fail2ban.conf] sending restart action to service[fail2ban] (delayed) | |
[2013-04-06T00:02:53+00:00] INFO: Processing service[fail2ban] action restart (fail2ban::default line 39) | |
[2013-04-06T00:02:55+00:00] INFO: service[fail2ban] restarted | |
[2013-04-06T00:02:55+00:00] INFO: template[nginx.conf] sending reload action to service[nginx] (delayed) | |
[2013-04-06T00:02:55+00:00] INFO: Processing service[nginx] action reload (nginx::default line 43) | |
[2013-04-06T00:02:55+00:00] INFO: service[nginx] reloaded | |
[2013-04-06T00:02:55+00:00] INFO: template[/etc/default/mongodb] sending restart action to service[mongodb] (delayed) | |
[2013-04-06T00:02:55+00:00] INFO: Processing service[mongodb] action restart (mongodb::default line 141) | |
[2013-04-06T00:03:05+00:00] ERROR: service[mongodb] (mongodb::default line 141) had an error: Expected process to exit with [0], but received '1' | |
---- Begin output of /etc/init.d/mongodb restart ---- | |
STDOUT: ** Running mongodb (/usr/bin/mongod --port 27017 --dbpath /var/lib/mongodb --logpath /var/log/mongodb/mongodb.log) | |
* Restarting database mongodb | |
...fail! | |
STDERR: | |
---- End output of /etc/init.d/mongodb restart ---- | |
Ran /etc/init.d/mongodb restart returned 1; ignore_failure is set, continuing | |
================================================================================ | |
Error executing action `restart` on resource 'service[mongodb]' | |
================================================================================ | |
Mixlib::ShellOut::ShellCommandFailed | |
------------------------------------ | |
Expected process to exit with [0], but received '1' | |
---- Begin output of /etc/init.d/mongodb restart ---- | |
STDOUT: ** Running mongodb (/usr/bin/mongod --port 27017 --dbpath /var/lib/mongodb --logpath /var/log/mongodb/mongodb.log) | |
* Restarting database mongodb | |
...fail! | |
STDERR: | |
---- End output of /etc/init.d/mongodb restart ---- | |
Ran /etc/init.d/mongodb restart returned 1 | |
Resource Declaration: | |
--------------------- | |
# In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/mongodb/definitions/mongodb.rb | |
141: service name do | |
142: supports :status => true, :restart => true | |
143: action service_action | |
144: service_notifies.each do |service_notify| | |
145: notifies :run, service_notify | |
146: end | |
147: if !replicaset_name.nil? | |
148: notifies :create, "ruby_block[config_replicaset]" | |
149: end | |
150: if type == "mongos" | |
Compiled Resource: | |
------------------ | |
# Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/mongodb/definitions/mongodb.rb:141:in `block in from_file' | |
service("mongodb") do | |
params {:mongodb_type=>"mongod", :action=>[:enable, :start], :bind_ip=>nil, :port=>27017, :logpath=>"/var/log/mongodb", :dbpath=>"/var/lib/mongodb", :configfile=>"/etc/mongodb.conf", :configserver=>[], :replicaset=>nil, :enable_rest=>false, :notifies=>[], :name=>"mongodb"} | |
action [:enable, :start] | |
updated true | |
supports {:status=>true, :restart=>true} | |
ignore_failure true | |
retries 0 | |
retry_delay 2 | |
service_name "mongodb" | |
enabled true | |
pattern "mongodb" | |
startup_type :automatic | |
cookbook_name :mongodb | |
recipe_name "default" | |
end | |
[2013-04-06T00:03:05+00:00] ERROR: Running exception handlers | |
[2013-04-06T00:03:05+00:00] ERROR: Exception handlers complete | |
[2013-04-06T00:03:05+00:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out | |
[2013-04-06T00:03:05+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: service[ssh] (openssh::default line 30) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1' | |
---- Begin output of /etc/init.d/ssh restart ---- | |
STDOUT: ** Running mongodb (/usr/bin/mongod --port 27017 --dbpath /var/lib/mongodb --logpath /var/log/mongodb/mongodb.log) | |
STDERR: Usage: /etc/init.d/mongodb {start|stop|force-stop|restart|force-reload|status} | |
---- End output of /etc/init.d/ssh restart ---- | |
Ran /etc/init.d/ssh restart returned 1 | |
Chef never successfully completed! Any errors should be visible in the | |
output above. Please fix your recipes so that they properly complete. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment