ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

Error creating base database structure

Added by Ravi Karamsetty at 2014-05-25 05:47 am

I am following the installation using the following link:

https://www.chiliproject.org/projects/chiliproject/wiki/Installation#Installation

I am at step 7:

Create the basic database structure by running the following command under the application root directory:

RAILS_ENV=production bundle exec rake db:migrate

This step failed with the following error:

[chili@mars chiliproject]$ RAILS_ENV=production bundle exec rake db:migrate
rake aborted!
NoMethodError: undefined method `source_index' for Gem:Module
/home/chili/.rvm/gems/ree-1.8.7-2012.02/gems/rails-2.3.18/lib/rails/gem_dependen cy.rb:21:in `add_frozen_gem_path'
/home/chili/.rvm/gems/ree-1.8.7-2012.02/gems/rails-2.3.18/lib/initializer.rb:298 :in `add_gem_load_paths'
/home/chili/.rvm/gems/ree-1.8.7-2012.02/gems/rails-2.3.18/lib/initializer.rb:132 :in `process'
/home/chili/.rvm/gems/ree-1.8.7-2012.02/gems/rails-2.3.18/lib/initializer.rb:113 :in `send'
/home/chili/.rvm/gems/ree-1.8.7-2012.02/gems/rails-2.3.18/lib/initializer.rb:113 :in `run'
/home/chili/chiliproject/config/environment.rb:42
/home/chili/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-2.3.18/lib/active_sup port/dependencies.rb:182:in `require'
/home/chili/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-2.3.18/lib/active_sup port/dependencies.rb:182:in `require'
/home/chili/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-2.3.18/lib/active_sup port/dependencies.rb:547:in `new_constants_in'
/home/chili/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-2.3.18/lib/active_sup port/dependencies.rb:182:in `require'
/home/chili/.rvm/gems/ree-1.8.7-2012.02/gems/rails-2.3.18/lib/tasks/misc.rake:4
/home/chili/.rvm/gems/ree-1.8.7-2012.02/bin/ruby_executable_hooks:15
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
[chili@mars chiliproject]$ RAILS_ENV=production bundle exec rake db:migrate --trace
  • Invoke db:migrate (first_time)
  • Invoke environment (first_time)
  • Execute environment
    rake aborted!
    NoMethodError: undefined method `source_index' for Gem:Module
    /home/chili/.rvm/gems/ree-1.8.7-2012.02/gems/rails-2.3.18/lib/rails/gem_dependency.rb:21:in `add_frozen_gem_path'
    /home/chili/.rvm/gems/ree-1.8.7-2012.02/gems/rails-2.3.18/lib/initializer.rb:298:in `add_gem_load_paths'
    /home/chili/.rvm/gems/ree-1.8.7-2012.02/gems/rails-2.3.18/lib/initializer.rb:132:in `process'
    /home/chili/.rvm/gems/ree-1.8.7-2012.02/gems/rails-2.3.18/lib/initializer.rb:113:in `send'
    /home/chili/.rvm/gems/ree-1.8.7-2012.02/gems/rails-2.3.18/lib/initializer.rb:113:in `run'
    /home/chili/chiliproject/config/environment.rb:42
    /home/chili/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:182:in `require'
    /home/chili/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:182:in `require'
    /home/chili/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:547:in `new_constants_in'
    /home/chili/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:182:in `require'
    /home/chili/.rvm/gems/ree-1.8.7-2012.02/gems/rails-2.3.18/lib/tasks/misc.rake:4
    /home/chili/.rvm/gems/ree-1.8.7-2012.02@global/gems/rake-10.3.2/lib/rake/task.rb:240:in `call'
    /home/chili/.rvm/gems/ree-1.8.7-2012.02@global/gems/rake-10.3.2/lib/rake/task.rb:240:in `execute'
    /home/chili/.rvm/gems/ree-1.8.7-2012.02@global/gems/rake-10.3.2/lib/rake/task.rb:235:in `each'
    /home/chili/.rvm/gems/ree-1.8.7-2012.02@global/gems/rake-10.3.2/lib/rake/task.rb:235:in `execute'
    /home/chili/.rvm/gems/ree-1.8.7-2012.02@global/gems/rake-10.3.2/lib/rake/task.rb:179:in `invoke_with_call_chain'
    /home/chili/.rvm/rubies/ree-1.8.7-2012.02/lib/ruby/1.8/monitor.rb:242:in `synchronize'
    /home/chili/.rvm/gems/ree-1.8.7-2012.02@global/gems/rake-10.3.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
    /home/chili/.rvm/gems/ree-1.8.7-2012.02@global/gems/rake-10.3.2/lib/rake/task.rb:201:in `invoke_prerequisites'
    /home/chili/.rvm/gems/ree-1.8.7-2012.02@global/gems/rake-10.3.2/lib/rake/task.rb:199:in `each'
    /home/chili/.rvm/gems/ree-1.8.7-2012.02@global/gems/rake-10.3.2/lib/rake/task.rb:199:in `invoke_prerequisites'
    /home/chili/.rvm/gems/ree-1.8.7-2012.02@global/gems/rake-10.3.2/lib/rake/task.rb:178:in `invoke_with_call_chain'
    /home/chili/.rvm/rubies/ree-1.8.7-2012.02/lib/ruby/1.8/monitor.rb:242:in `synchronize'
    /home/chili/.rvm/gems/ree-1.8.7-2012.02@global/gems/rake-10.3.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
    /home/chili/.rvm/gems/ree-1.8.7-2012.02@global/gems/rake-10.3.2/lib/rake/task.rb:165:in `invoke'
    /home/chili/.rvm/gems/ree-1.8.7-2012.02@global/gems/rake-10.3.2/lib/rake/application.rb:150:in `invoke_task'
    /home/chili/.rvm/gems/ree-1.8.7-2012.02@global/gems/rake-10.3.2/lib/rake/application.rb:106:in `top_level'
    /home/chili/.rvm/gems/ree-1.8.7-2012.02@global/gems/rake-10.3.2/lib/rake/application.rb:106:in `each'
    /home/chili/.rvm/gems/ree-1.8.7-2012.02@global/gems/rake-10.3.2/lib/rake/application.rb:106:in `top_level'
    /home/chili/.rvm/gems/ree-1.8.7-2012.02@global/gems/rake-10.3.2/lib/rake/application.rb:115:in `run_with_threads'
    /home/chili/.rvm/gems/ree-1.8.7-2012.02@global/gems/rake-10.3.2/lib/rake/application.rb:100:in `top_level'
    /home/chili/.rvm/gems/ree-1.8.7-2012.02@global/gems/rake-10.3.2/lib/rake/application.rb:78:in `run'
    /home/chili/.rvm/gems/ree-1.8.7-2012.02@global/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling'
    /home/chili/.rvm/gems/ree-1.8.7-2012.02@global/gems/rake-10.3.2/lib/rake/application.rb:75:in `run'
    /home/chili/.rvm/gems/ree-1.8.7-2012.02@global/gems/rake-10.3.2/bin/rake:33
    /home/chili/.rvm/gems/ree-1.8.7-2012.02@global/bin/rake:23:in `load'
    /home/chili/.rvm/gems/ree-1.8.7-2012.02@global/bin/rake:23
    /home/chili/.rvm/gems/ree-1.8.7-2012.02/bin/ruby_executable_hooks:15
    Tasks: TOP => db:migrate => environment

Replies (4)

RE: Error creating base database structure - Added by Ravi Karamsetty at 2014-05-28 11:43 pm

I found the solution. This can be closed.

RE: Error creating base database structure - Added by Francois Botha at 2014-06-09 12:02 pm

Please share the solution so that the rest of us may benefit too.

RE: Error creating base database structure - Added by Francois Botha at 2014-06-12 09:10 am

Ravi Karamsetty wrote:

I found the solution. This can be closed.

How did you solve it?

RE: Error creating base database structure - Added by Ravi Karamsetty at 2014-06-13 10:15 pm

Update updating system to 1.8.25, it resolved the issue:

gem update --system 1.8.25

(1-4/4)