Newbie Alert: RoR on Passenger issue

Hi,

Just finished installing RoR on my brand new linode Ubuntu 9.04 VPS
using
following guides:
http://library.linode.com/web-frameworks/ruby-on-rails/installing-ruby-on-rails-with-apache
https://help.ubuntu.com/community/RubyOnRails

However, when I click on “About your application’s environment” I get
following error:

Passenger encountered the following error:

The application spawner server exited unexpectedly
Exception class:Passenger::Railz::ApplicationSpawner::ErrorBacktrace:
#FileLineLocation0/usr/lib/ruby/1.8/passenger/railz/application_spawner.rb
182in
start'1/usr/lib/ruby/1.8/passenger/railz/framework_spawner.rb270in handle_spawn_application’2
/usr/lib/ruby/1.8/passenger/railz/framework_spawner.rb263in
synchronize'3 /usr/lib/ruby/1.8/passenger/railz/framework_spawner.rb263in handle_spawn_application’4/usr/lib/ruby/1.8/passenger/abstract_server.rb317in
__send__'5/usr/lib/ruby/1.8/passenger/abstract_server.rb317in main_loop’6
/usr/lib/ruby/1.8/passenger/abstract_server.rb168in
start_synchronously'7 /usr/lib/ruby/1.8/passenger/abstract_server.rb135in start’8
/usr/lib/ruby/1.8/passenger/abstract_server.rb112in fork'9 /usr/lib/ruby/1.8/passenger/abstract_server.rb112in start’10
/usr/lib/ruby/1.8/passenger/railz/framework_spawner.rb87in start'11 /usr/lib/ruby/1.8/passenger/spawn_manager.rb218in spawn_rails_application’
12/usr/lib/ruby/1.8/passenger/spawn_manager.rb213in synchronize'13 /usr/lib/ruby/1.8/passenger/spawn_manager.rb213in spawn_rails_application’
14/usr/lib/ruby/1.8/passenger/spawn_manager.rb122in
spawn_application'15 /usr/lib/ruby/1.8/passenger/spawn_manager.rb247in handle_spawn_application’
16/usr/lib/ruby/1.8/passenger/abstract_server.rb317in __send__'17 /usr/lib/ruby/1.8/passenger/abstract_server.rb317in main_loop’18
/usr/lib/ruby/1.8/passenger/abstract_server.rb168in
`start_synchronously’19
/usr/lib/passenger/passenger-spawn-server46
Any ideas please?

Thanks for reading.

With regards,
Saurabh Agrawal.

I’ve got absolutely the same problem, but with 9.10, following the same
guide on linode library.

Did you restart Apache?

jhaagmans wrote:

Did you restart Apache?

Yep, I even tried restarting the whole server and it didn’t help.

Any gems installed apart from the default ones?

There’s no real error in the OP. Are you sure your message states the
exact same? What does the rest of your server setup look like?

I’ve found similar reports with no real error messages on the net, but
those problems appear to be caused by memory limits and such. Could
that be a problem on your setup?

jhaagmans wrote:

Any gems installed apart from the default ones?

nothing, just followed the guide

jhaagmans wrote:

There’s no real error in the OP. Are you sure your message states the
exact same? What does the rest of your server setup look like?

I’ve found similar reports with no real error messages on the net, but
those problems appear to be caused by memory limits and such. Could
that be a problem on your setup?

Uh now I feel really stupid, it seems that I didn’t check the whole log,
it is pretty different

anyway, I have set up virtual machine with 512MB RAM, 8GB HDD and the
only thing that is runnig there is Apache, Mysql and Passenger, so I
guess there is no problem with memory

/usr/lib/ruby/1.8/passenger/application.rb:58:Warning:
Gem::SourceIndex#search support for String patterns is deprecated, use
#find_name
*** Exception NoMethodError in Passenger::Railz::ApplicationSpawner (You
have a nil object when you didn’t expect it!
The error occurred while evaluating nil.warn) (process 9718):
from
/var/lib/gems/1.8/gems/activesupport-2.3.4/lib/active_support/deprecation.rb:17
from
/var/lib/gems/1.8/gems/activesupport-2.3.4/lib/active_support/deprecation.rb:24:in
call' from /var/lib/gems/1.8/gems/activesupport-2.3.4/lib/active_support/deprecation.rb:24:inwarn’
from
/var/lib/gems/1.8/gems/activesupport-2.3.4/lib/active_support/deprecation.rb:188:in
warn' from /var/lib/gems/1.8/gems/activesupport-2.3.4/lib/active_support/deprecation.rb:134:inmethod_missing’
from /usr/lib/ruby/1.8/passenger/utils.rb:86:in
close_all_io_objects_for_fds' from /usr/lib/ruby/1.8/passenger/utils.rb:85:ineach_object’
from /usr/lib/ruby/1.8/passenger/utils.rb:85:in
close_all_io_objects_for_fds' from /usr/lib/ruby/1.8/passenger/abstract_server.rb:127:instart’
from /usr/lib/ruby/1.8/passenger/abstract_server.rb:112:in fork' from /usr/lib/ruby/1.8/passenger/abstract_server.rb:112:instart’
from /usr/lib/ruby/1.8/passenger/railz/application_spawner.rb:177:in
start' from /usr/lib/ruby/1.8/passenger/railz/framework_spawner.rb:270:inhandle_spawn_application’
from /usr/lib/ruby/1.8/passenger/railz/framework_spawner.rb:263:in
synchronize' from /usr/lib/ruby/1.8/passenger/railz/framework_spawner.rb:263:inhandle_spawn_application’
from /usr/lib/ruby/1.8/passenger/abstract_server.rb:317:in __send__' from /usr/lib/ruby/1.8/passenger/abstract_server.rb:317:inmain_loop’
from /usr/lib/ruby/1.8/passenger/abstract_server.rb:168:in
start_synchronously' from /usr/lib/ruby/1.8/passenger/abstract_server.rb:135:instart’
from /usr/lib/ruby/1.8/passenger/abstract_server.rb:112:in fork' from /usr/lib/ruby/1.8/passenger/abstract_server.rb:112:instart’
from /usr/lib/ruby/1.8/passenger/railz/framework_spawner.rb:87:in
start' from /usr/lib/ruby/1.8/passenger/spawn_manager.rb:218:inspawn_rails_application’
from /usr/lib/ruby/1.8/passenger/spawn_manager.rb:213:in synchronize' from /usr/lib/ruby/1.8/passenger/spawn_manager.rb:213:inspawn_rails_application’
from /usr/lib/ruby/1.8/passenger/spawn_manager.rb:122:in
spawn_application' from /usr/lib/ruby/1.8/passenger/spawn_manager.rb:247:inhandle_spawn_application’
from /usr/lib/ruby/1.8/passenger/abstract_server.rb:317:in __send__' from /usr/lib/ruby/1.8/passenger/abstract_server.rb:317:inmain_loop’
from /usr/lib/ruby/1.8/passenger/abstract_server.rb:168:in
start_synchronously' from /usr/lib/passenger/passenger-spawn-server:46 *** Exception NoMethodError in Passenger::Railz::FrameworkSpawner (undefined methodchild_exception’ for
#Passenger::Railz::ApplicationSpawner::Error:0xb68ea40c) (process
9717):
from /usr/lib/ruby/1.8/passenger/railz/framework_spawner.rb:274:in
handle_spawn_application' from /usr/lib/ruby/1.8/passenger/railz/framework_spawner.rb:263:insynchronize’
from /usr/lib/ruby/1.8/passenger/railz/framework_spawner.rb:263:in
handle_spawn_application' from /usr/lib/ruby/1.8/passenger/abstract_server.rb:317:insend
from /usr/lib/ruby/1.8/passenger/abstract_server.rb:317:in main_loop' from /usr/lib/ruby/1.8/passenger/abstract_server.rb:168:instart_synchronously’
from /usr/lib/ruby/1.8/passenger/abstract_server.rb:135:in start' from /usr/lib/ruby/1.8/passenger/abstract_server.rb:112:infork’
from /usr/lib/ruby/1.8/passenger/abstract_server.rb:112:in start' from /usr/lib/ruby/1.8/passenger/railz/framework_spawner.rb:87:instart’
from /usr/lib/ruby/1.8/passenger/spawn_manager.rb:218:in
spawn_rails_application' from /usr/lib/ruby/1.8/passenger/spawn_manager.rb:213:insynchronize’
from /usr/lib/ruby/1.8/passenger/spawn_manager.rb:213:in
spawn_rails_application' from /usr/lib/ruby/1.8/passenger/spawn_manager.rb:122:inspawn_application’
from /usr/lib/ruby/1.8/passenger/spawn_manager.rb:247:in
handle_spawn_application' from /usr/lib/ruby/1.8/passenger/abstract_server.rb:317:insend
from /usr/lib/ruby/1.8/passenger/abstract_server.rb:317:in main_loop' from /usr/lib/ruby/1.8/passenger/abstract_server.rb:168:instart_synchronously’
from /usr/lib/passenger/passenger-spawn-server:46