Hi, I know that Apache2 + fastcgi is sometimes difficult to setup, but I was wondering if anyone has come across this error and if yes what did you do to resolve it? [Wed Jan 18 14:58:12 2006] [error] [client 220.127.116.11] FastCGI: comm with server "/var/htdocs/ot/public/dispatch.fcgi" aborted: idle timeout (120 sec) [Wed Jan 18 14:58:12 2006] [error] [client 18.104.22.168] FastCGI: incomplete headers (0 bytes) received from server "/var/htdocs/ot/public/dispatch.fcgi" Any help is appreciated, Thanks
on 2006-01-18 22:53
on 2006-01-18 23:17
What platform are you trying to get this working on? I was never able to get Apache 2 + FastCGI + Windows 2000 to work, and recieved the errors you show here. I was able to get Apache 2 + FastCGI + windows 2003 running. My production box however is Linux + Lighttpd + FastCGI.
on 2006-01-18 23:23
Our setup is: RedHat Enterprise + Apache + FastCGI. Any ideas?
on 2006-01-19 04:01
In my (very limited) experience with Apache2 + fastcgi, I've see this when I've had a problem with my Rails configuration, not fastcgi. Have you tried running dispatch.fcgi from directly? E.g., sudo -u www ./dispatch.fcgi Not sure what user Apache runs under on your box. It's wwwrun on Suse. Scott
on 2006-01-19 17:54
Yesterday afternoon we did manage to discover that in the ./dispatch.fcgi script the first line is: #!/usr/bin/ruby1.8 On our production server, this is not the case. The app had been copied over and we did not think of looking into the dispatch.fcgi and changing that line to point to the correct path. This made us think that is this something that is part of configuring a rails app for production? Or is there some script we should run in order to make our rails app deployment ready and that script would in turn take care of setting such dependencies either by asking or discovery whichever works. Thanks,
on 2006-01-19 18:06
That first line is very important and needs to be configured on a box by box basis. I place dispatch.fcgi.sample into version control, with no dispatch.fcgi file so that every time I move the app to a new environment I am reminded to copy dispatch.fcgi.sample to dispatch.fcgi and adjust the environment variable. ~ Ben
on 2006-01-19 20:01
On 1/19/06, Ben Reubenstien <firstname.lastname@example.org> wrote: > > That first line is very important and needs to be configured on a box by > box basis. I place dispatch.fcgi.sample into version control, with no > dispatch.fcgi file so that every time I move the app to a new environment > I am reminded to copy dispatch.fcgi.sample to dispatch.fcgi and adjust the > environment variable. > > ~ Ben > It's also good to do this (.sample technique) with config/database.yml and maybe even config/environment.rb (depending on your app).
on 2006-01-19 22:05
One way to get around this is by using a #! line that looks like this: #!/usr/bin/env ruby This is available on most modern *nix variants and all it does is load the ruby interpreter that comes firs in your $PATH. this way the same line will work on a box with ruby installed at /usr/bin/ruby or another with /usr/local/bin/ruby or even /opt/local/bin/ruby. As long as ruby is in the $PATH this one will work. Cheers- -Ezra On Jan 19, 2006, at 8:15 AM, Mufaddal Khumri wrote: > should run in order to make our rails app deployment ready and that >> >>> Hi, >>> htdocs/ot/ public/dispatch.fcgi" >> _______________________________________________ >> Rails mailing list >> Rails@lists.rubyonrails.org >> http://lists.rubyonrails.org/mailman/listinfo/rails > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > -Ezra Zygmuntowicz Yakima Herald-Republic WebMaster http://yakimaherald.com 509-577-7732 email@example.com