Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passenger compilation fails #25

Open
rottmanj opened this issue Jun 25, 2013 · 0 comments
Open

Passenger compilation fails #25

rottmanj opened this issue Jun 25, 2013 · 0 comments

Comments

@rottmanj
Copy link

I am seeing an issue where the compilation of passenger with the following error:

================================================================================
Error executing action run on resource 'rvm_shell[build passenger_nginx_module]'

Mixlib::ShellOut::ShellCommandFailed


script[build passenger_nginx_module](/var/chef/cache/cookbooks/rvm/providers/shell.rb line 75) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of "bash" "/tmp/chef-script20130625-19334-3tfxn9" ----
STDOUT: Using /usr/local/rvm/gems/ruby-2.0.0-p195
Welcome to the Phusion Passenger Nginx module installer, v4.0.5.

This installer will guide you through the entire installation process. It
shouldn't take more than 5 minutes in total.

Here's what you can expect from the installation process:

  1. This installer will compile and install Nginx with Passenger support.

  2. You'll learn how to configure Passenger in Nginx.

  3. You'll learn how to deploy a Ruby on Rails application.

    Don't worry if anything goes wrong. This installer will advise you on how to
    solve any problems.

    Press Enter to continue, or Ctrl-C to abort.

    Checking for required software...

  • Checking for GNU C compiler...
    Found: yes
    Location: /usr/bin/gcc

  • Checking for GNU C++ compiler...
    Found: yes
    Location: /usr/bin/g++

  • Checking for A download tool like 'wget' or 'curl'...
    Found: yes
    Location: /usr/bin/wget

    STDERR: /usr/local/rvm/gems/ruby-2.0.0-p195/gems/passenger-4.0.5/lib/phusion_passenger/platform_info/ruby.rb:202:in expand_path': non-absolute home (ArgumentError) from /usr/local/rvm/gems/ruby-2.0.0-p195/gems/passenger-4.0.5/lib/phusion_passenger/platform_info/ruby.rb:202:inblock in rvm_paths'
    from /usr/local/rvm/gems/ruby-2.0.0-p195/gems/passenger-4.0.5/lib/phusion_passenger/platform_info/ruby.rb:200:in each' from /usr/local/rvm/gems/ruby-2.0.0-p195/gems/passenger-4.0.5/lib/phusion_passenger/platform_info/ruby.rb:200:inrvm_paths'
    from /usr/local/rvm/gems/ruby-2.0.0-p195/gems/passenger-4.0.5/lib/phusion_passenger/platform_info.rb:96:in rvm_paths' from /usr/local/rvm/gems/ruby-2.0.0-p195/gems/passenger-4.0.5/lib/phusion_passenger/platform_info/ruby.rb:51:inruby_command'
    from /usr/local/rvm/gems/ruby-2.0.0-p195/gems/passenger-4.0.5/lib/phusion_passenger/platform_info.rb:96:in ruby_command' from /usr/local/rvm/gems/ruby-2.0.0-p195/gems/passenger-4.0.5/lib/phusion_passenger/platform_info/depcheck.rb:266:inruby_command'
    from /usr/local/rvm/gems/ruby-2.0.0-p195/gems/passenger-4.0.5/lib/phusion_passenger/platform_info/depcheck_specs/ruby.rb:27:in block in load' from /usr/local/rvm/gems/ruby-2.0.0-p195/gems/passenger-4.0.5/lib/phusion_passenger/platform_info/depcheck.rb:70:ininstance_eval'
    from /usr/local/rvm/gems/ruby-2.0.0-p195/gems/passenger-4.0.5/lib/phusion_passenger/platform_info/depcheck.rb:70:in initialize' from /usr/local/rvm/gems/ruby-2.0.0-p195/gems/passenger-4.0.5/lib/phusion_passenger/platform_info/depcheck.rb:62:innew'
    from /usr/local/rvm/gems/ruby-2.0.0-p195/gems/passenger-4.0.5/lib/phusion_passenger/platform_info/depcheck.rb:62:in find' from /usr/local/rvm/gems/ruby-2.0.0-p195/gems/passenger-4.0.5/lib/phusion_passenger/platform_info/depcheck.rb:308:inblock in check_all'
    from /usr/local/rvm/gems/ruby-2.0.0-p195/gems/passenger-4.0.5/lib/phusion_passenger/platform_info/depcheck.rb:307:in each' from /usr/local/rvm/gems/ruby-2.0.0-p195/gems/passenger-4.0.5/lib/phusion_passenger/platform_info/depcheck.rb:307:incheck_all'
    from /usr/local/rvm/gems/ruby-2.0.0-p195/gems/passenger-4.0.5/lib/phusion_passenger/abstract_installer.rb:128:in check_dependencies' from /usr/local/rvm/gems/ruby-2.0.0-p195/gems/passenger-4.0.5/bin/passenger-install-nginx-module:79:inrun_steps'
    from /usr/local/rvm/gems/ruby-2.0.0-p195/gems/passenger-4.0.5/lib/phusion_passenger/abstract_installer.rb:66:in run' from /usr/local/rvm/gems/ruby-2.0.0-p195/gems/passenge r-4.0.5/bin/passenger-install-nginx-module:511:in<top (required)>'
    from /usr/local/rvm/gems/ruby-2.0.0-p195/bin/passenger-install-nginx-module:19:in load' from /usr/local/rvm/gems/ruby-2.0.0-p195/bin/passenger-install-nginx-module:19:in

    '
    from /usr/local/rvm/gems/ruby-2.0.0-p195/bin/ruby_noexec_wrapper:14:in eval' from /usr/local/rvm/gems/ruby-2.0.0-p195/bin/ruby_noexec_wrapper:14:in'
    ---- End output of "bash" "/tmp/chef-script20130625-19334-3tfxn9" ----
    Ran "bash" "/tmp/chef-script20130625-19334-3tfxn9" returned 1

    Cookbook Trace:

    /var/chef/cache/cookbooks/rvm/providers/shell.rb:98:in script_wrapper' /var/chef/cache/cookbooks/rvm/providers/shell.rb:46:inblock in class_from_file'

    Resource Declaration:

    In /var/chef/cache/cookbooks/rvm_passenger/recipes/nginx.rb

    48: rvm_shell "build passenger_nginx_module" do
    49: ruby_string node['rvm_passenger']['rvm_ruby']
    50: code <<-INSTALL
    51: passenger-install-nginx-module
    52: --auto --prefix=#{nginx_install}
    53: --nginx-source-dir=#{archive_cache}/nginx-#{nginx_version}
    54: --extra-configure-flags='#{configure_flags}'
    55: INSTALL
    56: notifies :restart, resources(:service => "nginx")
    57:
    58: not_if <<-CHECK
    59: #{nginx_install}/sbin/nginx -V 2>&1 |
    60: grep "cat /tmp/passenger_root_path/ext/nginx"
    61: CHECK
    62: end
    63:

    Compiled Resource:

    Declared in /var/chef/cache/cookbooks/rvm_passenger/recipes/nginx.rb:48:in `from_file'

    rvm_shell("build passenger_nginx_module") do
    action :run
    retries 0
    retry_delay 2
    cookbook_name "rvm_passenger"
    recipe_name "nginx"
    ruby_string "ruby-2.0.0-p195"
    code " passenger-install-nginx-module --auto --prefix=/opt/nginx-1.4.1 --nginx-source-dir=/var/chef/cache/nginx-1.4.1 --extra-configure-flags='none'\n"
    returns [0]
    not_if " /opt/nginx-1.4.1/sbin/nginx -V 2>&1 | grep "cat /tmp/passenger_root_path/ext/nginx"
    "
    end

    Recipe: nginx::source

  • service[nginx] action reload

    • reload service service[nginx]
  • service[nginx] action restart

    • restart service service[nginx]
  • service[nginx] action restart

    • restart service service[nginx]

    Chef Client failed. 63 resources updated
    Chef bootstrap failed!
    `

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant