Object is not missing constant Project!

Added by hywl51 Xu over 9 years ago

I was trying to install redmine 0.9.3 with ruby 1.8.7 on a centos pc, and got the following error:

[root@localhost redmine-0.9.3]# RAILS_ENV=production rake --trace db:migrate
(in /root/redmine-0.9.3)
  • Invoke db:migrate (first_time)
  • Invoke environment (first_time)
  • Execute environment
    rake aborted!
    Object is not missing constant Project!
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:417:in `load_missing_constant'
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing'
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:92:in `const_missing'
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:98:in `send'
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:98:in `const_missing'
    /root/redmine-0.9.3/app/models/attachment.rb:36
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require'
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:265:in `require_or_load_without_engine_additions'
    /root/redmine-0.9.3/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load'
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:425:in `load_missing_constant'
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing'
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:92:in `const_missing'
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant'
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing'
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant'
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing'
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant'
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing'
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:437:in `load_missing_constant'
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing'
    /root/redmine-0.9.3/vendor/plugins/acts_as_attachable/lib/acts_as_attachable.rb:33:in `acts_as_attachable'
    /root/redmine-0.9.3/app/models/message.rb:22
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:158:in `require'
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:265:in `require_or_load_without_engine_additions'
    /root/redmine-0.9.3/vendor/plugins/engines/lib/engines/rails_extensions/dependencies.rb:132:in `require_or_load'
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:425:in `load_missing_constant'
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:80:in `const_missing'
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:92:in `const_missing'
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/inflector.rb:361:in `constantize'
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/inflector.rb:360:in `each'
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/inflector.rb:360:in `constantize'
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/core_ext/string/inflections.rb:162:in `constantize'
    /root/redmine-0.9.3/vendor/rails/activerecord/lib/active_record/observer.rb:157:in `observed_class'
    /root/redmine-0.9.3/vendor/rails/activerecord/lib/active_record/observer.rb:183:in `observed_classes'
    /root/redmine-0.9.3/vendor/rails/activerecord/lib/active_record/observer.rb:166:in `initialize'
    /usr/local/lib/ruby/1.8/singleton.rb:94:in `new'
    /usr/local/lib/ruby/1.8/singleton.rb:94:in `instance'
    /root/redmine-0.9.3/vendor/rails/activerecord/lib/active_record/observer.rb:38:in `instantiate_observers'
    /root/redmine-0.9.3/vendor/rails/activerecord/lib/active_record/observer.rb:36:in `each'
    /root/redmine-0.9.3/vendor/rails/activerecord/lib/active_record/observer.rb:36:in `instantiate_observers'
    /root/redmine-0.9.3/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:15
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/callbacks.rb:182:in `call'
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/callbacks.rb:182:in `evaluate_method'
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/callbacks.rb:166:in `call'
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/callbacks.rb:90:in `run'
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/callbacks.rb:90:in `each'
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/callbacks.rb:90:in `send'
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/callbacks.rb:90:in `run'
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/callbacks.rb:276:in `run_callbacks'
    /root/redmine-0.9.3/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:51:in `send'
    /root/redmine-0.9.3/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:51:in `run_prepare_callbacks'
    /root/redmine-0.9.3/config/../vendor/rails/railties/lib/initializer.rb:631:in `prepare_dispatcher'
    /root/redmine-0.9.3/config/../vendor/rails/railties/lib/initializer.rb:185:in `process'
    /root/redmine-0.9.3/config/../vendor/rails/railties/lib/initializer.rb:113:in `send'
    /root/redmine-0.9.3/config/../vendor/rails/railties/lib/initializer.rb:113:in `run'
    /root/redmine-0.9.3/config/environment.rb:20
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
    /root/redmine-0.9.3/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
    /root/redmine-0.9.3/vendor/rails/railties/lib/tasks/misc.rake:4
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'
    /usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'
    /usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
    /usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
    /usr/bin/rake:19:in `load'
    /usr/bin/rake:19

Can anyone help me some advice?

Thanks

Replies (2)

RE: Object is not missing constant Project! - Added by Timothy High over 9 years ago

hywl51 Xu wrote:

I was trying to install redmine 0.9.3 with ruby 1.8.7 on a centos pc, and got the following error:

...
Object is not missing constant Project!
...
Can anyone help me some advice?

Hi, did you figure this one out? There's someone trying to use the Arch Decisions plugin and is having the same problem:
http://www.redmine.org/boards/3/topics/11664#message-14251

If you have a solution, please post it here. Otherwise, we'll keep looking and let you know.

It might be a problem with your particular combination of gems, Redmine and Ruby. Have you tried upgrading to 0.9.4?

RE: Object is not missing constant Project! - Added by Brian DeVries over 9 years ago

I just ran into a very similar error with a plugin (in this case, the redmine-checkout one). In my case, the directory that the plugin was supposed to be in was actually the top of the Subversion repository, so it had the directories `tags` and `trunk`, rather than the information that Redmine / Rake was expecting for a plugin. Maybe you have a similar problem where you didn't link / copy / check out the actual plugin directory like you thought you did.

I don't know how much, if at all, this will help you, but thought I'd toss my thoughts in here real quick.

(1-2/2)