# Dispatcher Issues

**URL:** <https://www.ruby-forum.com/t/dispatcher-issues/63414>\
**Category:** Rails\
**Created:** [January 20, 2006, 3:41pm UTC](https://www.ruby-forum.com/t/dispatcher-issues/63414 "2006-01-20T15:41:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bbe5ce/32.png) [@paul](https://www.ruby-forum.com/u/paul)\
**Post date:** [January 20, 2006, 3:41pm UTC](https://www.ruby-forum.com/t/dispatcher-issues/63414/1 "2006-01-20T15:41:28Z")

</div>

Should I be able to run this and get some meaningful output? I’m trying  
to convert my app to run with Apache2/CGI and I’ve got the snippet that  
the RoR book suggests. The app runs fine with WEBrick, but I’ve got to  
scale it a little bit.

[root@ops cms]# ruby public/dispatch.fcgi  
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active\_support/dependencies.rb:200:in  
`const\_missing’: uninitialized constant RailsFCGIHandler (NameError)  
from public/dispatch.fcgi:24  
[root@ops cms]# ruby public/dispatch.cgi  
Status: 500 Internal Server Error  
[root@ops cms]# ruby public/dispatch.rb  
Status: 500 Internal Server Error  
[root@ops cms]#

I’m struggling with this as I can’t trace down the error. It happens  
with a fresh rails install as well as my app, both of which work fine  
with WEBrick.

Does anyone have any suggestions?

thanks

paul

---

<div class="post-metadata">

**Author:** ![paul](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bbe5ce/32.png) [@paul](https://www.ruby-forum.com/u/paul)\
**Post date:** [January 20, 2006, 4:20pm UTC](https://www.ruby-forum.com/t/dispatcher-issues/63414/2 "2006-01-20T16:20:50Z")

</div>

my apache logs show this:

[Fri Jan 20 09:42:30 2006] [error] [client 192.168.111.87]  
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active\_support/dependencies.rb:200:in  
`const_missing': uninitialized constant ActiveRecordError (NameError) [Fri Jan 20 09:42:30 2006] [error] [client 192.168.111.87] \tfrom /usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/validations.rb:9 [Fri Jan 20 09:42:30 2006] [error] [client 192.168.111.87] \tfrom /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in`require\_\_’  
[Fri Jan 20 09:42:30 2006] [error] [client 192.168.111.87] \tfrom  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:21:in  
`require' [Fri Jan 20 09:42:30 2006] [error] [client 192.168.111.87] \tfrom /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:214:in`require’  
[Fri Jan 20 09:42:30 2006] [error] [client 192.168.111.87] \tfrom  
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active\_record.rb:39  
[Fri Jan 20 09:42:30 2006] [error] [client 192.168.111.87] \tfrom  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:21:in  
`require__' [Fri Jan 20 09:42:30 2006] [error] [client 192.168.111.87] \tfrom /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in`require’  
[Fri Jan 20 09:42:30 2006] [error] [client 192.168.111.87] \tfrom  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems.rb:182:in `activate' [Fri Jan 20 09:42:30 2006] [error] [client 192.168.111.87] \t ... 7 levels... [Fri Jan 20 09:42:30 2006] [error] [client 192.168.111.87] \tfrom /var/www/cms/public/../config/environment.rb:8:in`require’  
[Fri Jan 20 09:42:30 2006] [error] [client 192.168.111.87] \tfrom  
/var/www/cms/public/…/config/environment.rb:8  
[Fri Jan 20 09:42:30 2006] [error] [client 192.168.111.87] \tfrom  
/var/www/cms/public/dispatch.cgi:3:in `require’  
[Fri Jan 20 09:42:30 2006] [error] [client 192.168.111.87] \tfrom  
/var/www/cms/public/dispatch.cgi:3  
[Fri Jan 20 09:42:30 2006] [error] [client 192.168.111.87] Premature end  
of script headers: dispatch.cgi

---

<div class="post-metadata">

**Author:** ![paul](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bbe5ce/32.png) [@paul](https://www.ruby-forum.com/u/paul)\
**Post date:** [January 20, 2006, 6:49pm UTC](https://www.ruby-forum.com/t/dispatcher-issues/63414/3 "2006-01-20T18:49:56Z")

</div>

If anyone else has this issue, it was Ruby version 1.8.2 and rails 1.0.0  
being incompatiable somehow. I upgraded ruby to 1.8.4 and everything  
clicked into place.

---

<div class="post-metadata">

**Author:** ![paul](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/bbe5ce/32.png) [@paul](https://www.ruby-forum.com/u/paul)\
**Post date:** [January 21, 2006, 7:03pm UTC](https://www.ruby-forum.com/t/dispatcher-issues/63414/4 "2006-01-21T19:03:01Z")

</div>

On 1/20/06, Paul [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> If anyone else has this issue, it was Ruby version 1.8.2 and rails 1.0.0  
> being incompatiable somehow. I upgraded ruby to 1.8.4 and everything  
> clicked into place.

I haven’t had any problems with Ruby 1.8.2 & Rails 1.0.
