PDA

View Full Version : Problem Installing Rails


Pontifex
July 6th, 2005, 12:22 AM
I installed Rails (with ocs-install-rails), set up a sample database, and created a simple app with script/generate scaffold. When I try to access the new controller though, I get a File not found error.

I switched from dispatch.fcgi to dispatch.cgi in my .htaccess file and tried again. This time, I got this error:

Application error
Rails application failed to start properly"

and this in the Apache error logs:

Premature end of script headers: /home/paradigm/public_html/plans/dispatch.cgi

However, both dispatch.cgi and dispatch.fcgi work when run from the command line.

I have no idea what the problem is, so any help would be appreciated.

rob
July 6th, 2005, 11:10 AM
Hi,

Sorry you had difficulty.

It looks like an FCGI process got stuck, causing your app to fail. I've resolved the problem and your rails app is loading fine now.

We are making a script that you can run to clear out stuck FCGI processes. It should be available very soon.

Thanks,

Rob