Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Question updated, please read UPD2.

I'm trying to deploy app through passenger nginx module on DS710+ (ruby 1.9.2p0 installed). There is syntax error relative to has_and_belongs_to_many_association.rb file. Please look at the screenshot(deleted, question updated). I'm pretty sure the problem isn't in library file. App is running good via webrick. Could you please advise what to look for?

UPD1

ruby -v

ruby 1.9.2p0 (2010-08-18 revision 29036) [i686-linux]

gem list -d passenger

*** LOCAL GEMS ***

passenger (3.0.6)
Author: Phusion - http://www.phusion.nl/
Rubyforge: http://rubyforge.org/projects/passenger
Homepage: http://www.modrails.com/
Installed at: /usr/lib/ruby/gems/1.9.1

Easy and robust Ruby web application deployment

UPD2

I've decided to reinstall everything. It solved previous problem but caused another one. The error is: The application spawner server exited unexpectedly: Unexpected end-of-file detected. Here is screenshot.

New output:

ruby -v

ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]

gem list -d passenger

*** LOCAL GEMS ***

passenger (3.0.7)
Author: Phusion - http://www.phusion.nl/
Rubyforge: http://rubyforge.org/projects/passenger
Homepage: http://www.modrails.com/
Installed at: /usr/lib/ruby/gems/1.9.1

Nginx error.log:

[ pid=5653 thr=32771 file=ext/common/Watchdog.cpp:128 time=2011-04-20 14:08:34.505 ]: waitpid() on Phusion Passenger helper agent return -1 with errno = ECHILD, falling back to kill polling
[ pid=5654 thr=49156 file=ext/common/Watchdog.cpp:128 time=2011-04-20 14:08:34.506 ]: waitpid() on Phusion Passenger logging agent return -1 with errno = ECHILD, falling back to kill polling
2011/04/20 14:12:33 [notice] 7614#0: signal process started
share|improve this question
add comment

1 Answer

You say you've got Ruby 1.9.2p0 installed, but your screenshot implies that Passenger is using 1.9.1 (which isn't supported by Rails); check your nginx passenger-configuration, specifically the passenger_ruby line.

share|improve this answer
    
I think it's just an old path after upgrading from 1.9.1. Because which ruby returns /usr/bin/ruby and in nginx.conf passenger_ruby /usr/bin/ruby; passenger_root /usr/lib/ruby/gems/1.9.1/gems/passenger-3.0.6; It's really there. –  peresleguine Apr 12 '11 at 13:14
    
Can you post the output of ruby -v and gem list -d passenger? –  nickgrim Apr 12 '11 at 13:45
    
Sure. Updated question. –  peresleguine Apr 12 '11 at 14:01
    
Try uninstalling and reinstalling passenger? All I can think of is that the native parts of passenger are probably compiled against Ruby 1.9.1 (implied by the path and your talk of upgrading) and that might fix it. –  nickgrim Apr 12 '11 at 14:06
    
I've already tried to recompile passenger. All my local gems including rails are under /usr/lib/ruby/gems/1.9.1. App works fine using WEBrick. Isn't that confirms working with 1.9.2p0? –  peresleguine Apr 12 '11 at 14:19
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.