Welcome Guest | Login

Rails application failed to start properly

This is my first time posting - and deploying a Ruby on Rails web-app, so pardon the beginner status. I have my app running at home on my local machine. I think I have carefully followed the instructions for deploying to FastCGI . My welcome screen appears, but it is only static. Unfortunately, when  I log in through my application, I get a screen, with the same URL that just says Application Error Rails application failed to start properly. I checked through the wiki article, but all those issues seem to be OK. The production.log and fastcgi.crash,log don't seem to help. production sees the login and password entered, and redirects to the member controller. fastcgi doesn't record anything.

When I try ruby ./dispatch.fcgi in a shell, it quickly returns. When I look in fastcgi.crash.log, I do see error information. However, none of it seems to directly point to my code. It seems to say : split called for nil:NilClass (NoMethodError) /usr/local/ruvy/1.8/cgi.rb:898:in 'parse'

The wiki article seems to say things like this will happen if I am not in a fact cgi context. Not sure what that means.

Where to look next?

2008-03-22 04:14 PM

Hi Tracey,
When i am trying to access your site from my end I found that in the sign-up part the verification mail is getting to me so i think it is not just an issue related to fast-cgi , you re-check your code also.If you still facing the problem, post a ticket with your production-log also.

2008-03-22 10:15 PM

Thanks. Based on your post, I could see that registering a new member worked, so that was encouraging. After reading various threads, I saw that puts could cause problems. I scoured my code and saw a lingering p session[:member_id]  Taking that out and then figuring out how to kill using skill -9 -u username -c dispatch.fcgi got everything working. That was a relief - and a good renewal for Easter.

Still not sure why the "tutorial recommended" killall did not work.

2008-03-23 01:56 PM

Hi

>still not sure why the "tutorial recommended" killall did not work.

The killall version got upgraded in the new servers and you should be using the command as

killall -9 -u username dispatch.fcgi

2008-03-23 02:08 PM

HostingRails Support

Hello Guest! In order to post you must be an active client with us, please log in or sign up.