Welcome Guest | Login

My First App - Failed to Start

Hi Everyone,

I am a new subscriber with the beginner plan.    I'm trying to deploy my existing app (developed locally on my macbook) and I'm getting a "rails application failed to start" error.   I tried to follow the deployment tutorial exactly.

I created a mysql database and user and uploaded my data.
I am able to connect to the db via command line using the user/pass in my database.yml

I did not upload my whole app, I created it at the command line.   I verified the shebang path.  
I changed the rewrite rule in .htacces from .cgi to .fcgi and did not change the position.  I commented out the apache rule at the top.

I'm not using any gems.  I'm using acts_as_authenticated and a calendar, both of these are plugins and I installed them both in the app after it was created on your server.  

Executing:   [~]# killall -usr1 dispatch.fcgi   produces:
dispatch.fcgi: no process killed

which is bad, because I think it's supposed to be running all the time.

the file ~/app/logs/production.log is zero bytes.

Should I be able to execute dispatch.fcgi from the command line (as a test)?   When I do, it fails on the line "require fcgi_handler".  

I would appreciate any suggestions that you may have and I can supply the text of database.yml, environment.rb, .htaccess, dispatch.rb and dispatch.fcgi.

This isn't a limitation of the beginner plan is it?

Regards,

Gary Huntress

2007-10-21 10:57 PM

Hello,

There was a issue with your environment.rb file. I have a copied a fresh copy of the file and specified production mode. This fired up the dispatch.fcgi. Please do not remove entries in this file unnecessarily.

Also now I am coming across a error related with your controller. I am pasting the relevant logs below,
==
uninitialized constant ApplicationController
./../config/../app/controllers/site_controller.rb:1
==
I hope you can fix it from your end now.

2007-10-21 11:36 PM

Regards,
Rahul
Thanks so much!   It was my fault (*obviously*).  In the tutorial I misread the comment "Yes you can erase all the other stuff" and thats why I had mistakenly removed 99% of the file :(

The controller error was related to acts_as_authenticated.   I'd installed the plugin but did not think I needed to script/generate it again.  I thought the lib in the plugin dir would be there after the install but no, only after you generate...oh well live and learn

Thanks again!

Gary

2007-10-22 06:47 PM


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