🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
4 messages
4 total messages Started by Otto Kekäläinen Sun, 18 Oct 2026 15:10
Bug#1141976: [debian-mysql] Bug#1151058: mariadb-server: socket activation restarts server mid-upgrade; stalled instance blocks ...
#1275
Author: Otto Kekäläinen
Date: Sun, 18 Oct 2026 15:10
35 lines
4595 bytes
Hi!

Thanks for reporting
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1151058 and
following up on
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1141976.

The regression was in 1:10.11.18+deb12u1 that included upstream commit
https://github.com/MariaDB/server/commit/9fa3f51f59f5b7a6d84c68a45e6a6579f55847b3
that lead to Debhelper (version 10) injecting extra lines as listed in
https://salsa.debian.org/mariadb-team/mariadb-server/-/merge_requests/171#note_817952.

Initially 1:10.11.18-0+deb12u1 was only in bookworm-proposed-updates
and wasn't let into Bookworm itself due to the regression. However,
once Bookworm went into LTS, all pending proposed updates were
released, so unfortunately all users who upgraded .17->.18 potentially
hit this.

The fix in .19 does not have this regression anymore. Upgrades from
.17 to .19 skip this issue.

The fix does however not include any workaround to shut down
potentially existing socket activated instances. If you want to spend
time developing such a fix, you are welcome to do so and submit your
contribution in the open source spirit at
https://salsa.debian.org/mariadb-team/mariadb-server. Alternatively,
if you have a support contract with some provider, you can request
them to engineer the fix for you (and potentially also submit it to
Debian).

For anyone who ran into this issue and wanted to manually fix it,
simply run `pgrep -ef mariadbd` and/or `pgrep -ef mysqld` and look at
your process listings to see that all instances have shut down. After
that you can restart your system or just restart the systemd service
to let systemd manage starting the service.
Bug#1141976: [debian-mysql] Bug#1151058: mariadb-server: socket activation restarts server mid-upgrade; stalled instance blocks ...
#1326
Author: José Miguel Gonçalves
Date: Mon, 19 Oct 2026 10:20
38 lines
4174 bytes
Hi Otto,

Thanks for the reply and for explaining the .18 regression.

I'd like to clarify one point, because I think it is separate from 
#1141976. The incident happened during the .18 -> .19 upgrade. The 
socket being enabled by .18 is what made it possible, but the failure 
itself comes from the maintainer scripts stopping mariadb.service while 
mariadb.socket stays active. dpkg warned about exactly that:

   Warning: Stopping mariadb.service, but it can still be activated by:
     mariadb.socket

As I understand it, this leaves two open issues:

1. Hosts that went through .18 still have mariadb.socket enabled after 
upgrading to .19, unless the admin noticed and disabled it. On those 
hosts, the next security update can hit the same race. Since these 
updates are usually applied by unattended-upgrades, that may happen with 
nobody watching.

2. The same race applies to anyone who enables socket activation 
deliberately, regardless of .18.

SendSIGKILL=no makes the outcome much worse. The stalled instance cannot 
be stopped, systemd refuses to start the service while it exists, and 
the socket keeps accepting connections that are never served. Clients 
hang instead of failing.

Could you confirm whether the .19 maintainer scripts stop mariadb.socket 
during upgrades? If they don't, would you accept a change that stops 
mariadb.socket together with mariadb.service before unpacking and starts 
both again in postinst (only if the socket was active before)?

Regards,
José Gonçalves
Bug#1141976: [debian-mysql] Bug#1151058: mariadb-server: socket activation restarts server mid-upgrade; stalled instance blocks ...
#1762
Author: Otto Kekäläinen
Date: Fri, 23 Oct 2026 04:40
31 lines
4448 bytes
--0000000000009e702b065e7a81f5
Content-Type: text/plain; charset="UTF-8"

Hi,

The maintainer scripts currently do not do anything with the socket
activation based service. There is also no testing or CI in place to
validate.

Yes, I would accept a change that stops mariadb.socket together with
mariadb.service before unpacking and starts both again in postinst (only if
the socket was active before) assuming it is sufficiently well proven to
work and not cause new regressions.

--0000000000009e702b065e7a81f5
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"auto">Hi,<div dir=3D"auto"><br></div><div dir=
=3D"auto">The maintainer scripts currently do not do anything with the sock=
et activation based service. There is also no testing or CI in place to val=
idate.</div><div dir=3D"auto"><br></div><div>Yes, I would=C2=A0<span style=
=3D"background-color:transparent">accept a change that stops=C2=A0</span><s=
pan style=3D"background-color:transparent">mariadb.socket together with mar=
iadb.service before unpacking and starts=C2=A0</span><span style=3D"backgro=
und-color:transparent">both again in postinst (only if the socket was activ=
e before) assuming it is sufficiently well proven to work and not cause new=
 regressions.</span></div></div>
</div>

--0000000000009e702b065e7a81f5--
Bug#1151058: [debian-mysql] Bug#1151058: mariadb-server: socket activation restarts server mid-upgrade; stalled instance blocks ...
#1990
Author: José Miguel Gonçalves
Date: Sat, 24 Oct 2026 21:00
12 lines
2878 bytes
Hi,

I've opened a merge request with a fix:
https://salsa.debian.org/mariadb-team/mariadb-server/-/merge_requests/187

preinst stops mariadb.socket before the service, and postinst starts it
again only if it was active. It adds an autopkgtest for the upgrade cases,
which passes on Salsa CI.

Regards,
José Miguel Gonçalves
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads