Skip to content

Instantly share code, notes, and snippets.

@marbe
Created February 13, 2014 12:36
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/8974359 to your computer and use it in GitHub Desktop.
Save marbe/8974359 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 /usr/local/rvm/gems/ruby-2.1.0/bin/passenger-install-apache2-module _4.0.14_ --auto ----
STDOUT:
STDERR: /opt/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find passenger (= 4.0.14) amongst [activesupport-3.2.16, bigdecimal-1.1.0, builder-3.2.2, bundler-1.1.5, chef-11.8.2, chef-zero-1.7.2, coderay-1.1.0, diff-lcs-1.2.5, docile-1.1.1, erubis-2.7.0, gem-wrappers-1.2.4, hashie-2.0.5, highline-1.6.20, i18n-0.6.8, io-console-0.3, ipaddress-0.8.0, json-1.7.7, json-1.5.5, method_source-0.8.2, mime-types-1.25.1, minitest-2.5.1, mixlib-authentication-1.3.0, mixlib-cli-1.3.0, mixlib-config-2.0.0, mixlib-log-1.6.0, mixlib-shellout-1.2.0, moneta-0.6.0, multi_json-1.8.2, mysql-2.9.1, net-ssh-2.7.0, net-ssh-gateway-1.2.0, net-ssh-multi-1.2.0, net-ssh-multi-1.1, ohai-6.20.0, pg-0.17.1, pry-0.9.12.4, puma-1.6.3, rack-1.5.2, rake-10.1.0, rake-0.9.2.2, rdoc-3.12.2, rdoc-3.9.5, rest-client-1.6.7, rspec-2.13.0, rspec-core-2.13.1, rspec-expectations-2.13.0, rspec-mocks-2.13.1, rspec_junit_formatter-0.1.6, ruby-shadow-2.3.1, rvm-1.11.3.9, sdoc-0.3.20, simplecov-0.8.2, simplecov-html-0.8.0, slop-3.4.7, systemu-2.5.2, yajl-ruby-1.1.0] (Gem::LoadError)
from /opt/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
from /opt/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems.rb:1231:in `gem'
from /usr/local/rvm/gems/ruby-2.1.0/bin/passenger-install-apache2-module:22:in `<main>'
---- End output of /opt/chef/embedded/bin/ruby /usr/local/rvm/gems/ruby-2.1.0/bin/passenger-install-apache2-module _4.0.14_ --auto ----
Ran /opt/chef/embedded/bin/ruby /usr/local/rvm/gems/ruby-2.1.0/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 /usr/local/rvm/gems/ruby-2.1.0/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