# Re: Manually running dispatch.fcgi fails (Please help!)

**URL:** <https://www.ruby-forum.com/t/re-manually-running-dispatch-fcgi-fails-please-help/65200>\
**Category:** Rails\
**Created:** [February 10, 2006, 1:03am UTC](https://www.ruby-forum.com/t/re-manually-running-dispatch-fcgi-fails-please-help/65200 "2006-02-10T01:03:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![afg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ecc23a/32.png) [@afg](https://www.ruby-forum.com/u/afg)\
**Post date:** [February 10, 2006, 1:03am UTC](https://www.ruby-forum.com/t/re-manually-running-dispatch-fcgi-fails-please-help/65200/1 "2006-02-10T01:03:46Z")

</div>

I’m really lost on this issue. Do I need to reinstall rails / gems?

The rest of my rails setup seems to be working. I just can’t run  
dispatch.fcgi. (Details in original message below).

I have no idea how to troubleshoot this. I’m not even positive it is  
supposed to be runnable from the command line. I found a  
troubleshooting guide that implied it was supposed to work.

Ideas are very welcome. FYI: I using SUSE 10.0 with self installed  
rails and lighttpd.

Thanks  
Greg

On 2/9/06, Greg F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > > ```
> > > from ./dispatch.fcgi:24
> > > 
> > > ```
> 
> RailsFCGIHandler.process!
> 
> Can you run your dispatch.fcgi from the command line?
> 
> ## Greg
> 
> Greg F.  
> The Norcross Group  
> Forensics for the 21st Century

–  
Greg F.  
The Norcross Group  
Forensics for the 21st Century

---

<div class="post-metadata">

**Author:** ![afg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ecc23a/32.png) [@afg](https://www.ruby-forum.com/u/afg)\
**Post date:** [February 10, 2006, 1:55am UTC](https://www.ruby-forum.com/t/re-manually-running-dispatch-fcgi-fails-please-help/65200/2 "2006-02-10T01:55:43Z")

</div>

It’s my understanding that dispatch.fcgi isn’t runnable from the command  
line as it expects the process connecting to it to be speaking in  
FCGI-language and you at the command line are not.

FYI, out of my many working FCGI setups, I’ve only ever gotten Error 500  
when trying to run it via the command line - I don’t think it is  
supposed to  
work.

---

<div class="post-metadata">

**Author:** ![afg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ecc23a/32.png) [@afg](https://www.ruby-forum.com/u/afg)\
**Post date:** [February 10, 2006, 4:42am UTC](https://www.ruby-forum.com/t/re-manually-running-dispatch-fcgi-fails-please-help/65200/3 "2006-02-10T04:42:40Z")

</div>

See my post in [Peak Obsession](http://wiki.rubyonrails.com/rails/pages/FastCGI)  
about troubleshooting

HTH

On 2/10/06, HH [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> It’s my understanding that dispatch.fcgi isn’t runnable from the command  
> line as it expects the process connecting to it to be speaking in  
> FCGI-language and you at the command line are not.
> 
> FYI, out of my many working FCGI setups, I’ve only ever gotten Error 500  
> when trying to run it via the command line - I don’t think it is supposed to  
> work.

–  
kamus online - [http://kamus.landak.com/](http://kamus.landak.com/)

---

<div class="post-metadata">

**Author:** ![afg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ecc23a/32.png) [@afg](https://www.ruby-forum.com/u/afg)\
**Post date:** [February 10, 2006, 6:01am UTC](https://www.ruby-forum.com/t/re-manually-running-dispatch-fcgi-fails-please-help/65200/4 "2006-02-10T06:01:59Z")

</div>

On 2/9/06, HH [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> It’s my understanding that dispatch.fcgi isn’t runnable from the command  
> line as it expects the process connecting to it to be speaking in  
> FCGI-language and you at the command line are not.
> 
> FYI, out of my many working FCGI setups, I’ve only ever gotten Error 500  
> when trying to run it via the command line - I don’t think it is supposed to  
> work.

Thanks for the feedback. I admit to getting frustrated on this issue.

Note that I’m not complaining about the error 500 at this point. I’m  
complaining that dispatch.fcgi in pure standalone mode crashes within  
a couple seconds. The troubleshooting reference I read implied it  
should at least run until a control-c killed it.

If indeed dispatch.fcgi should not run at all in standalone mode I can  
live with that, but when I try to run lighttpd from the command line:  
I get nothing for a few seconds then a get a burst of error  
messages identical to what I get when I run dispatch.fcgi from the  
command line.

> > > > /usr/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active\_support/dependenc  
> > > > ies.rb:200:in
> > > > 
> > > > > `const\_missing’: uninitialized constant RailsFCGIHandler (NameError)  
> > > > > from ./dispatch.fcgi:24

After that if I do a ps -ef I see a collection of zombies and no live  
dispatch.fcgi processes.

Something is definately wrong with my setup but I really don’t know  
how to troubleshoot the issue.

Can someone simply run dispatch.fcgi from there command line and tell  
me what happens on a machine that is functioning fine?

## Thanks Greg

Greg F.  
The Norcross Group  
Forensics for the 21st Century

---

<div class="post-metadata">

**Author:** ![afg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ecc23a/32.png) [@afg](https://www.ruby-forum.com/u/afg)\
**Post date:** [February 10, 2006, 4:52pm UTC](https://www.ruby-forum.com/t/re-manually-running-dispatch-fcgi-fails-please-help/65200/5 "2006-02-10T16:52:13Z")

</div>

On 2/9/06, Superbiji [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> See my post in [Peak Obsession](http://wiki.rubyonrails.com/rails/pages/FastCGI)  
> about troubleshooting
> 
> HTH

That seems to be about apache/fcgi integration. I’m trying to use  
lighttpd so I’m not sure it is relevant?

## Greg

Greg F.  
The Norcross Group  
Forensics for the 21st Century
