Rails site down - help, I'm dying (almost)

Rails site down - help, I'm dying (almost)

Posted by: Erichero
Posted on: 2008-10-08 00:58:00

Dreamhost upgraded to 2.1.1 recently, which deprecated my Rails site done with 1.2.5 (Dreamhost officially does not support below 1.2.6 now).

My site died at a crucial time and I managed to get the local debug version running again on my machine, thanks to some changes in environment.rb and boot.rb, as well as changing some deprecated stuff that had been removed in 2.1.

I've uploaded the new files but am still crashing. My site is at www.chillisoft.co.za. I tried uploading a sitedown.html to help customers, but that won't show either.

At least in the short-term I need to do two things. Redirect these errors to www.chillisoft.co.za/sitedown.html and/or display errors so I can see what is causing the continued crashing. Do I need to restart the webserver and how do I do this? I'm a little new at this stuff.

My .htaccess file is as follows:

Re: Rails site down - help, I'm dying (almost)

Posted by: sXi
Posted on: 2008-10-08 01:31:00

If it's getting down to the 500 error then you should be able to uncomment the line # ErrorDocument 500 /500.html and rename sitedown.html to 500.html


Re: Rails site down - help, I'm dying (almost)

Posted by: Erichero
Posted on: 2008-10-08 01:48:00

Thanks.

I've managed to fix my .htaccess file. What I'm struggling with now is what I've had before, that the rails stuff is timing out and I get a Network Error/TCP Error. Something is holding up my rails code and I'm not getting any useful errors.

My error.log entries read:

[Wed Oct 08 01:41:25 2008] [error] [client 82.208.151.135] FastCGI: incomplete headers (0 bytes) received from server "/home/eric_chilli/chillisoft.co.za/http/dispatch.fcgi", referer: http://www.chillisoft.co.za/habanero/changes_log
[Wed Oct 08 01:42:27 2008] [error] [client 196.35.158.184] FastCGI: comm with (dynamic) server "/home/eric_chilli/chillisoft.co.za/http/dispatch.fcgi" aborted: (first read) idle timeout (60 sec)
[Wed Oct 08 01:42:27 2008] [error] [client 196.35.158.184] FastCGI: incomplete headers (0 bytes) received from server "/home/eric_chilli/chillisoft.co.za/http/dispatch.fcgi"


Re: Rails site down - help, I'm dying (almost)

Posted by: brchristian
Posted on: 2008-10-09 12:16:00

I'm having the same problem -- site just went flat down at a critical time, and DH Support isn't offering any info. So they changed their version number? My error is as follows, when I run dispatch.fcgi:

/usr/local/lib/site_ruby/1.8/rubygems/specification.rb:628:in `method_missing': undefined method `runtime_dependencies' for #<Gem::Specification:0x2b8b842097f8> (NoMethodError)
from /usr/local/lib/site_ruby/1.8/rubygems.rb:162:in `activate'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:49:in `gem'
from ./public/../config/boot.rb:59:in `load_rails_gem'
from ./public/../config/boot.rb:53:in `load_initializer'
from ./public/../config/boot.rb:38:in `run'
from ./public/../config/boot.rb:11:in `boot!'
from ./public/../config/boot.rb:109
from ./public/../config/environment.rb:11:in `require'
from ./public/../config/environment.rb:11
from ./public/dispatch.fcgi:21:in `require'
from ./public/dispatch.fcgi:21

Any ideas about how to fix?

Re: Rails site down - help, I'm dying (almost)

Posted by: sXi
Posted on: 2008-10-09 20:04:00

Did you guys see this: http://www.dreamhoststatus.com/2008/09/16/rails-211-is-coming/


Re: Rails site down - help, I'm dying (almost)

Posted by: brchristian
Posted on: 2008-10-09 23:58:00

No, I didn't: thank you!

Tags: rewriterulerequest uriqsascript cgidispatcherdreamhosthtaccess filecgi scriptrewritealiasfilesystemrbrewritecondwikiapacheblog