I got the following intermittently on my CentOS machine. I googled around and couldn't find anything, has anyone seen this before? Thanks!
Recipe: apache2::default
* service[apache2] action reload
================================================================================
Error executing action `reload` on resource 'service[apache2]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '6'
---- Begin output of /sbin/service httpd reload && sleep 1 ----
STDOUT: Reloading httpd: not reloading due to configuration syntax error
[FAILED]
STDERR:
---- End output of /sbin/service httpd reload && sleep 1 ----
Ran /sbin/service httpd reload && sleep 1 returned 6
Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/apache2/recipes/default.rb
188: service 'apache2' do
189: case node['platform_family']
190: when 'rhel', 'fedora', 'suse'
191: service_name 'httpd'
192: # If restarted/reloaded too quickly httpd has a habit of failing.
193: # This may happen with multiple recipes notifying apache to restart - like
194: # during the initial bootstrap.
195: restart_command '/sbin/service httpd restart && sleep 1'
196: reload_command '/sbin/service httpd reload && sleep 1'
197: when 'debian'
198: service_name 'apache2'
199: restart_command '/usr/sbin/invoke-rc.d apache2 restart && sleep 1'
200: reload_command '/usr/sbin/invoke-rc.d apache2 reload && sleep 1'
201: when 'arch'
202: service_name 'httpd'
203: when 'freebsd'
204: service_name 'apache22'
205: end
206: supports [:restart, :reload, :status]
Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/apache2/recipes/default.rb:188:in `from_file'
service("apache2") do
action [:enable, :start]
supports {:restart=>true, :reload=>true, :status=>true}
retries 0
retry_delay 2
guard_interpreter :default
service_name "httpd"
enabled true
running true
pattern "apache2"
restart_command "/sbin/service httpd restart && sleep 1"
reload_command "/sbin/service httpd reload && sleep 1"
cookbook_name "apache2"
recipe_name "default"
end