mariadb-server hängt nach Upgrade  [GELÖST]

Allgemeine Diskussionen rund um KeyHelp.
Post Reply
User avatar
Ralph
Posts: 1567
Joined: Mon 30. Mar 2020, 16:14

mariadb-server hängt nach Upgrade  [GELÖST]

Post by Ralph »

Debain 12
KH latest

Nach einem Upgrade von heute morgen hängen hier mind. 4 Debian 12 Systeme ...
/var/lib/mysql: found previous version 10.11 - was das denn für ein Mist?
Hab ein System nur durch einen Hard Reset wieder aufgetaut ... danach nochmal 4 Updates fertig installiert, dann lief es.

So ein Schrott Update von Debian gab es ich ja lange nicht mehr!

Code: Select all

Attempt to stop MariaDB/MySQL server returned exitcode 1
There is a MariaDB/MySQL server running, but we failed in our attempts to stop it.
Stop it yourself and try again!
dpkg: error processing archive /var/cache/apt/archives/mariadb-server_1%3a10.11.19-0+deb12u1_arm64.deb (--unpack):
 new mariadb-server package pre-installation script subprocess returned error exit status 1

Code: Select all

The following packages will be upgraded:
  libmariadb3 mariadb-client mariadb-client-core mariadb-common mariadb-server mariadb-server-core
6 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 15.0 MB of archives.
After this operation, 572 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://security.debian.org/debian-security bookworm-security/main amd64 mariadb-common all 1:10.11.19-0+deb12u1 [27.6 kB]
Get:2 http://security.debian.org/debian-security bookworm-security/main amd64 mariadb-server amd64 1:10.11.19-0+deb12u1 [3,666 kB]
Get:3 http://security.debian.org/debian-security bookworm-security/main amd64 mariadb-server-core amd64 1:10.11.19-0+deb12u1 [7,342 kB]
Get:4 http://security.debian.org/debian-security bookworm-security/main amd64 mariadb-client-core amd64 1:10.11.19-0+deb12u1 [870 kB]
Get:5 http://security.debian.org/debian-security bookworm-security/main amd64 mariadb-client amd64 1:10.11.19-0+deb12u1 [2,952 kB]
Get:6 http://security.debian.org/debian-security bookworm-security/main amd64 libmariadb3 amd64 1:10.11.19-0+deb12u1 [180 kB]
Fetched 15.0 MB in 0s (68.2 MB/s)     
Preconfiguring packages ...
(Reading database ... 56951 files and directories currently installed.)
Preparing to unpack .../mariadb-common_1%3a10.11.19-0+deb12u1_all.deb ...
Unpacking mariadb-common (1:10.11.19-0+deb12u1) over (1:10.11.18-0+deb12u1) ...
Setting up mariadb-common (1:10.11.19-0+deb12u1) ...
(Reading database ... 56951 files and directories currently installed.)
Preparing to unpack .../mariadb-server_1%3a10.11.19-0+deb12u1_amd64.deb ...
Warning: Stopping mariadb.service, but it can still be activated by:
  mariadb.socket
/var/lib/mysql: found previous version 10.11

Code: Select all

systemctl status mariadb.service
● mariadb.service - MariaDB 10.11.18 database server
     Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; preset: enabled)
    Drop-In: /etc/systemd/system/mariadb.service.d
             └─limits.conf
     Active: deactivating (stop-sigterm) since Thu 2026-10-15 07:39:12 CEST; 11min ago
TriggeredBy: ● mariadb.socket
       Docs: man:mariadbd(8)
             https://mariadb.com/kb/en/library/systemd/
   Main PID: 196901 (mariadbd)
      Tasks: 7 (limit: 246988)
     Memory: 1.8G
        CPU: 2.023s
     CGroup: /system.slice/mariadb.service
             └─196901 /usr/sbin/mariadbd

die anderen Kisten hängen seit mind. 1 Stunde mit:

Code: Select all

Preparing to unpack .../mariadb-server_1%3a10.11.19-0+deb12u1_amd64.deb ...
Warning: Stopping mariadb.service, but it can still be activated by:
  mariadb.socket
/var/lib/mysql: found previous version 10.11

Warning: Stopping mariadb.service, but it can still be activated by:
  mariadb.socket
Warning: Stopping mysql.service, but it can still be activated by:
  mariadb.socket
Unpacking mariadb-server (1:10.11.19-0+deb12u1) over (1:10.11.18-0+deb12u1) ..
User avatar
Ralph
Posts: 1567
Joined: Mon 30. Mar 2020, 16:14

Re: mariadb-server hängt nach Upgrade

Post by Ralph »

Unglaublich ... also die Systeme die jetzt noch nicht aktualisiert wurden, bleiben erst mal (upgrade tasks gestoppt) ...
die Ausfallzeit ist etwas zu lange bei diesem MariaDB Update :shock:
User avatar
superjogi
Posts: 182
Joined: Sat 11. Jan 2020, 23:24

Re: mariadb-server hängt nach Upgrade

Post by superjogi »

Mich hatte es auch erwischt. Interessanter Weise nur mit einem Server.
Danke, dass du das Posting hier gemacht hast.
Hat mir geholfen das Problem zu finden.
User avatar
Ralph
Posts: 1567
Joined: Mon 30. Mar 2020, 16:14

Re: mariadb-server hängt nach Upgrade

Post by Ralph »

superjogi wrote: ↑Thu 15. Oct 2026, 09:49 Mich hatte es auch erwischt. Interessanter Weise nur mit einem Server.
Bei mir gab es auch ein paar "baugleiche" Systeme, wo es einfach durchgelaufen ist, ohne Probleme ...
An der DB Grösse o. Fehler liegt es nicht, es ist auch kein Load Problem ... bei einem manuellen Test, blieb der Upgrade task auch einfach unerwartet hängen und somit auch alle anderen Services die an MySQL gebunden sind. Bei einer Kiste hat es "vier" reboots gebraucht zum fertigstellen der Upgrade Aktionen, bis alles wieder funktionierte.
User avatar
Florian
Keyweb AG
Posts: 1963
Joined: Wed 20. Jan 2016, 02:28

Re: mariadb-server hängt nach Upgrade

Post by Florian »

Auf einem Testsystem lief das problemlos, auch bisher keine Meldung von Kunden über Probleme
Mit freundlichen Grüßen / Best regards
Florian Cheno

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
User avatar
Ralph
Posts: 1567
Joined: Mon 30. Mar 2020, 16:14

Re: mariadb-server hängt nach Upgrade

Post by Ralph »

Florian wrote: ↑Thu 15. Oct 2026, 10:05 Auf einem Testsystem lief das problemlos, auch bisher keine Meldung von Kunden über Probleme

Bisher habe ich noch keine Hänger bei Debian 13 gefunden, nur bei Debian 12 Systemem (allerdings auch nicht alle) ....
Upgrade scheint "generell" nicht überall stabil durchzulaufen, auch bei Systemen ohne Panel.
User avatar
Ralph
Posts: 1567
Joined: Mon 30. Mar 2020, 16:14

Re: mariadb-server hängt nach Upgrade

Post by Ralph »

Hier mal ein einfaches Apache, MySQL Debian12 System ohne Panel ... diese 6 Packages:
libmariadb3 mariadb-client mariadb-client-core mariadb-common mariadb-server mariadb-server-core
6 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
explizit

Code: Select all

Get:1 http://security.debian.org/debian-security bookworm-security/main amd64 mariadb-common all 1:10.11.19-0+deb12u1 [27.6 kB]
Get:2 http://security.debian.org/debian-security bookworm-security/main amd64 mariadb-server amd64 1:10.11.19-0+deb12u1 [3666 kB]
Get:3 http://security.debian.org/debian-security bookworm-security/main amd64 mariadb-server-core amd64 1:10.11.19-0+deb12u1 [7342 kB]
Get:4 http://security.debian.org/debian-security bookworm-security/main amd64 mariadb-client-core amd64 1:10.11.19-0+deb12u1 [870 kB]
Get:5 http://security.debian.org/debian-security bookworm-security/main amd64 mariadb-client amd64 1:10.11.19-0+deb12u1 [2952 kB]
Get:6 http://security.debian.org/debian-security bookworm-security/main amd64 libmariadb3 amd64 1:10.11.19-0+deb12u1 [180 kB]

und hier beim Preparing to unpack belibt es dann hängen:

Code: Select all

Preparing to unpack .../mariadb-server_1%3a10.11.19-0+deb12u1_amd64.deb ...
Warning: Stopping mariadb.service, but it can still be activated by:
  mariadb.socket
/var/lib/mysql: found previous version 10.11
Tiresias
Posts: 29
Joined: Sun 22. Jun 2025, 22:53

Re: mariadb-server hängt nach Upgrade

Post by Tiresias »

Dasselbe bei mir auf Debian 12. Auch nur auf einem Server. Okay, ist auch der einzige, der das automatisch macht...
Blubby
Posts: 121
Joined: Tue 5. Mar 2024, 13:10

Re: mariadb-server hängt nach Upgrade

Post by Blubby »

Das Problem ist bei mir auch aufgetreten. Allerdings auch nur auf den Debian 12 Kisten.
tab-kh
Posts: 726
Joined: Thu 22. Apr 2021, 23:06

Re: mariadb-server hängt nach Upgrade

Post by tab-kh »

Bei mir auch bei Debian 12 nicht. Das mag natürlich daran liegen, dass von den Debian 12 Servern keiner mariadb installiert hat :D
Post Reply