Project

General

Profile

Rails application failed to start properly

Added by Anto Binish Kaspar almost 16 years ago

i have installed redmine and its working fine when i run

ruby script/server -e production

and i can able to access it from http://redmine:3000/. but when i am accessing it from http://redmine/ i am getting following error

Application error
Rails application failed to start properly

Can anyone help me to fix this issue?


Replies (5)

RE: Rails application failed to start properly - Added by Anto Binish Kaspar almost 16 years ago

I can see the following error in apache error log

[Wed Dec 03 23:09:52 2008] [error] [client 192.168.26.41] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

RE: Rails application failed to start properly - Added by Anto Binish Kaspar almost 16 years ago

i have fixed the issue, it was looping between fcgi and cgi. i commented the following lines in public/.htaccess

#<IfModule mod_cgi.c>
#       AddHandler cgi-script .cgi
#</IfModule>

and

#<IfModule mod_cgi.c>
#       RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
#</IfModule>

RE: Rails application failed to start properly - Added by Jerry Hilts almost 16 years ago

Glad to see that you've worked out your problem, though somewhat surprised to see that you are using FastCGI.

I'd highly recommend that you check out Phusion Passenger aka "mod_rails". It's really an excellent way to run your Rails apps under Apache.

j.

RE: Rails application failed to start properly - Added by Anto Binish Kaspar almost 16 years ago

Thank you very much for your recommentation. I will try with Phusion Passenger today

-Anto Binish Kaspar

Jerry Hilts wrote:

Glad to see that you've worked out your problem, though somewhat surprised to see that you are using FastCGI.

I'd highly recommend that you check out Phusion Passenger aka "mod_rails". It's really an excellent way to run your Rails apps under Apache.

j.

RE: Rails application failed to start properly - Added by Abhishek Singh over 12 years ago

I tried it on with Phusion Passenger (On a CentOS 6.2 machine), but I'm facing the same internal redirect problem. The front page of redmine displays properly but any internal link fails with a 500 Internal Server Error. I get this in apache error log

[Thu Mar 15 09:37:04 2012] [error] [client 116.66.193.244] Request exceeded the limit of 10 internal redirects due to probable configuration error.
Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

I tired increasing the internal recursion limit to 500 (just to test), but it didn't work. With the LogLevel Debug, I got the following:
[Thu Mar 15 09:37:04 2012] [debug] core.c(3112): [client 116.66.193.244] r->uri = /index.php
[Thu Mar 15 09:37:04 2012] [debug] core.c(3118): [client 116.66.193.244] redirected from r->uri = /index.php
[Thu Mar 15 09:37:04 2012] [debug] core.c(3118): [client 116.66.193.244] redirected from r->uri = /index.php
[Thu Mar 15 09:37:04 2012] [debug] core.c(3118): [client 116.66.193.244] redirected from r->uri = /index.php
[Thu Mar 15 09:37:04 2012] [debug] core.c(3118): [client 116.66.193.244] redirected from r->uri = /index.php
[Thu Mar 15 09:37:04 2012] [debug] core.c(3118): [client 116.66.193.244] redirected from r->uri = /index.php
[Thu Mar 15 09:37:04 2012] [debug] core.c(3118): [client 116.66.193.244] redirected from r->uri = /index.php
[Thu Mar 15 09:37:04 2012] [debug] core.c(3118): [client 116.66.193.244] redirected from r->uri = /index.php
[Thu Mar 15 09:37:04 2012] [debug] core.c(3118): [client 116.66.193.244] redirected from r->uri = /index.php
[Thu Mar 15 09:37:04 2012] [debug] core.c(3118): [client 116.66.193.244] redirected from r->uri = /index.php
[Thu Mar 15 09:37:04 2012] [debug] core.c(3118): [client 116.66.193.244] redirected from r->uri = /login

Any solutions for this?

    (1-5/5)