[MDEV-7422] Migration to MariaDB 10.0 fails Created: 2015-01-08 Updated: 2015-02-06 Resolved: 2015-02-06 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Platform Debian |
| Affects Version/s: | 10.0.15 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Critical |
| Reporter: | Thomas | Assignee: | Otto Kekäläinen |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Ubuntu Server 14.04 |
||
| Attachments: |
|
| Description |
|
Hello! I'm not sure whether this is a bug or simply an error occuring in my system only. I want to migrate to MariaDB 10.0 and follow the best practice guide from MariaDB.
The installation will automatically remove mysql-server-5.5 and all depending packages. However, the configuration of package mariadb-server-10.0 fails with this error: How can I fix this problem? THX |
| Comments |
| Comment by Elena Stepanova [ 2015-01-08 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi, Could you please point at the best practice guide that you are following? It should probably be updated or fixed. Installing deb packages manually (i.e. without a package manager like apt-get or similar) is not recommended as best practice, although should be possible. But I don't think dpkg is even expected to take care of dependencies, replacements and such, is it? If you want to install the server this way, you should remove the previous installation. Note: If you do it carefully, your datadir shouldn't be touched, but creating a backup before an upgrade of any kind is always recommended as the best practice. Alternatively, you can use a package manager. Normally it would take care of the upgrade, although on Trusty which you are apparently using there is a problem described in See also https://mariadb.com/kb/en/mariadb/documentation/getting-started/binary-packages/installing-mariadb-deb-files/ for some more information about possible installation issues and their resolution. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Daniel Black [ 2015-01-08 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
looks like you need to remove mysql-server-core-5.5 too. Care not to purge anything otherwise your data may go too. dpkg -l | egrep '(mysql|mariadb)' to see if any existing packages are pulling this in. Once installed you may get some config errors that show up in the error log. These are fixed by replacing the erroneous directives with the modern 10 equivalents or removing them. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Thomas [ 2015-01-09 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I repeated the installation attempt and can now completely document the installation process with apt:
2. To verify what version of MariaDB is available:
Packages
3. The installation process using apt:
Removing the package mysql-server-core-5.5 is not really an option because there are dependencies to other packages I don't want to remove. But I assume this is then potentially an issue I should address to the developers of the dependent packages. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2015-01-09 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
otto, Any thoughts and recommendations on what (if anything) should be done on our side will be much appreciated. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Thomas [ 2015-01-09 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
OK. I would appreciate a statement regarding the root cause. For the first case, I might force package mangement to overwrite file "/usr/share/mysql/mysql_system_tables.sql" belonging to package mysql-server-core-5.5 using dpkg --force overwrite <package>.deb. For the latest, could this be verified by releasing the dependency to mysql-server-5.5? If yes, how can I do that? | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Jean Weisbuch [ 2015-01-10 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
It seems that you are using a Zentyal Ubuntu distro, which version is that? In the past, Zentyal packages were depending on mysql-server-5.5 while it should have been depending on mysql-server metapackage, making the migration to MariaDB impossible (without forcing packages installation), i dont understand German but it seems that the error message is related. Here is the report i did on Zentyal 3.0 almost 2 years ago : http://oldtracker.zentyal.org/ticket/6606 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Thomas [ 2015-01-10 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Confirm the comment of Jean... actually I have created a new ticket with Zentyal incl. the reference to Jean's old ticket: In the meantime I fixed the issue by installing the package with dpkg -i --force-overwrite Finally I ran mysql_upgrade -u root -p and mysql_secure_installation without any errors. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Otto Kekäläinen [ 2015-02-06 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
This is an issue in Zentyal dependencies or documentation. On normal Ubuntu systems 'apt-get install mariadb-server' works just fine and there is no need for complex manual dpkg -i -commands. |