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. Installation with Packager and MariaDB

Installation with Packager and MariaDB

Added by Jens Günther over 8 years ago

Hey, I wanted to install OpenProject on our Server. I gave it a first try on a testing-server and ran into a kinda big problem, at least for me — debian 8.5, apache, mysql (mariadb)

- first I installed on a clean machine with the packager/deb-way — this does work perfectly, thanks for the work for such an easy way… (still did it with OpenProject 5) … configured and started using it out of the box

- then I saw that it would use mysql-server-common as mysql-database, which is fine, but … so I changed to mariadb-server … and the installation went ok, still could use it

- with the update to version 6 started what I see now as a problem: during the update it did uninstall mariadb and reinstall mysql-server … but failed with some sort of problem in setting up mysql (5.5) at all, couldn’t even get it working back again with original mysql without wiping everything first (unmet dependencies, that weren’t soluble with ‘apt-get -f install’)
- did a fresh installation of test-server, installed mariadb-server, and then openproject —> when configuring openproject (openproject configure), it starts from new with breaking the dkpg

Aborting downgrade from (at least) 10.0 to 5.5 ... subprocess new pre-installation script returned error exit status 1

—> How can I get it to simply use the already installed mariadb, since we use this in productive server and can’t just uninstall it (well, I could even run a test whether it cracks the databases, but installation is corrupt, so wouldn’t be able to do it that way). Anybody has ideas?

—> Is the only way installaing it by hand?

Thanks inadvance, Jens.


Replies (6)

RE: Installation with Packager and MariaDB - Added by Cyril Rohr over 8 years ago

Hello, have you tried running openproject reconfigure and selecting Use existing database instead of installing it? It should then just go ahead and ask you for existing database details and not install the MySQL packages.

RE: Installation with Packager and MariaDB - Added by Jens Günther over 8 years ago

Thank you for your answer! Well right, this was the clue … reconfigured and saw that I could chose this.

My problem now ist, that it won’t take the database. I can include all the data (created database and user, flushed privileges and so on) but the result is as follows:

E: Unable to correct problems, you have held broken packages.

Any ideas what I have been missing?

Who did a good install with mariadb preinstalled and might have some advice for the ongoing installation?

Thanks in advance.

RE: Installation with Packager and MariaDB - Added by Oliver Günther over 8 years ago

Hi Jens,

The error stems from APT and reads like you are holding packages that openproject might want to install.

Check the list of held packages with:
dpkg --get-selections | grep hold

Best,
Oliver

RE: Installation with Packager and MariaDB - Added by Jens Günther over 8 years ago

Hey,

still no luck :-(

  • I refreshed testing-system and did the following:
apt-get install mariadb-server
apt-get install openproject
  • The I created a new database in mariadb with clean install (user openproject, db-name the same)
  • the I started configuring, but it wouldn’t take the database, did then the configuring with skipping DB
  • Then I tried to configure DB manually: openproject config:set DATABASE_URL="mysql://openproject:*PW*localhost/openproject"@ —> that didn’t do the job, since configure/database.yml was still empty
  • then I copied the example-database.yml to database.yml and put in all the credentials that I had and commented out development/testing

—> always I do get now the following error:

[openproject] ./bin/postinstall
rake aborted!
LoadError: Could not load 'active_record/connection_adapters/mysql_adapter'. Make sure that the adapter in config/database.yml is valid. If you use an adapter other than 'mysql2', 'postgresql' or 'sqlite3' add the necessary adapter gem to the Gemfile.

Anybody any ideas what I’m missing?

Thanks in advance, and thanks for your support, Oliver, before! Jens.

RE: RE: Installation with Packager and MariaDB - Added by Mathieu LALLEMAND over 7 years ago

I’ve exactly the same problem here on a Jessie (Debian 8) with mariadb previously installed. I guess you’ve reinstalled OpenProject since 9 month but I’ve found a workaround, maybe it can help others.

Solution:

1) Install mariadb-client if not already done :
$sudo apt-get install mariadb-client

2) edit /usr/share/openproject/installer/addons/mysql/bin/configure
replace Line 133 “mysql-client” with “mariadb-client” in the input_check function, save the file, exit editor

3) retry :
$ openproject reconfigure

Hope it helps.

RE: Installation with Packager and MariaDB - Added by Ted Schober over 7 years ago

This problem is even worse on Ubuntu 16.04 with mariadb installed.
I asked to install with mysql, since mariadb is a drop in replacement.
The installer uninstalled mariadb and tried to reinstall mysql!
I have mariadb in use for other purposes, so it broke the system.
There is a bug in Ubuntu 16.04 which prevents reinstalling mysql once mariadb has been installed.
Please add a warning and choice before uninstalling mariadb! An installer should not high handedly uninstall other packages, at least without warning and an op-out.
I will see if I can fix up the machine, and report back.

Ted

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