Cpanel/WHM, Cent OS - `load_missing_constant': uninitialized constant MessageObserver
Added by Adam M almost 14 years ago
Cpanel/WHM, Cent OS
ruby 1.8.7 (2009-06-12 patchlevel 174) [x86_64-linux]
- LOCAL GEMS ***
abstract (1.0.0)
actionmailer (3.0.4, 2.3.8, 2.3.5, 2.3.2)
actionpack (3.0.4, 2.3.8, 2.3.5, 2.3.2)
activemodel (3.0.4)
activerecord (3.0.4, 2.3.8, 2.3.5)
activeresource (3.0.4, 2.3.8, 2.3.5)
activesupport (3.0.4, 2.3.2)
arel (2.0.8)
builder (2.1.2)
bundler (1.0.10)
cgi_multipart_eof_fix (2.5.0)
coderay (0.9.7)
daemons (1.1.0)
erubis (2.6.6)
fastthread (1.0.7)
gem_plugin (0.2.3)
hoe (2.9.1)
i18n (0.4.2)
mail (2.2.15)
mime-types (1.16)
mongrel (1.1.5)
mysql (2.8.1)
polyglot (0.3.1)
rack (1.2.1, 1.1.0, 1.0.1)
rack-mount (0.6.13)
rack-test (0.5.7)
rails (2.3.5)
railties (3.0.4)
rake (0.8.7)
RedCloth (4.2.3)
rubygems-update (1.3.1)
rubytree (0.5.2)
shoulda (2.11.3)
sqlite3 (1.3.3)
sqlite3-ruby (1.3.3)
thor (0.14.6)
treetop (1.4.9)
tzinfo (0.3.24)
- rake gems:install with no problems
- rake generate_session_store with no problems
Then when I come to rake db:migrate RAIL_ENV=production theres a problem.
I am researched everywhere for an answer but i am new to Ruby.
I was following instructions from here: http://www.mickgenie.com/blog/how-to-install-redmine-with-cpanel/
Thanks in advance.
root@xxxx [/home/corp/rails_apps/Redmine]# rake db:migrate RAIL_ENV=production --trace(in /home/corp/rails_apps/Redmine)
- Invoke db:migrate (first_time)
- Invoke environment (first_time)
- Execute environment
rake aborted!
uninitialized constant MessageObserver
/home/corp/rails_apps/Redmine/vendor/rails/activesupport/lib/active_support/depe ndencies.rb:443:in `load_missing_constant'
/home/corp/rails_apps/Redmine/vendor/rails/activesupport/lib/active_support/depe ndencies.rb:80:in `const_missing'
/home/corp/rails_apps/Redmine/vendor/rails/activesupport/lib/active_support/depe ndencies.rb:92:in `const_missing'
/home/corp/rails_apps/Redmine/vendor/rails/activesupport/lib/active_support/infl ector.rb:361:in `constantize'
/home/corp/rails_apps/Redmine/vendor/rails/activesupport/lib/active_support/infl ector.rb:360:in `each'
/home/corp/rails_apps/Redmine/vendor/rails/activesupport/lib/active_support/infl ector.rb:360:in `constantize'
/home/corp/rails_apps/Redmine/vendor/rails/activesupport/lib/active_support/core _ext/string/inflections.rb:162:in `constantize'
/home/corp/rails_apps/Redmine/vendor/rails/activerecord/lib/active_record/observ er.rb:38:in `instantiate_observers'
/home/corp/rails_apps/Redmine/vendor/rails/activerecord/lib/active_record/observ er.rb:36:in `each'
/home/corp/rails_apps/Redmine/vendor/rails/activerecord/lib/active_record/observ er.rb:36:in `instantiate_observers'
/home/corp/rails_apps/Redmine/vendor/rails/actionpack/lib/action_controller/disp atcher.rb:15:in `define_dispatcher_callbacks'
/home/corp/rails_apps/Redmine/vendor/rails/activesupport/lib/active_support/call backs.rb:182:in `call'
/home/corp/rails_apps/Redmine/vendor/rails/activesupport/lib/active_support/call backs.rb:182:in `evaluate_method'
/home/corp/rails_apps/Redmine/vendor/rails/activesupport/lib/active_support/call backs.rb:166:in `call'
/home/corp/rails_apps/Redmine/vendor/rails/activesupport/lib/active_support/call backs.rb:90:in `run'
/home/corp/rails_apps/Redmine/vendor/rails/activesupport/lib/active_support/call backs.rb:90:in `each'
/home/corp/rails_apps/Redmine/vendor/rails/activesupport/lib/active_support/call backs.rb:90:in `send'
/home/corp/rails_apps/Redmine/vendor/rails/activesupport/lib/active_support/call backs.rb:90:in `run'
/home/corp/rails_apps/Redmine/vendor/rails/activesupport/lib/active_support/call backs.rb:276:in `run_callbacks'
/home/corp/rails_apps/Redmine/vendor/rails/actionpack/lib/action_controller/disp atcher.rb:51:in `send'
/home/corp/rails_apps/Redmine/vendor/rails/actionpack/lib/action_controller/disp atcher.rb:51:in `run_prepare_callbacks'
/home/corp/rails_apps/Redmine/config/../vendor/rails/railties/lib/initializer.rb :631:in `prepare_dispatcher'
/home/corp/rails_apps/Redmine/config/../vendor/rails/railties/lib/initializer.rb :185:in `process'
/home/corp/rails_apps/Redmine/config/../vendor/rails/railties/lib/initializer.rb :113:in `send'
/home/corp/rails_apps/Redmine/config/../vendor/rails/railties/lib/initializer.rb :113:in `run'
/home/corp/rails_apps/Redmine/config/environment.rb:32
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_requi re'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
/home/corp/rails_apps/Redmine/vendor/rails/activesupport/lib/active_support/depe ndencies.rb:156:in `require'
/home/corp/rails_apps/Redmine/vendor/rails/activesupport/lib/active_support/depe ndencies.rb:521:in `new_constants_in'
/home/corp/rails_apps/Redmine/vendor/rails/activesupport/lib/active_support/depe ndencies.rb:156:in `require'
/home/corp/rails_apps/Redmine/vendor/rails/railties/lib/tasks/misc.rake:4
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chai n'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chai n'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chai n'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chai n'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_h andling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_h andling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19