Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[2013-03-15T19:58:52+00:00] INFO: Processing execute[a2enmod passenger] action run (passenger_apache2::default line 38)
================================================================================
Error executing action `run` on resource 'execute[a2enmod passenger]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of /usr/sbin/a2enmod passenger ----
STDOUT:
STDERR: ERROR: Module passenger does not exist!
---- End output of /usr/sbin/a2enmod passenger ----
Ran /usr/sbin/a2enmod passenger returned 1
Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/apache2/definitions/apache_module.rb
38: execute "a2enmod #{params[:name]}" do
39: command "/usr/sbin/a2enmod #{params[:name]}"
40: notifies :restart, resources(:service => "apache2")
41: not_if do (::File.symlink?("#{node['apache']['dir']}/mods-enabled/#{params[:name]}.load") and
42: ((::File.exists?("#{node['apache']['dir']}/mods-available/#{params[:name]}.conf"))?
43: (::File.symlink?("#{node['apache']['dir']}/mods-enabled/#{params[:name]}.conf")):(true)))
44: end
45: end
46: else
Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/apache2/definitions/apache_module.rb:38:in `block in from_file'
execute("a2enmod passenger") do
params {:enable=>true, :conf=>false, :module_path=>"/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/passenger-3.0.19/ext/apache2/mod_passenger.so", :name=>"passenger", :filename=>"mod_passenger.so"}
action "run"
retries 0
retry_delay 2
command "/usr/sbin/a2enmod passenger"
backup 5
returns 0
cookbook_name "passenger_apache2"
recipe_name "default"
not_if { #code block }
end
[2013-03-15T19:58:52+00:00] ERROR: Running exception handlers
[2013-03-15T19:58:52+00:00] FATAL: Saving node information to /var/chef/cache/failed-run-data.json
[2013-03-15T19:58:52+00:00] ERROR: Exception handlers complete
[2013-03-15T19:58:52+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2013-03-15T19:58:52+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: execute[a2enmod passenger] (passenger_apache2::default line 38) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /usr/sbin/a2enmod passenger ----
STDOUT:
STDERR: ERROR: Module passenger does not exist!
---- End output of /usr/sbin/a2enmod passenger ----
Ran /usr/sbin/a2enmod passenger returned 1
root@emp-production-test:~#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment