Welcome Guest | Login

Mongrel works fcgi doesn't

Hi,
I've just opened an account with you and moved one of my apps up to it.
On my other boxes, I always use mongrel, and haven't tried fcgi in a very long
time.

I've followed, (I think) all the advice about getting fcgi working, but and
still getting the dreaded 'Rails application failed to start properly' error.
I have checked permissions, the dispatchers etc.

More to the point, I set up mongrel and, as always it works first time.
I've checked by doing a local wget to pages in my app.

Do I really have to get fcgi working, or could you just set up my vhost and proxy
and allow me to get one with it?

Alternatively, can you think why Mongrel would be happy and fcgi not?
And yes, I've checked the sheebang thing. I created a new app and copied the dispatcher code over.

cheers
Mike in GMT + 0 land.


2007-11-09 06:46 AM

Mike - I'm seeing an error related to Rfacebook in apache error log and when I run dispatch.fcgi from command console.

malformed header from script. Bad header=Session initialised for fb: dispatch.cgi

I could see the error in your production.log also.
==================
RFACEBOOK WARNING: require_facebook_install is not intended for external applications, using require_facebook_login instead
Filter chain halted as [#<ActionController::Filters::ClassMethods::SymbolFilter:0xb73f5d10 @filter=:require_facebook_install>] returned_false.
==================
I hope this would give more insight into the actual problem and help fixing it. Let us know if you've questions.

2007-11-09 07:39 AM

That rfacebook warning normal. It only indicates that you should not be accessing facebook pages other than through the facebook servers. The url /admin/instance goes to a back end control panel that does not activate rfacebook. However, when I try to access that I see this in production.log...

Processing InstanceController#index (for 217.155.27.30 at 2007-11-10 02:39:04) [GET]
 Session ID: 6a9cf1db8aba7672ef7c69d2a1d39547
 Parameters: {"action"=>"index", "controller"=>"admin/instance"}
Rendering layoutfalseactionlist within layouts/admin
Rendering ../../vendor/plugins/active_scaffold/frontends/default/views/list
Completed in 0.03908 (25 reqs/sec) | Rendering: 0.03427 (87%) | DB: 0.00205 (5%) | 200 OK http://---------------------/admin/instance]

So rails, thinks this is ok, *but I still get* application failed to start.

2007-11-10 02:45 AM

Mike - I have seen FastCGI being picky where Mongrel works just fine. If you are really planning to run it on Mongrel, I would suggest you give mongrel a try right away.

2007-11-10 03:43 AM

Absolutely. My original post said...

"Do I really have to get fcgi working, or could you just set up my vhost and proxy
and allow me to get one with it?"

Thanks for replying.

2007-11-10 04:44 AM

Mkarliner - We'll get your app on mongrel if you could complete the required steps specified in the link given below and getback to us.
http://www.hostingrails.com/forums/wiki_thread/19




2007-11-10 04:56 AM

Thanks, that worked at treat.

2007-11-11 06:22 AM


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