# The infamous /dispatch.fcgi" has failed to remain running fo

**URL:** <https://www.ruby-forum.com/t/the-infamous-dispatch-fcgi-has-failed-to-remain-running-fo/106504>\
**Category:** Rails\
**Created:** [June 11, 2007, 12:17pm UTC](https://www.ruby-forum.com/t/the-infamous-dispatch-fcgi-has-failed-to-remain-running-fo/106504 "2007-06-11T12:17:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hanoc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/f19dbf/32.png) [@hanoc](https://www.ruby-forum.com/u/hanoc)\
**Post date:** [June 11, 2007, 12:17pm UTC](https://www.ruby-forum.com/t/the-infamous-dispatch-fcgi-has-failed-to-remain-running-fo/106504/1 "2007-06-11T12:17:29Z")

</div>

Hi,

I had an application up and running with rails and fcgi and I don’t  
really know how I messed things up.  
After hours of trying solutions from the web I have been able to get  
the famous  
/dispatch.fcgi" has failed to remain running for 30 seconds given 3  
attempts, its restart interval has been backed off to 600 seconds.

I’ve allready tried the most commont solutions… but my configuration  
_seems_ ok.

My system is a dedicated Fedora box with the kernel 2.4.22-1  
my ruby version is:  
ruby 1.8.4 (2005-12-24) [i686-linux]

That’s what I’ve allready done:  
The shebang of dispatch.fcgi is correct:  
its:  
#!/usr/local/bin/ruby

and

# which ruby

/usr/local/bin/ruby

my permisions for the dispatchers are:  
-rwxrwxrwx 1 vsvvallery root 479 Jun 11 10:34 dispatch.cgi  
-rwxrwxrwx 1 vsvvallery root 858 Jun 11 10:34 dispatch.fcgi  
-rwxrwxrwx 1 vsvvallery root 480 Jun 11 10:32 dispatch.rb

my log’s directory is also writable

in my .httaccess i have:  
RewriteRule ^(.\*)$ dispatch.fcgi [QSA,L]

## if i execute the dispatch.fcgi from the command line i get:

…/config/…/app/controllers/application.rb:31: warning: found = in  
conditional, should be ==  
…/config/…/app/helpers/application\_helper.rb:87: warning: string  
literal in condition  
Status: 500 Internal Server Error  
Content-Type: text/html

---- I've tried to solve the two warnings of the top and they did not change a thing...

the application is set to production at the moment but I’ve already  
tried to set it to development just to see if I got more output.

Neither of the logs in rails\_app/log is growing.

## and finally my last lines of my /etc/httpd/logs/error\_log are:

## [Mon Jun 11 11:49:16 2007] [warn] FastCGI: (dynamic) server “/home/ httpd/vhosts/vallery.es/httpdocs/vallery/public/dispatch.fcgi” has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds

I think that the error may be very simple to solve… but I don’t know  
what else to try… if someone please can point me in the right  
direction I’ll be very grateful

Thanks!

I’ve allready deleted the tmp files, restarted the server, reinstalled  
fcgi even tried to go back
