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

Development
  1. OpenProject
  2. Forums
  3. Development
  4. Setting up development environment fails in the step: ./bin/rake db:migrate db:seed db:test:prepare

Setting up development environment fails in the step: ./bin/rake db:migrate db:seed db:test:prepare

Added by ignu jee almost 7 years ago

Referring to the link: [[https://www.openproject.org/development/setting-up-development-environment/]]
I was setting up development environment in ubuntu 16, gnome-terminal. But it fails in the following step.
@ ./bin/rake db:migrate db:seed db:test:prepare@
I get the following error message:

Traceback (most recent call last):
    4: from ./bin/rake:2:in `<main>'
    3: from ./bin/rake:2:in `require_relative'
    2: from /home/tanzeem/openproject-dev/openproject/config/boot.rb:39:in `<top (required)>'
    1: from /home/tanzeem/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
/home/tanzeem/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- bundler/setup (LoadError)

Whe I added sudo to the command
sudo ./bin/rake db:migrate db:seed db:test:prepare
I get the following message in red color
Your Ruby version is 2.3.1, but your Gemfile specified ~> 2.5.1
Following the error message I tried rvm list
and got the following output

=* ruby-2.5.1 [ x86_64 ]

# => - current
# =* - current && default
#  * - default

Trying the commands
rvm use ruby-2.5.1

Using /home/tanzeem/.rvm/gems/ruby-2.5.1

and
ruby -v
gave the following result:

ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]

But
sudo ./bin/rake db:migrate db:seed db:test:prepare still gets the same error in red:
Your Ruby version is 2.3.1, but your Gemfile specified ~> 2.5.1

Please help me to move further in completing the installation.


Loading...