Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. DB Installation issue

DB Installation issue

Added by Anton Grünberg over 11 years ago

Hi to everyone,

I tried to install Openproject and failed first because of the wron ruby version (1.9.1).
After this I installed via rvm ruby 1.8.7.
The installation script proceeded until this point:

Your bundle is complete!
Gems in the groups rmagick and postgres were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
Post-install message from rdoc:
Depending on your version of ruby, you may need to install ruby rdoc/ri data:

<= 1.8.6 : unsupported
 = 1.8.7 : gem install rdoc-data; rdoc-data --install
 = 1.9.1 : gem install rdoc-data; rdoc-data --install

TextileConverterBlockquoteStart09339cab-f4f4-4739-85b0-d02ba1f342e6

= 1.9.2 : nothing to do! Yay!

TextileConverterBlockquoteEnd09339cab-f4f4-4739-85b0-d02ba1f342e6

==> Creating database
==> Migrate Core
rake aborted!
undefined method `source_index' for Gem:Module
/home/anton/.rvm/gems/ruby-1.8.7-p374/gems/rails-2.3.18/lib/rails/gem_dependency.rb:21:in `add_frozen_gem_path'
/home/anton/.rvm/gems/ruby-1.8.7-p374/gems/rails-2.3.18/lib/initializer.rb:298:in `add_gem_load_paths'
/home/anton/.rvm/gems/ruby-1.8.7-p374/gems/rails-2.3.18/lib/initializer.rb:132:in `process'
/home/anton/.rvm/gems/ruby-1.8.7-p374/gems/rails-2.3.18/lib/initializer.rb:113:in `send'
/home/anton/.rvm/gems/ruby-1.8.7-p374/gems/rails-2.3.18/lib/initializer.rb:113:in `run'
/home/anton/Projects/allectric_test/config/environment.rb:39
/home/anton/.rvm/gems/ruby-1.8.7-p374/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:182:in `require'
/home/anton/.rvm/gems/ruby-1.8.7-p374/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:182:in `require'
/home/anton/.rvm/gems/ruby-1.8.7-p374/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:547:in `new_constants_in'
/home/anton/.rvm/gems/ruby-1.8.7-p374/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:182:in `require'
/home/anton/.rvm/gems/ruby-1.8.7-p374/gems/rails-2.3.18/lib/tasks/misc.rake:4
/home/anton/.rvm/gems/ruby-1.8.7-p374/bin/ruby_executable_hooks:15
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
==> Something went wrong :(
==> Installation aborted.

It seems that the wrong rails version is installed, but I dont know which version of reails is needed for OpenProject? Can anyone help me please?

Thank you very much
Toni


Replies (3)

RE: DB Installation issue - Added by Jens Ulferts over 11 years ago

Hi Toni,

would be be so kind to take a look at https://www.openproject.org/projects/openproject/wiki/Installation_OpenProject_2_4 (or https://www.openproject.org/projects/openproject/wiki/Installation_OpenProject_3_0 if you feed adventurous) and see if that helps you out?

Sorry to be so short in answering but we are trying to improve the installation documentation for everybody so any feedback on this would be highly appreciated.

You are of course free to ask again if the installation instructions are lacking information you need.

Best

Jens

RE: DB Installation issue - Added by Heiko Talarek over 11 years ago

Hello Toni, Hello Jens,

the same issue on my side. I proceeded exactly according to installation instructions

Your bundle is complete!
Gems in the groups postgres and rmagick were not installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
root@nl013:/home/openproject-2.4.0/openproject# rake db:create:all
openproject already exists
openproject_development already exists
openproject_test already exists
root@nl013:/home/openproject-2.4.0/openproject# rake db:migrate db:migrate:plugins
rake aborted!
undefined method `source_index’ for Gem:Module
/usr/local/rvm/gems/ruby-1.8.7-p374/gems/rails-2.3.18/lib/rails/gem_dependency.rb:21:in `add_frozen_gem_path’
/usr/local/rvm/gems/ruby-1.8.7-p374/gems/rails-2.3.18/lib/initializer.rb:298:in `add_gem_load_paths’
/usr/local/rvm/gems/ruby-1.8.7-p374/gems/rails-2.3.18/lib/initializer.rb:132:in `process’
/usr/local/rvm/gems/ruby-1.8.7-p374/gems/rails-2.3.18/lib/initializer.rb:113:in `send’
/usr/local/rvm/gems/ruby-1.8.7-p374/gems/rails-2.3.18/lib/initializer.rb:113:in `run’
/home/openproject-2.4.0/openproject/config/environment.rb:39
/usr/local/rvm/gems/ruby-1.8.7-p374/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:182:in `require’
/usr/local/rvm/gems/ruby-1.8.7-p374/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:182:in `require’
/usr/local/rvm/gems/ruby-1.8.7-p374/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:547:in `new_constants_in’
/usr/local/rvm/gems/ruby-1.8.7-p374/gems/activesupport-2.3.18/lib/active_support/dependencies.rb:182:in `require’
/usr/local/rvm/gems/ruby-1.8.7-p374/gems/rails-2.3.18/lib/tasks/misc.rake:4
/usr/local/rvm/gems/ruby-1.8.7-p374/bin/ruby_executable_hooks:15
Tasks: TOP => db:migrate => environment
(See full trace by running task with —trace)
root@nl013:/home/openproject-2.4.0/openproject#

Best regards,

Heiko

RE: DB Installation issue - Added by Heiko Talarek over 11 years ago

find the tip below:

rvm rubygems latest-1.8

and than

rake db:migrate db:migrate:plugins

now it works for me…

Last question: How can I get the server start automatically after reboot?

Kind regards,

Heiko

  • (1 - 3/3)
Loading...