I''m trying to deploy an app on Dreamhost and I''m getting the infamous 500 Server Error. Nothing in the rails logs because it looks to be happening before it gets there. In the apache error logs we have: [Wed Apr 12 12:51:51 2006] [error] [client 194.80.32.9] FastCGI: comm with (dynamic) server "/home/rlivsey/thatsprogress.com/current/public/dispatch.fcgi" aborted: (first read) idle timeout (120 sec) [Wed Apr 12 12:51:51 2006] [error] [client 194.80.32.9] FastCGI: incomplete headers (0 bytes) received from server "/home/rlivsey/thatsprogress.com/current/public/dispatch.fcgi" Any ideas on what that means and how to fix it? I''ve run through the usual list of things and nothing seems to be working. Running script/console works fine Running dispatch.* from the command line results in the Application error (Apache) being output. This happened when I uploaded the latest codebase. I didn''t overwrite anything in the /public/ directory, so the dispatch.* etc are the same as they were when they were working. It has me a bit confused! Any help would be gratefully appreciated. Thanks in advance. -- R.Livsey http://livsey.org
I had this if my models or controllers had puts in Richard Livsey wrote:> I''m trying to deploy an app on Dreamhost and I''m getting the infamous > 500 Server Error. > > Nothing in the rails logs because it looks to be happening before it > gets there. > > In the apache error logs we have: > > [Wed Apr 12 12:51:51 2006] [error] [client 194.80.32.9] FastCGI: comm > with (dynamic) server > "/home/rlivsey/thatsprogress.com/current/public/dispatch.fcgi" aborted: > (first read) idle timeout (120 sec) > > [Wed Apr 12 12:51:51 2006] [error] [client 194.80.32.9] FastCGI: > incomplete headers (0 bytes) received from server > "/home/rlivsey/thatsprogress.com/current/public/dispatch.fcgi" >-- Posted via http://www.ruby-forum.com/.
Richard Livsey
2006-Apr-12 21:03 UTC
[Rails] Re: 500 Server Error - stumping me at the moment
Just checked and searched the source of /app/ dir and there are no files with puts in them. Confusing the hell out of me! Thanks for the suggestion - will keep on trying things :o) -- R.Livsey http://livsey.org Paul wrote:> I had this if my models or controllers had puts in > > > Richard Livsey wrote: >> I''m trying to deploy an app on Dreamhost and I''m getting the infamous >> 500 Server Error. >> >> Nothing in the rails logs because it looks to be happening before it >> gets there. >> >> In the apache error logs we have: >> >> [Wed Apr 12 12:51:51 2006] [error] [client 194.80.32.9] FastCGI: comm >> with (dynamic) server >> "/home/rlivsey/thatsprogress.com/current/public/dispatch.fcgi" aborted: >> (first read) idle timeout (120 sec) >> >> [Wed Apr 12 12:51:51 2006] [error] [client 194.80.32.9] FastCGI: >> incomplete headers (0 bytes) received from server >> "/home/rlivsey/thatsprogress.com/current/public/dispatch.fcgi" >> >
Juan LupiĆ³n
2006-Apr-12 23:12 UTC
[Rails] Re: 500 Server Error - stumping me at the moment
Try running script/server from your Dreamhost shell account and see what happens. If you can access your app at the default WEBrick port (3000), then it is a FastCGI issue. On 4/12/06, Richard Livsey <richard@livsey.org> wrote:> Just checked and searched the source of /app/ dir and there are no files > with puts in them. > > Confusing the hell out of me! > > Thanks for the suggestion - will keep on trying things :o) > > -- > R.Livsey > http://livsey.org > > Paul wrote: > > I had this if my models or controllers had puts in > > > > > > Richard Livsey wrote: > >> I''m trying to deploy an app on Dreamhost and I''m getting the infamous > >> 500 Server Error. > >> > >> Nothing in the rails logs because it looks to be happening before it > >> gets there. > >> > >> In the apache error logs we have: > >> > >> [Wed Apr 12 12:51:51 2006] [error] [client 194.80.32.9] FastCGI: comm > >> with (dynamic) server > >> "/home/rlivsey/thatsprogress.com/current/public/dispatch.fcgi" aborted: > >> (first read) idle timeout (120 sec) > >> > >> [Wed Apr 12 12:51:51 2006] [error] [client 194.80.32.9] FastCGI: > >> incomplete headers (0 bytes) received from server > >> "/home/rlivsey/thatsprogress.com/current/public/dispatch.fcgi" > >> > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- ---------------------------------------------------- http://hronia.blogalia.com
Todd Fisher
2006-Apr-12 23:29 UTC
[Rails] Re: 500 Server Error - stumping me at the moment
Also running webrick in debug mode can be very helpful ruby -d scripts/server On 4/12/06, Juan Lupi?n <pantulis@gmail.com> wrote:> > Try running script/server from your Dreamhost shell account and see > what happens. If you can access your app at the default WEBrick port > (3000), then it is a FastCGI issue. > > On 4/12/06, Richard Livsey <richard@livsey.org> wrote: > > Just checked and searched the source of /app/ dir and there are no files > > with puts in them. > > > > Confusing the hell out of me! > > > > Thanks for the suggestion - will keep on trying things :o) > > > > -- > > R.Livsey > > http://livsey.org > > > > Paul wrote: > > > I had this if my models or controllers had puts in > > > > > > > > > Richard Livsey wrote: > > >> I''m trying to deploy an app on Dreamhost and I''m getting the infamous > > >> 500 Server Error. > > >> > > >> Nothing in the rails logs because it looks to be happening before it > > >> gets there. > > >> > > >> In the apache error logs we have: > > >> > > >> [Wed Apr 12 12:51:51 2006] [error] [client 194.80.32.9] FastCGI: comm > > >> with (dynamic) server > > >> "/home/rlivsey/thatsprogress.com/current/public/dispatch.fcgi" > aborted: > > >> (first read) idle timeout (120 sec) > > >> > > >> [Wed Apr 12 12:51:51 2006] [error] [client 194.80.32.9] FastCGI: > > >> incomplete headers (0 bytes) received from server > > >> "/home/rlivsey/thatsprogress.com/current/public/dispatch.fcgi" > > >> > > > > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > -- > ---------------------------------------------------- > http://hronia.blogalia.com > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060412/ba63b788/attachment.html
Kevin Marshall
2006-Apr-12 23:37 UTC
[Rails] Re: Re: 500 Server Error - stumping me at the moment
I''ve had sim. issues if I have something in one of my environment files that isn''t supported/installed on the server...for example I had ferret installed on my dev machine but forgot to install it on the production one, so when I released the code the site wouldn''t load (fcgi was acting like it was crashing, but it was because when loading it couldn''t deal with a require line that my environment had)... The webrick suggestion above is a good way to find out for sure...if you can load your app with Webrick on the server, then you are likely looking at something specific to your fcgi configuration...but my guess is that it''s something one of your scripts is trying to do that is causing the whole site to error out... -- Posted via http://www.ruby-forum.com/.
Richard Livsey
2006-Apr-13 01:01 UTC
[Rails] Re: Re: 500 Server Error - stumping me at the moment
script/server runs without a hitch and the site runs through port 3000 (albeit slowly!), so it''s definitely something non rails related - ie fcgi. When I set cgi as opposed to fcgi in the htaccess I still get the same error. Trying to run dispatch.rb and dispatch.cgi from the command line result in the same error as the fcgi one: [barry]$ ./public/dispatch.rb Status: 500 Internal Server Error Content-Type: text/html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <body> <h1>Application error (Apache)</h1> </body> </html>Loaded suite ./public/dispatch Started Finished in 0.000439 seconds. 0 tests, 0 assertions, 0 failures, 0 errors Any ideas on how to track this down further? Thanks everyone for the advice and suggestions so far! -- R.Livsey http://livsey.org Kevin Marshall wrote:> I''ve had sim. issues if I have something in one of my environment files > that isn''t supported/installed on the server...for example I had ferret > installed on my dev machine but forgot to install it on the production > one, so when I released the code the site wouldn''t load (fcgi was acting > like it was crashing, but it was because when loading it couldn''t deal > with a require line that my environment had)... > > The webrick suggestion above is a good way to find out for sure...if you > can load your app with Webrick on the server, then you are likely > looking at something specific to your fcgi configuration...but my guess > is that it''s something one of your scripts is trying to do that is > causing the whole site to error out... >
Pedro Visintin
2006-Apr-13 03:49 UTC
[Rails] Re: Re: Re: 500 Server Error - stumping me at the moment
Richard Livsey wrote:> script/server runs without a hitch and the site runs through port 3000 > (albeit slowly!), so it''s definitely something non rails related - ie > fcgi. > > When I set cgi as opposed to fcgi in the htaccess I still get the same > error. > > Trying to run dispatch.rb and dispatch.cgi from the command line result > in the same error as the fcgi one: >Hi Richard: I have same issue, do you checked your development/production.log? I found this: /home/jcm/apps/lib/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/routing.rb:488:in `recognition_failed'' /home/jcm/apps/lib/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/routing.rb:478:in `recognize!'' /home/jcm/apps/lib/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:38:in `dispatch'' ./dispatch.cgi:10 No idea about it yet... working P http://wiki.onrails.com.ar -- Posted via http://www.ruby-forum.com/.
Pedro Visintin
2006-Apr-13 04:46 UTC
[Rails] Re: Re: Re: 500 Server Error - stumping me at the moment
Pedro Visintin wrote:> Richard Livsey wrote: >> script/server runs without a hitch and the site runs through port 3000 >> (albeit slowly!), so it''s definitely something non rails related - ie >> fcgi. >> >> When I set cgi as opposed to fcgi in the htaccess I still get the same >> error. >> >> Trying to run dispatch.rb and dispatch.cgi from the command line result >> in the same error as the fcgi one: >> > > Hi Richard: > > I have same issue, do you checked your development/production.log? > > I found this: > > /home/jcm/apps/lib/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/routing.rb:488:in > `recognition_failed'' > /home/jcm/apps/lib/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/routing.rb:478:in > `recognize!'' > /home/jcm/apps/lib/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:38:in > `dispatch'' > ./dispatch.cgi:10 > > No idea about it yet... working > > P > http://wiki.onrails.com.arMy log shows my ./dispatch.cgi run from shell. P http://wiki.onrails.com.ar -- Posted via http://www.ruby-forum.com/.
Reasonably Related Threads
- FCGI and the never ending saga of deploying on Dreamhost
- vendor/rails seems to be being ignored in preference to gem?
- Ferret failing to rebuild_index - occasionally unable to del
- Creating 2nd rails app on Dreamhost?
- LoadError - no such file to load -- pathname (Dreamhost)