alexbevi / redmine_knowledgebase

A knowledgebase plugin for Redmine
453 stars 197 forks source link

Installation Error #245

Closed nsrivastava2 closed 9 years ago

nsrivastava2 commented 10 years ago

I am getting the following error while trying to install you plugin:

root@redmine:# rake redmine:plugins:migrate NAME=redmine_knowledgebase (in /home/redmine/redmine) config.eager_load is set to nil. Please update your config/environments/*.rb files accordingly:

rake aborted! NoMethodError: undefined method observers=' for ActiveRecord::Base:Class /usr/local/rvm/gems/ruby-2.1.1/gems/activerecord-4.1.0/lib/active_record/dynamic_matchers.rb:26:inmethod_missing' /usr/local/rvm/gems/ruby-2.1.1/gems/activerecord-4.1.0/lib/active_record/railtie.rb:110:in block (3 levels) in <class:Railtie>' /usr/local/rvm/gems/ruby-2.1.1/gems/activerecord-4.1.0/lib/active_record/railtie.rb:109:ineach' /usr/local/rvm/gems/ruby-2.1.1/gems/activerecord-4.1.0/lib/active_record/railtie.rb:109:in block (2 levels) in <class:Railtie>' /usr/local/rvm/gems/ruby-2.1.1/gems/activesupport-4.1.0/lib/active_support/lazy_load_hooks.rb:38:ininstance_eval' /usr/local/rvm/gems/ruby-2.1.1/gems/activesupport-4.1.0/lib/active_support/lazy_load_hooks.rb:38:in execute_hook' /usr/local/rvm/gems/ruby-2.1.1/gems/activesupport-4.1.0/lib/active_support/lazy_load_hooks.rb:28:inblock in on_load' /usr/local/rvm/gems/ruby-2.1.1/gems/activesupport-4.1.0/lib/active_support/lazy_load_hooks.rb:27:in each' /usr/local/rvm/gems/ruby-2.1.1/gems/activesupport-4.1.0/lib/active_support/lazy_load_hooks.rb:27:inon_load' /usr/local/rvm/gems/ruby-2.1.1/gems/activerecord-4.1.0/lib/active_record/railtie.rb:108:in block in <class:Railtie>' /usr/local/rvm/gems/ruby-2.1.1/gems/railties-4.1.0/lib/rails/initializable.rb:30:ininstance_exec' /usr/local/rvm/gems/ruby-2.1.1/gems/railties-4.1.0/lib/rails/initializable.rb:30:in run' /usr/local/rvm/gems/ruby-2.1.1/gems/railties-4.1.0/lib/rails/initializable.rb:55:inblock in run_initializers' /usr/local/rvm/gems/ruby-2.1.1/gems/railties-4.1.0/lib/rails/initializable.rb:54:in run_initializers' /usr/local/rvm/gems/ruby-2.1.1/gems/railties-4.1.0/lib/rails/application.rb:288:ininitialize!' /usr/local/rvm/gems/ruby-2.1.1/gems/railties-4.1.0/lib/rails/railtie.rb:194:in public_send' /usr/local/rvm/gems/ruby-2.1.1/gems/railties-4.1.0/lib/rails/railtie.rb:194:inmethod_missing' /home/redmine/redmine/config/environment.rb:14:in <top (required)>' /usr/local/rvm/gems/ruby-2.1.1/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:inrequire' /usr/local/rvm/gems/ruby-2.1.1/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in block in require' /usr/local/rvm/gems/ruby-2.1.1/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:232:inload_dependency' /usr/local/rvm/gems/ruby-2.1.1/gems/activesupport-4.1.0/lib/active_support/dependencies.rb:247:in require' /usr/local/rvm/gems/ruby-2.1.1/gems/railties-4.1.0/lib/rails/application.rb:264:inrequire_environment!' /usr/local/rvm/gems/ruby-2.1.1/gems/railties-4.1.0/lib/rails/application.rb:367:in block in run_tasks_blocks' /usr/local/rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:ineval' /usr/local/rvm/gems/ruby-2.1.1/bin/ruby_executable_hooks:15:in `

' Tasks: TOP => redmine:plugins:migrate => environment (See full trace by running task with --trace)

alexbevi commented 9 years ago

Try using RAILS_ENV=development (or production) and try again. This just looks like a generic error; not a plugin error.