# Need help with fcgi / engine

**URL:** <https://www.ruby-forum.com/t/need-help-with-fcgi-engine/97367>\
**Category:** Engines\
**Created:** [July 6, 2006, 5:14pm UTC](https://www.ruby-forum.com/t/need-help-with-fcgi-engine/97367 "2006-07-06T17:14:44Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![morganhilljoe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f08c70/32.png) [@morganhilljoe](https://www.ruby-forum.com/u/morganhilljoe)\
**Post date:** [July 6, 2006, 5:14pm UTC](https://www.ruby-forum.com/t/need-help-with-fcgi-engine/97367/1 "2006-07-06T17:14:44Z")

</div>

I’ve been banging my head for a few days, appreciate any help.

I’m not seeing login\_engine starting up.

I’m on commercial host, so I don’t have the capability of upgrading  
myself. But, when I call, they were happy to upgrade me to rails 1.1.4.

I’m using login\_engine, which I have working on my system here in the  
past with webrick. But when I install it fresh to the commercial host, I  
get the following errors:

[Thu Jul 6 08:28:08 2006] [warn] FastCGI: (dynamic) server  
“/home/xxx/public\_html/devel/dispatch.fcgi” (uid x, gid x) started (pid  
9397) [Thu Jul 6 08:28:11 2006] [warn] FastCGI: (dynamic) server  
“/home/xxx/public\_html/devel/dispatch.fcgi” (uid x, gid x) started (pid  
9450) [Thu Jul 6 08:28:14 2006] [warn] FastCGI: (dynamic) server  
“/home/xxx/public\_html/devel/dispatch.fcgi” (pid 9450) termination  
signaled [Thu Jul 6 08:28:14 2006] [warn] FastCGI: (dynamic) server  
“/home/xxx/public\_html/devel/dispatch.fcgi” (pid 9450) terminated by  
calling exit with status ‘0’

I’ve also seen some fopen errors, complaining about not being able to  
open a log file. I’ve changed the entire log directory to 777, but no  
luck.

On the web page itself, I just get a routing error. Inside the fcgi  
crash log I get  
…:9397] starting  
…:9450] starting  
…:9450] asked to terminate immediately  
…:9450] terminated by explicit exit  
…:9397] asked to terminate immediately  
…:9397] terminated by explicit exit

In the suexec error log (another reload so it’s later), I get

[2006-07-06 08:42:00]: info: (target/actual) uid: (xx/xx) gid: (x/x)  
cmd: dispatch.fcgi

In my development log I see (seems like a general error, nothing  
specific about the engine)

Processing Base#index (for x.x.x.x at 2006-07-06 08:42:01) [GET]  
Session ID: xxx  
Parameters: {}

ActionController::RoutingError (Recognition failed for “/”):  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action\_controller/routing.rb:488:in  
`recognition_failed' /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/routing.rb:478:in `recognize!’  
/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:38:in  
`dispatch' /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:150:in `process\_request’  
/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi\_handler.rb:54:in  
`process!' /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:600:in `each\_cgi’  
/usr/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:597:in `each_cgi' /usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi_handler.rb:53:in `process!’  
/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/fcgi\_handler.rb:23:in  
`process!’  
dispatch.fcgi:23

Rendering  
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action\_controller/templates/rescues/layout.rhtml  
(404 Page Not Found)

I’ve changed my .htaccess for the Rewrite. Any other recommendations on  
how to troubleshoot this? It seems like login\_engine isn’t starting, or  
even being recognized.

The regular rails index.html works, by the way, and the unit tests for  
the login\_engine pass.

I’ve seen this mention about engines, but I’m not getting it started, so  
something else is wrong:

> **[Rails 1.1.4: Security fix without breakage](https://rubyonrails.org/2006/6/30/rails-1-1-4-security-fix-without-breakage)**
>
> The security fix from Rails 1.1.3 might have closed the hole, but it also caused breakage for people with controllers in modules. We’ve fixed that now, so Rails 1.1.4 should work for any application that also ran under 1.1.2. We apologize for the...

ruby 1.8.4  
rails 1.1.4  
Apache version 1.3.36 (Unix)  
mod\_fastcgi 2.4.2

Note that the site was generated with 1.1.2, but 1.l.4 is running now.

I really appreciate any help.

---

<div class="post-metadata">

**Author:** ![morganhilljoe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f08c70/32.png) [@morganhilljoe](https://www.ruby-forum.com/u/morganhilljoe)\
**Post date:** [July 6, 2006, 5:22pm UTC](https://www.ruby-forum.com/t/need-help-with-fcgi-engine/97367/2 "2006-07-06T17:22:09Z")

</div>

Just saw Tim’s post from yesterday on failing engines, if that’s it, let  
me know. I’ll read it more closely, it didn’t show up on the google  
search, just noticed it from an iris search.

Joe

---

<div class="post-metadata">

**Author:** ![morganhilljoe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f08c70/32.png) [@morganhilljoe](https://www.ruby-forum.com/u/morganhilljoe)\
**Post date:** [July 6, 2006, 5:34pm UTC](https://www.ruby-forum.com/t/need-help-with-fcgi-engine/97367/3 "2006-07-06T17:34:11Z")

</div>

Joe,

Please try updating your copy of the engines plugin. I’ve just  
released 1.1.3, with a minor fix for the issues that some people were  
experiencing using Rails 1.1.4.

- james

---

<div class="post-metadata">

**Author:** ![morganhilljoe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f08c70/32.png) [@morganhilljoe](https://www.ruby-forum.com/u/morganhilljoe)\
**Post date:** [July 6, 2006, 6:10pm UTC](https://www.ruby-forum.com/t/need-help-with-fcgi-engine/97367/4 "2006-07-06T18:10:02Z")

</div>

Hi James,

I have engines 1.1.3 installed, but still seeing the same error.

I’ve added a engine logger, but nothing shows up in it. Any thoughts,  
please let me know, I see the same errors in the server logs, so it must  
be more upstream.

Joe

James A. wrote:

> Joe,
> 
> Please try updating your copy of the engines plugin. I’ve just  
> released 1.1.3, with a minor fix for the issues that some people were  
> experiencing using Rails 1.1.4.
> 
> - james

---

<div class="post-metadata">

**Author:** ![morganhilljoe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f08c70/32.png) [@morganhilljoe](https://www.ruby-forum.com/u/morganhilljoe)\
**Post date:** [July 6, 2006, 6:19pm UTC](https://www.ruby-forum.com/t/need-help-with-fcgi-engine/97367/5 "2006-07-06T18:19:32Z")

</div>

Hmm… it seems like something more fundamental is going wrong with  
your application’s environment. Have you double checked your routes.rb  
file? Does it work under webrick?

- james

---

<div class="post-metadata">

**Author:** ![morganhilljoe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f08c70/32.png) [@morganhilljoe](https://www.ruby-forum.com/u/morganhilljoe)\
**Post date:** [July 6, 2006, 6:33pm UTC](https://www.ruby-forum.com/t/need-help-with-fcgi-engine/97367/6 "2006-07-06T18:33:27Z")

</div>

The default index.html works fine.

I’ve setup login\_engine before, and compared the two routes.rb, they’re  
identical, but that was an older version of rails and login\_engine.

In the README for login\_engine, it mentions about setting up “default  
routes”, but there is no specific information. I thought the before  
filter requiring authentication would take care of redirects to the  
login prompt. Are there routes I have to setup for login\_engine? I  
haven’t in the past, was I just lucky?

Anyways, shouldn’t the engine startup, and I should get some sort of log  
file?

Joe

James A. wrote:

> Hmm… it seems like something more fundamental is going wrong with  
> your application’s environment. Have you double checked your routes.rb  
> file? Does it work under webrick?
> 
> - james

---

<div class="post-metadata">

**Author:** ![morganhilljoe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f08c70/32.png) [@morganhilljoe](https://www.ruby-forum.com/u/morganhilljoe)\
**Post date:** [July 6, 2006, 6:34pm UTC](https://www.ruby-forum.com/t/need-help-with-fcgi-engine/97367/7 "2006-07-06T18:34:12Z")

</div>

One more item - I’m using a commercial host, so I can’t use webrick.  
Bummer.

Joe

Joe Kr wrote:

> The default index.html works fine.
> 
> I’ve setup login\_engine before, and compared the two routes.rb, they’re  
> identical, but that was an older version of rails and login\_engine.
> 
> In the README for login\_engine, it mentions about setting up “default  
> routes”, but there is no specific information. I thought the before  
> filter requiring authentication would take care of redirects to the  
> login prompt. Are there routes I have to setup for login\_engine? I  
> haven’t in the past, was I just lucky?
> 
> Anyways, shouldn’t the engine startup, and I should get some sort of log  
> file?
> 
> Joe
> 
> James A. wrote:
> 
> > Hmm… it seems like something more fundamental is going wrong with  
> > your application’s environment. Have you double checked your routes.rb  
> > file? Does it work under webrick?
> > 
> > - james

---

<div class="post-metadata">

**Author:** ![morganhilljoe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/f08c70/32.png) [@morganhilljoe](https://www.ruby-forum.com/u/morganhilljoe)\
**Post date:** [July 6, 2006, 9:39pm UTC](https://www.ruby-forum.com/t/need-help-with-fcgi-engine/97367/8 "2006-07-06T21:39:57Z")

</div>

It looks like the update did work, [www.mydomain.com/user/login](http://www.mydomain.com/user/login) works,  
but when I go to [www.mydomain.com](http://www.mydomain.com), it doesn’t automatically go to the  
login page. Some kind of routing problem, I’ll beat it up a bit.

Thanks for all the help.
