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. Make sure that the adapter in config/database.yml is valid. If you use an adapter other than 'mysql', 'mysql2', 'postgresql' or 'sqlite3' add the necessary adapter gem to the Gemfile.

Make sure that the adapter in config/database.yml is valid. If you use an adapter other than 'mysql', 'mysql2', 'postgresql' or 'sqlite3' add the necessary adapter gem to the Gemfile.

Added by Nathan Petralia over 8 years ago

Hi,

I am trying to install Openproject on Ubuntu 16.04 desktop using this tutorial: https://packager.io/gh/opf/openproject-ce/install?bid=167#ubuntu-16-04-openproject

The download is good, the config goes well until the last moment when I get following error:

[memcached] ./bin/postinstall [openproject] ./bin/postinstall rake aborted! LoadError: Could not load 'active_record/connection_adapters/mysql2_adapter'. Make sure that the adapter in config/database.yml is valid. If you use an adapter other than 'mysql', 'mysql2', 'postgresql' or 'sqlite3' add the necessary adapter gem to the Gemfile. /opt/openproject/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.7/lib/active_support/dependencies.rb:274:in `require' etc etc....

So then I did apt-get install ruby and that went well.
Now I tried to gem install mysql2 and nothing is happening. The system hangs…


Replies (2)

RE: Make sure that the adapter in config/database.yml is valid. If you use an adapter other than 'mysql', 'mysql2', 'postgresql' or 'sqlite3' add the necessary adapter gem to the Gemfile. - Added by Oliver Günther over 8 years ago

Hey Nathan,

are you installing the latest available package? Please use apt-cache policy openproject to show the actual version. At the time of writing, you should be installing 6.0.4-1472623908.dacb194.
If you do have an older package, please try purging it before updating and installing a newer version.

The build link you show is referencing a build a few months ago where 16.04. support was botched.

Best,
Oliver

RE: Make sure that the adapter in config/database.yml is valid. If you use an adapter other than 'mysql', 'mysql2', 'postgresql' or 'sqlite3' add the necessary adapter gem to the Gemfile. - Added by Nathan Petralia over 8 years ago

I have redone the installation on Debian Jessie and now it works thanks!

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