log full of these entries "warning: already initialized constant Dispatcher"

Added by Jason Sjöbeck about 11 years ago

[Thu Jun 25 23:48:03 2009] [error] [client 24.1.2.3] /usr/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/dispatcher.rb:24: warning: already initialized constant Dispatcher

I am not too familiar with this yet so bare with me while I very quickly get up-to-speed. In the meantime, any else seeing this error filling their log? Do I care? Oddly, the site seems to work OK despite the error.

Thank you so much.

Jason

Replies (2)

RE: log full of these entries "warning: already initialized constant Dispatcher" - Added by Eric Davis about 11 years ago

Rails 2.3.2 is not compatible with Redmine. See RedmineInstall for the correct versions to use.

Eric

RE: log full of these entries "warning: already initialized constant Dispatcher" - Added by Timur Gilfanov over 10 years ago

I have same error with Redmine 0.9.0 (rc) but I use Rails 2.3.5 after upgrade from 0.8.2.
I use MySQL 5.1 instead of 5.0. Can it be a reason?
No problem when I use WEBrick.

Full Apache 2.2 error log:
[Mon Jan 11 10:40:57 2010] [error] [client 192.168.0.31] /var/lib/gems/1.8/gems/rails-2.3.5/lib/dispatcher.rb:24: warning: already initialized constant Dispatcher
[Mon Jan 11 10:40:57 2010] [error] [client 192.168.0.31] /var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/cgi_process.rb:22:in `__send__': undefined method `e$
[Mon Jan 11 10:40:57 2010] [error] [client 192.168.0.31] \tfrom /var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/cgi_process.rb:22:in `dispatch_cgi'
[Mon Jan 11 10:40:57 2010] [error] [client 192.168.0.31] \tfrom /var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:101:in `dispatch_cgi'
[Mon Jan 11 10:40:57 2010] [error] [client 192.168.0.31] \tfrom /var/lib/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/dispatcher.rb:27:in `dispatch'
[Mon Jan 11 10:40:57 2010] [error] [client 192.168.0.31] \tfrom /opt/redmine/public/dispatch.cgi:11
[Mon Jan 11 10:40:57 2010] [error] [client 192.168.0.31] Premature end of script headers: dispatch.cgi

(1-2/2)