🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #1326

Bug#1141976: [debian-mysql] Bug#1151058: mariadb-server: socket activation restarts server mid-upgrade; stalled instance blocks ...

#1326
From: 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
Technical Details
Message-ID: <NPSDf-6w4p-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <NOQWR-5Wc5-9@gated-at.bofh.it> <NPAGm-6m6M-23@gated-at.bofh.it> <Nghfc-4r11-3@gated-at.bofh.it> <NPAGm-6m6M-23@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: José Miguel Gonçalves <jose.goncalves@inov.pt>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1141976: [debian-mysql] Bug#1151058: mariadb-server: socket activation restarts server mid-upgrade; stalled instance blocks service (SendSIGKILL=no)
Date: Mon, 19 Oct 2026 12:20:01 +0200
Message-ID: <NPSDf-6w4p-1@gated-at.bofh.it>
References: <NOQWR-5Wc5-9@gated-at.bofh.it> <NPAGm-6m6M-23@gated-at.bofh.it> <Nghfc-4r11-3@gated-at.bofh.it> <NPAGm-6m6M-23@gated-at.bofh.it>
X-Original-To: Otto Kekäläinen <otto@debian.org>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Mon Oct 19 10:13:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.451
Reply-To: José Miguel Gonçalves <jose.goncalves@inov.pt>, 1141976@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: pkg-mysql-maint@lists.alioth.debian.org
X-Debian-Pr-Message: followup 1141976
X-Debian-Pr-Package: mariadb-server
X-Debian-Pr-Keywords: patch bookworm
X-Debian-Pr-Source: mariadb, mariadb-10.0, mariadb-10.1, mariadb-10.3, mariadb-10.4, mariadb-10.5, mariadb-10.6, mariadb-5.5
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: pt-PT, en-US
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Greylist: delayed 328 seconds by postgrey-1.37 at buxtehude; Mon, 19 Oct 2026 10:10:07 UTC
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1997496
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 38
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: 1151058@bugs.debian.org, Vincent.Mcintyre@csiro.au,
 1141976@bugs.debian.org
X-Original-Date: Mon, 19 Oct 2026 11:04:25 +0100
X-Original-Message-ID: <94080082-490c-4bd0-b915-65240240890e@inov.pt>
X-Original-References: <179215968622.10481.1319277707159337750.reportbug@ip-pbx2.is.inesc.pt> <CAOU6tABDBXuz3dtpMf-cd+TktvEd4wCaKfOZyMDBgsqY5sTfCQ@mail.gmail.com> <178391848335.313560.1675764985608577754.reportbug@kei1.svenhartge.de> <CAOU6tABDBXuz3dtpMf-cd+TktvEd4wCaKfOZyMDBgsqY5sTfCQ@mail.gmail.com>