Content
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)
Hello, have you tried running
openproject reconfigure
and selectingUse 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.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.
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
Hey,
still no luck :-(
openproject config:set DATABASE_URL="mysql://openproject:*PW*
localhost/openproject"@ —> that didn’t do the job, since configure/database.yml was still empty—> always I do get now the following error:
Anybody any ideas what I’m missing?
Thanks in advance, and thanks for your support, Oliver, before! Jens.
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.
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