This forum is no longer active. Please post your questions to our new community site

Passenger: error while loading shared libraries: libruby.so.1.8: No such file or directory

Subscribe to Passenger: error while loading shared libraries: libruby.so.1.8: No such file or directory 4 post(s), 2 voice(s)

 
Avatar Sebastian 3 post(s)

Hi there,

I launched the Amazon EC2 RubyStack Image and installed the Phusion Passenger Module into Apache (via gem, no big deal). However, I’m getting a 500 Internal Server Error. The Apache error log says:


error_log -———-

/opt/bitnami/ruby/bin/.ruby.bin: error while loading shared libraries: libruby.so.1.8: cannot open shared object file: No such file or directory
[ pid=12890 file=ext/apache2/Hooks.cpp:727 time=2010-03-25 10:54:52.959 ]:
Unexpected error in mod_passenger: Cannot spawn application ‘/opt/bitnami/projects/event/current’: Could not read from the spawn server: Connection reset by peer (104)
Backtrace:
in ‘virtual boost::shared_ptr Passenger::ApplicationPoolServer::Client::get(const Passenger::PoolOptions&)’ (ApplicationPoolServer.h:471)
in ‘int Hooks::handleRequest(request_rec*)’ (Hooks.cpp:523)
-———————————————

First I asked the the guys from Phusion Passenger, but it seems Passenger is configured correctly (http://groups.google.com/group/phusion-passenge….

In /opt/bitnami/ruby/lib the libruby.so.1.8 file seems in place (R and X access for everyone). So I’m wondering if anybody here has an idea what could be wrong.

I’ve been biting on this problem for hours, so any help would be highly appreciated.

Thanks in advance,
Sebastian

PS: Europe RubyStack ami-7fab800b, Ubuntu 9.04, Rails 2.3.5, Passenger 2.2.11

 
Avatar danoo Administrator 81 post(s)

Hi,

I was trying to reproduce your issue:

- I have started the instance based on the same AMI
- gem update passenger
- created the default Rails app in /opt/bitnami/apps/demo
- changed the apache httpd.conf (2.2.9 → 2.2.11)

DocumentRoot “/opt/bitnami/apps/demo/public”

<Directory “/opt/bitnami/apps/demo/public”>

LoadModule passenger_module /opt/bitnami/ruby/lib/ruby/gems/1.8/gems/passenger-2.2.11/ext/apache2/mod_passenger.so
PassengerRoot /opt/bitnami/ruby/lib/ruby/gems/1.8/gems/passenger-2.2.11
PassengerRuby /opt/bitnami/ruby/bin/ruby
RailsENv development

- ./ctlscript.sh restart apache
- cd /opt/bitnami/apps/demo; rake db:create RAILS_ENV=development

It works for me – Ruby and Ruby on Rails properties are shown correctly in the “About your application’s environment” section.

Can you please copy&paste here, commands/steps you follow just after EC2 instance is started ?

Cheers
Danoo

 
Avatar Sebastian 3 post(s)

Hi Danoo,

Thanks for your effort. I tried to reproduce your reproduction and got the demo to work! :-)

The only differences to what I did originally were:

  • I restarted apache via “apachectl graceful”
  • I installed Passenger with “passenger-install-apache2-module”

Maybe the latter shook something up. Actually I did that because Passenger wasn’t mentioned on the website so I automatically thought, I have to install it manually. In other words: I underestimated BitNami, it actually works out of the box :-)

Now I see that Passenger is actually mentioned in the README file . Maybe you want to make this a tutorial / explanation page and include the last steps on the server? There’s a lot of relevent information there, but it’s not very prominently placed.

Anyway, thanks a lot for your support. Is there a way I can donate a few dollars or euros to you or BitNami? I feel I should give something back. Without you I probably would have had a lot more work and frustration.

Cheers,
Sebastian

 
Avatar danoo Administrator 81 post(s)

HI,

> Is there a way I can donate a few dollars or euros to you or BitNami?

Instead of money please spend some time helping other BitNami users when you have a chance :D

Thanks
Danoo