Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrading Maria 10.2 to Percona fails because of libmariadb3 #1732

Closed
aDarkling opened this issue Jul 9, 2023 · 4 comments
Closed

Upgrading Maria 10.2 to Percona fails because of libmariadb3 #1732

aDarkling opened this issue Jul 9, 2023 · 4 comments

Comments

@aDarkling
Copy link

Hi all,

I've been trying to upgrade my BOA server from Maria 10.2 to Percona 5.7 for some time now. I keep running into the log message listed below. How can I make sure that libmariadb3 gets uninstalled before it tries to install Percona?

Preparing to unpack .../percona-server-server-5.7_5.7.36-39-1.stretch_amd64.deb ...
.
Unpacking percona-server-server-5.7 (5.7.36-39-1.stretch) ...
dpkg: error processing archive /var/cache/apt/archives/percona-server-server-5.7_5.7.36-39-1.stretch_amd64.deb (--unpack):
trying to overwrite '/usr/lib/mysql/plugin/dialog.so', which is also in package libmariadb3 10.2.44+maria~stretch
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/percona-server-server-5.7_5.7.36-39-1.stretch_amd64.deb
Setting up percona-server-common-5.7 (5.7.36-39-1.stretch) ...

  • The suggested mysql options and settings are in /etc/mysql/percona-server.conf.d/mysqld.cnf
  • If you want to use mysqld.cnf as default configuration file please make backup of /etc/my.cnf
  • Once it is done please execute the following commands:
    rm -rf /etc/mysql/my.cnf
    update-alternatives --install /etc/mysql/my.cnf my.cnf "/etc/mysql/percona-server.cnf" 300

@omega8cc
Copy link
Owner

How do you run the upgrade? With barracuda script?

Sent with GitHawk

@aDarkling
Copy link
Author

aDarkling commented Jul 14, 2023

Yes. I edited /root/.barracuda.cnf to replace the old db specification with this:

_DB_SERIES=5.7 #---------------- Supported values: 5.7
_DB_SERVER=Percona #------------ Install Percona or MariaDB (deprecated)

and then ran "barracuda up-head system"
Barracuda had been updated before I did this so that there would be no upgrading conflicts.

@omega8cc
Copy link
Owner

Honestly, we haven’t tested this for years after BOA switched to Percona, so perhaps something has changed in the meantime because it worked on thousands of servers for us before. We may need to install legacy code to debug this somehow but it’s problematic because legacy code doesn’t support available now Debian versions for new VM.

Sent with GitHawk

@omega8cc
Copy link
Owner

Closing as MariaDB is not supported anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants