I’m down to my last straw. I’ve been trying to deploy my latest rails
project on Apache for about two weeks with limited success. I have a
lot of info, but still no clue what is causing my problem. I decided to
turn to the community for some help…
Basically, my site works fine with Apache and FastCGI most of the time,
but sometimes I get the “Rails Failed to Start Correctly” error. I know
what the problem is. It seems that although I tried to set apache to
use a static number of servers, it still creates more dynamically.
Here is a basic flow of what happens:
I restart the webserver. Running “ps -A” I can see that the right
number of dispatch.fcgi scripts are running as specified in my
httpd.conf so I think I’m good.
I start testing the website and intermittently runing my “ps -A”
command and low and behold I find that Apache is firing more
dispatch.fcgi scripts than I specified.
After a while they begin to die off and every once in a while rails
can’t start properly.
I’ve tried various numbers of dispatchers and I still have the same
problem. I’m pretty confident that if I can fix the number of
dispatchers, my problem will go away.
Here is what I have in my httpd.conf (directly after the AddModule
Note that I have two rails apps running on this server. As far as I can
tell, app2 is giving me no grief, but app1 is.
Does anyone have any ideas? I hate to bother, but I think I’ve taken
this issue about as far as I can on my own.