Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.1.36
-
Ubuntu 18.04 LTS
Description
Dear Maintainer,
We had installed and running Multi-instance version of mariadb.
Today when i fire `apt-get dist-upgrade` command mariadb update failed.
The following packages will be upgraded:
|
mariadb-server-10.1 |
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. |
Need to get 0 B/7230 kB of archives. |
After this operation, 1024 B of additional disk space will be used. |
Do you want to continue? [Y/n] y |
Preconfiguring packages ...
|
(Reading database ... 156043 files and directories currently installed.) |
Preparing to unpack .../mariadb-server-10.1_1%3a10.1.37+maria-1~bionic_amd64.deb ... |
Failed to stop mysql.service: Unit mysql.service not loaded.
|
invoke-rc.d: initscript mysql, action "stop" failed. |
dpkg: warning: old mariadb-server-10.1 package pre-removal script subprocess returned error exit status 1 |
dpkg: trying script from the new package instead ... |
Failed to stop mysql.service: Unit mysql.service not loaded.
|
invoke-rc.d: initscript mysql, action "stop" failed. |
dpkg: error processing archive /var/cache/apt/archives/mariadb-server-10.1_1%3a10.1.37+maria-1~bionic_amd64.deb (--unpack): |
new mariadb-server-10.1 package pre-removal script subprocess returned error exit status 1 |
Failed to stop mysql.service: Unit mysql.service not loaded.
|
invoke-rc.d: initscript mysql, action "stop" failed. |
Errors were encountered while processing: |
/var/cache/apt/archives/mariadb-server-10.1_1%3a10.1.37+maria-1~bionic_amd64.deb |
E: Sub-process /usr/bin/dpkg returned an error code (1) |
When using MariaDB multiple instances the upgrade process shows errors stopping/starting mysql and the servers are not restarted. Would be great if the upgrade scripts could detect running mariadb@xxx services (`systemctl | grep mariadb`??) and stop/restart them, instead of assuming a single mariadb service.
Attachments
Issue Links
- relates to
-
MDEV-23321 debian upgrade shouldn't start previously stopped services
- Open