Project

General

Profile

Application error - Rails application failed to start properly

Added by Stefano Cognigni about 13 years ago

Hi,
i have installed the last redmine on Centos 5.5 and work correctly with webrick. I have integrated redmine with passenger on Apache and i have this error when i access.

Application error - Rails application failed to start properly

In redmine_error_log i have:

[Thu Feb 17 19:34:31 2011] [error] [client 192.168.1.155] /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/cgi_process.rb:22:in `__send__': undefined method `env_table' for nil:NilClass (NoMethodError)
[Thu Feb 17 19:34:31 2011] [error] [client 192.168.1.155] \tfrom /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/cgi_process.rb:22:in `dispatch_cgi'
[Thu Feb 17 19:34:31 2011] [error] [client 192.168.1.155] \tfrom /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:101:in `dispatch_cgi'
[Thu Feb 17 19:34:31 2011] [error] [client 192.168.1.155] \tfrom /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:27:in `dispatch'
[Thu Feb 17 19:34:31 2011] [error] [client 192.168.1.155] \tfrom /var/www/html_bugs.gruppometa.it/public/dispatch.cgi:10
[Thu Feb 17 19:34:31 2011] [error] [client 192.168.1.155] Premature end of script headers: dispatch.cgi

Help me please!!

Stefano


Replies (6)

RE: Application error - Rails application failed to start properly - Added by Felix Schäfer about 13 years ago

It's trying to start the cgi process, which won't work if you want to use passenger. Have a look in the public directory in your Redmine folder, there probably is a file called .htaccess, remove it (or move it elsewhere if you prefer) and everything should work OK.

RE: Application error - Rails application failed to start properly - Added by Stefano Cognigni about 13 years ago

I have try to use cgi...i have follow the instruction of a official install guide but don't work....i use passenger why in another server i installed redmine correctly and work with passenger. In this case I do not understand what happened......if you remove the .htaccess file, i have a welcome screen of apache...the file .htaccess and dispatch.cgi have not changed. If you have a procedure running in cgi, I might try it ...

Thanks

Stefano

RE: Application error - Rails application failed to start properly - Added by Felix Schäfer about 13 years ago

I'd recommend using passenger over cgi, and as it seems you have neither working, I'd recommend trying to get passenger to work :-)

RE: Application error - Rails application failed to start properly - Added by Stefano Cognigni about 13 years ago

I use passenger and is my gem list --local, i believe that the versions of software are right:

actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
daemon_controller (0.2.6)
daemons (1.1.0)
eventmachine (0.12.10)
fastthread (1.0.7)
file-tail (1.0.5)
i18n (0.4.2)
mysql (2.8.1)
passenger (3.0.2)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)
spruz (0.2.5)
thin (1.2.7)

RE: Application error - Rails application failed to start properly - Added by Stefano Cognigni about 13 years ago

Ok, i resolved, i disabled SELinux, and all works perfectly!!
Thank's all!

Stefano

    (1-6/6)