Project

General

Profile

Internal Server Error (no passenger_native_support.so found for the current Ruby interpreter)

Added by Dries Maertens about 12 years ago

Hi

I've installed the BitNami Redmine stack. When I go visit the IP-adres of the server (http://193.191.148.109/), I see the Bitnami Welcome Message. Unfortunately when I click through to http://193.191.148.109/redmine/ I get a 500 Internal Server Error.

"The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log."

I've posted the apache2 error-log on http://pastebin.com/euGxT9up The last lines are:

*** Phusion Passenger: no passenger_native_support.so found for the current Ruby interpreter. Compiling one...
# mkdir -p /opt/redmine-2.1.2-1/ruby/lib/ruby/gems/1.8/gems/passenger-3.0.17/ext/ruby/ruby-1.8.7-x86_64-linux
# cd /opt/redmine-2.1.2-1/ruby/lib/ruby/gems/1.8/gems/passenger-3.0.17/ext/ruby/ruby-1.8.7-x86_64-linux
# /opt/redmine-2.1.2-1/ruby/bin/ruby '/opt/redmine-2.1.2-1/ruby/lib/ruby/gems/1.8/gems/passenger-3.0.17/ext/ruby/extconf.rb'
# make
/opt/redmine-2.1.2-1/ruby/lib/ruby/gems/1.8/gems/passenger-3.0.17/ext/ruby/ruby-1.8.7-x86_64-linux/passenger_native_support.so: /opt/redmine-2.1.2-1/ruby/lib/ruby/gems/1.8/gems/passenger-3.0.17/ext/ruby/ruby-1.8.7-x86_64-linux/passenger_native_support.so: wrong ELF class: ELFCLASS64 - /opt/redmine-2.1.2-1/ruby/lib/ruby/gems/1.8/gems/passenger-3.0.17/ext/ruby/ruby-1.8.7-x86_64-linux/passenger_native_support.so (LoadError)
        from /opt/redmine-2.1.2-1/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
        from /opt/redmine-2.1.2-1/ruby/lib/ruby/gems/1.8/gems/passenger-3.0.17/lib/phusion_passenger/native_support.rb:112:in `compile_and_load'
        from /opt/redmine-2.1.2-1/ruby/lib/ruby/gems/1.8/gems/passenger-3.0.17/lib/phusion_passenger/native_support.rb:36:in `start'
        from /opt/redmine-2.1.2-1/ruby/lib/ruby/gems/1.8/gems/passenger-3.0.17/lib/phusion_passenger/native_support.rb:166
        from /opt/redmine-2.1.2-1/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
        from /opt/redmine-2.1.2-1/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
        from /opt/redmine-2.1.2-1/ruby/lib/ruby/gems/1.8/gems/passenger-3.0.17/helper-scripts/passenger-spawn-server:79
[ pid=6805 thr=4148418240 file=ext/apache2/Hooks.cpp:884 time=2012-11-13 16:58:46.58 ]: Unexpected error in mod_passenger: Cannot spawn application '/opt/redmine-2.1.2-1/apache2/htdocs/../../apps/redmine/htdocs': Could not read from the spawn server: Connection reset by peer (104)
  Backtrace:
     in 'virtual Passenger::SessionPtr Passenger::ApplicationPool::Client::get(const Passenger::PoolOptions&)' (Client.h:742)
     in 'Passenger::SessionPtr Hooks::getSession(const Passenger::PoolOptions&)' (Hooks.cpp:312)
     in 'int Hooks::handleRequest(request_rec*)' (Hooks.cpp:585)

The server is running Debian 6 and I only have ssh access to it. Redmine version 2.1.2-1. What can I do to solve this problem?


Replies (1)

RE: Internal Server Error (no passenger_native_support.so found for the current Ruby interpreter) - Added by Dries Maertens about 12 years ago

It's fixed. I was using the 32-bit Bitnami installer, but running a 64-bit Debian version. Using the correct installer solved the problem.

    (1-1/1)