Skip to content

Instantly share code, notes, and snippets.

@marbe
Created February 13, 2014 12:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marbe/8974157 to your computer and use it in GitHub Desktop.
Save marbe/8974157 to your computer and use it in GitHub Desktop.
Recipe: <Dynamically Defined Resource>
* rvm_environment[ruby-2.1.0] action create/root/.chef/local-mode-cache/cache/cookbooks/rvm/libraries/rvm_chef_user_environment.rb:32: warning: class variable access from toplevel
(up to date)
^@
- install version 4.0.14 of package passenger
* rvm_environment[ruby-2.1.0] action nothing (skipped due to action :nothing)
Recipe: passenger_apache2::source
* execute[passenger_module] action run
================================================================================
Error executing action `run` on resource 'execute[passenger_module]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of /opt/chef/embedded/bin/ruby /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/passenger-4.0.14/bin/passenger-install-apache2-module _4.0.14_ --auto ----
STDOUT:
STDERR: /opt/chef/embedded/bin/ruby: No such file or directory -- /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/passenger-4.0.14/bin/passenger-install-apache2-module (LoadError)
---- End output of /opt/chef/embedded/bin/ruby /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/passenger-4.0.14/bin/passenger-install-apache2-module _4.0.14_ --auto ----
Ran /opt/chef/embedded/bin/ruby /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/passenger-4.0.14/bin/passenger-install-apache2-module _4.0.14_ --auto returned 1
Resource Declaration:
---------------------
# In /root/.chef/local-mode-cache/cache/cookbooks/passenger_apache2/recipes/source.rb
50: execute "passenger_module" do
51: command "#{node['languages']['ruby']['ruby_bin']} #{node['passenger']['root_path']}/bin/passenger-install-apache2-module _#{node['passenger']['version']}_ --auto"
52: creates node['passenger']['module_path']
53: end
Compiled Resource:
------------------
# Declared in /root/.chef/local-mode-cache/cache/cookbooks/passenger_apache2/recipes/source.rb:50:in `from_file'
execute("passenger_module") do
action "run"
retries 0
retry_delay 2
command "/opt/chef/embedded/bin/ruby /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/passenger-4.0.14/bin/passenger-install-apache2-module _4.0.14_ --auto"
backup 5
creates "/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/passenger-4.0.14/buildout/apache2/mod_passenger.so"
returns 0
cookbook_name "passenger_apache2"
recipe_name "source"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment