Skip to content

Instantly share code, notes, and snippets.

@mrchrisadams
Created February 1, 2010 17:08
Show Gist options
  • Save mrchrisadams/291824 to your computer and use it in GitHub Desktop.
Save mrchrisadams/291824 to your computer and use it in GitHub Desktop.
[Mon, 01 Feb 2010 17:13:46 +0000] DEBUG: Processing package[apache2]
[Mon, 01 Feb 2010 17:13:46 +0000] DEBUG: package[apache2] using Chef::Provider::Package::Yum
[Mon, 01 Feb 2010 17:13:48 +0000] DEBUG: Checking yum info for apache2
[Mon, 01 Feb 2010 17:13:48 +0000] INFO: Installing package[apache2] version 2.2.9-7ubuntu3.5
[Mon, 01 Feb 2010 17:13:48 +0000] DEBUG: Executing yum -q -y install apache2-2.2.9-7ubuntu3.5
[Mon, 01 Feb 2010 17:13:49 +0000] DEBUG: ---- Begin output of yum -q -y install apache2-2.2.9-7ubuntu3.5 ----
[Mon, 01 Feb 2010 17:13:49 +0000] DEBUG: STDOUT:
[Mon, 01 Feb 2010 17:13:49 +0000] DEBUG: STDERR:
[Mon, 01 Feb 2010 17:13:49 +0000] DEBUG: ---- End output of yum -q -y install apache2-2.2.9-7ubuntu3.5 ----
[Mon, 01 Feb 2010 17:13:49 +0000] DEBUG: Ran yum -q -y install apache2-2.2.9-7ubuntu3.5 returned 0
[Mon, 01 Feb 2010 17:13:49 +0000] DEBUG: Processing service[apache2]
[Mon, 01 Feb 2010 17:13:49 +0000] DEBUG: service[apache2] using Chef::Provider::Service::Redhat
[Mon, 01 Feb 2010 17:13:49 +0000] WARN: service[apache2]: falling back to process table inspection
[Mon, 01 Feb 2010 17:13:49 +0000] WARN: service[apache2]: attempting to match 'apache2' ((?-mix:apache2)) against process list
[Mon, 01 Feb 2010 17:13:49 +0000] DEBUG: service[apache2]: running: false
[Mon, 01 Feb 2010 17:13:49 +0000] DEBUG: service[apache2]: attempting to enable
[Mon, 01 Feb 2010 17:13:49 +0000] DEBUG: Executing /sbin/chkconfig apache2 on
[Mon, 01 Feb 2010 17:13:49 +0000] DEBUG: ---- Begin output of /sbin/chkconfig apache2 on ----
[Mon, 01 Feb 2010 17:13:49 +0000] DEBUG: STDOUT:
[Mon, 01 Feb 2010 17:13:49 +0000] DEBUG: STDERR: error reading information on service apache2: No such file or directory
[Mon, 01 Feb 2010 17:13:49 +0000] DEBUG: ---- End output of /sbin/chkconfig apache2 on ----
[Mon, 01 Feb 2010 17:13:49 +0000] DEBUG: Ran /sbin/chkconfig apache2 on returned 1
[Mon, 01 Feb 2010 17:13:49 +0000] ERROR: service[apache2] (/tmp/chef-solo/cookbooks/apache2/recipes/default.rb line 6) had an error:
/sbin/chkconfig apache2 on returned 1, expected 0
/usr/lib/ruby/gems/1.8/gems/chef-0.7.16/lib/chef/mixin/command.rb:175:in `handle_command_failures'/usr/lib/ruby/gems/1.8/gems/chef-0.7.16/lib/chef/mixin/command.rb:118:in `run_command'/usr/lib/ruby/gems/1.8/gems/chef-0.7.16/lib/chef/provider/service/redhat.rb:52:in `enable_service'/usr/lib/ruby/gems/1.8/gems/chef-0.7.16/lib/chef/provider/service.rb:36:in `action_enable'/usr/lib/ruby/gems/1.8/gems/chef-0.7.16/lib/chef/runner.rb:61:in `send'/usr/lib/ruby/gems/1.8/gems/chef-0.7.16/lib/chef/runner.rb:61:in `run_action'/usr/lib/ruby/gems/1.8/gems/chef-0.7.16/lib/chef/runner.rb:111:in `converge'/usr/lib/ruby/gems/1.8/gems/chef-0.7.16/lib/chef/runner.rb:110:in `each'/usr/lib/ruby/gems/1.8/gems/chef-0.7.16/lib/chef/runner.rb:110:in `converge'/usr/lib/ruby/gems/1.8/gems/chef-0.7.16/lib/chef/resource_collection.rb:86:in `execute_each_resource'/usr/lib/ruby/gems/1.8/gems/chef-0.7.16/lib/chef/mixin/from_file.rb:30:in `each_with_index'/usr/lib/ruby/gems/1.8/gems/chef-0.7.16/lib/chef/resource_collection.rb:84:in `each'/usr/lib/ruby/gems/1.8/gems/chef-0.7.16/lib/chef/resource_collection.rb:84:in `each_with_index'/usr/lib/ruby/gems/1.8/gems/chef-0.7.16/lib/chef/resource_collection.rb:84:in `execute_each_resource'/usr/lib/ruby/gems/1.8/gems/chef-0.7.16/lib/chef/runner.rb:88:in `converge'/usr/lib/ruby/gems/1.8/gems/chef-0.7.16/lib/chef/client.rb:407:in `converge'/usr/lib/ruby/gems/1.8/gems/chef-0.7.16/lib/chef/client.rb:110:in `run_solo'/usr/lib/ruby/gems/1.8/gems/chef-0.7.16/lib/chef/application/solo.rb:191:in `run_application'/usr/lib/ruby/gems/1.8/gems/chef-0.7.16/lib/chef/application/solo.rb:183:in `loop'/usr/lib/ruby/gems/1.8/gems/chef-0.7.16/lib/chef/application/solo.rb:183:in `run_application'/usr/lib/ruby/gems/1.8/gems/chef-0.7.16/lib/chef/application.rb:57:in `run'/usr/lib/ruby/gems/1.8/gems/chef-0.7.16/bin/chef-solo:26/usr/bin/chef-solo:19:in `load'/usr/bin/chef-solo:19
/usr/lib/ruby/gems/1.8/gems/chef-0.7.16/lib/chef/mixin/command.rb:175:in `handle_command_failures': /sbin/chkconfig apache2 on returned 1, expected 0 (Chef::Exceptions::Exec)
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.16/lib/chef/mixin/command.rb:118:in `run_command'
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.16/lib/chef/provider/service/redhat.rb:52:in `enable_service'
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.16/lib/chef/provider/service.rb:36:in `action_enable'
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.16/lib/chef/runner.rb:61:in `send'
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.16/lib/chef/runner.rb:61:in `run_action'
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.16/lib/chef/runner.rb:111:in `converge'
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.16/lib/chef/runner.rb:110:in `each'
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.16/lib/chef/runner.rb:110:in `converge'
... 11 levels...
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.16/lib/chef/application.rb:57:in `run'
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.16/bin/chef-solo:26
from /usr/bin/chef-solo:19:in `load'
from /usr/bin/chef-solo:19
{
"name": "base_server",
"chef_type": "role",
"json_class": "Chef::Role",
"description": "This role is the bootstrap for every server, putting sysadmin accounts on it, and switching off non essential services",
"default_attributes": {
"override_attributes": {
"apache2": {
"max_children": "50"
}
},
"recipes" : [
"users",
"iptables",
"apache2",
"git"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment