Hi all!
I’m trying to deploy an application out to a subdomain at dreamhost. I
am
getting the dreaded “Rails application failed to start properly” error.
The
logs for my app are empty. In the DreamHost FTP app, when I look in the
error.log file (I’m guessing this the Apache error log file) I see the
following for each of my attempts:
[Sun Jul 16 12:36:32 2006] [error] [client 130.13.244.211] FastCGI:
comm with (dynamic) server
“/home/tdonaghe/flickr.icuo.us/flickr/public/dispatch.fcgi” aborted:
(first read) idle timeout (120 sec)
[Sun Jul 16 12:36:32 2006] [error] [client 130.13.244.211] FastCGI:
incomplete headers (0 bytes) received from server
“/home/tdonaghe/flickr.icuo.us/flickr/public/dispatch.fcgi”
[Sun Jul 16 12:44:13 2006] [error] [client 130.13.244.211] FastCGI:
comm with (dynamic) server
“/home/tdonaghe/flickr.icuo.us/flickr/public/dispatch.fcgi” aborted:
(first read) idle timeout (120 sec)
[Sun Jul 16 12:44:13 2006] [error] [client 130.13.244.211] FastCGI:
incomplete headers (0 bytes) received from server
“/home/tdonaghe/flickr.icuo.us/flickr/public/dispatch.fcgi”
From what I’ve seen in doing research, I think this indicates a problem with
FCGI. For some more background:
I have followed the instructions listed here:
http://www.railshosting.org/#dreamhost
This is a very simple non database app that I’ve tested on my local box
through a WebBrick server. I think that I’ve copied everything properly
and
set up the various config files properly. I editted the various files
as
shown in the tutorial above. I’ve done “chmod 755” to my public
directory
and to the dispatch* files in there. My she-bang looks like this:
#!/usr/bin/ruby
I’ve tried to kill FCGI various times using:
killall -USR1 dispatch.fcgi
when I try that I get this message:
dispatch.fcgi: no process killed
In another thread someone suggested doing this:
ps aux | grep dispatch
Which I did and nothing shows up for anything relating to dispatch. I’m
not
very familiar with Unix, but I’m guessing this means that FCGI is not
running? If so, how the heck do it up? Someone suggested using “touch”
on
dispatch.fcgi. That didn’t accomplish anything either…
I’ve looked at all of the Troubleshooting advice from Dreamhost and
elsewhere. I’m just at a loss.
I have mapped my subdomain as shown in the tutorial above. I’m pretty
much
at the complete end of things that I can think of or google about. Can
anyone please give me a few more tips or hints or anything that might
help
me get this up and running? I’m pretty darned frustrated.
Thanks!!