Forum: Ruby on Rails Dispatcher Issues

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
0315212073de2cbf54e7cd421cf8a5eb?d=identicon&s=25 Paul (Guest)
on 2006-01-20 15:41
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
0315212073de2cbf54e7cd421cf8a5eb?d=identicon&s=25 Paul (Guest)
on 2006-01-20 16:20
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
0315212073de2cbf54e7cd421cf8a5eb?d=identicon&s=25 Paul (Guest)
on 2006-01-20 18:49
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.
0a1f61c4a643e6216024d7e522fb7ccd?d=identicon&s=25 Nick Pavlica (Guest)
on 2006-01-21 19:03
(Received via mailing list)
On 1/20/06, Paul <paulvoccio@hotmail.com> 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.
This topic is locked and can not be replied to.