<div dir="ltr"><div>Note: the faulty package was not MariaDB but was likely to be<br> another Debian package because this server did not use<br>third-party software or software from non-Debian repositories.<br>I have seen the issue on more servers at the time, all of them<br>running Debian without third-party stuff. The other affected Debian<br> servers did not run MariaDB so this was less blocking.<br></div></div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 21 sept. 2020 à 22:25, Thomas DEBESSE <<a href="mailto:debian@illwieckz.net">debian@illwieckz.net</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The failure of MariaDB came from a permission set by another process<br>
on a shared parent dir of that file.<br>
Then, this was the side effect of another software from another<br>
package I did not figure.<br>
Basically another software from another package removed some read<br>
permission to “other” (or something like that) to some directory that<br>
sits between / root directory and this file, maybe /usr/share or<br>
something like that.<br>
This permission change did not only affect MariaDB but also other<br>
softwares, some simple “sudo <specific command>” would have been able<br>
to reproduce the bug.<br>
<br>
The root cause, the package modifying some permission of some shared<br>
parent dir to make it less permissive than Debian default, was not<br>
found.<br>
As a workaround I've set a cron task restoring the default Debian<br>
folder permission every time.<br>
I don't work anymore for the ones running the affected server so I<br>
lost access to the faulty environment and cannot track down the faulty<br>
package anymore.<br>
<br>
<br>
Le lun. 21 sept. 2020 à 21:57, Debian Bug Tracking System<br>
<<a href="mailto:owner@bugs.debian.org" target="_blank">owner@bugs.debian.org</a>> a écrit :<br>
><br>
> This is an automatic notification regarding your Bug report<br>
> which was filed against the mariadb-server-10.1 package:<br>
><br>
> #879728: mysqld fails to start not finding messagefile when started by systemd<br>
><br>
> It has been closed by Otto Kekäläinen <<a href="mailto:otto@debian.org" target="_blank">otto@debian.org</a>>.<br>
><br>
> Their explanation is attached below along with your original report.<br>
> If this explanation is unsatisfactory and you have not received a<br>
> better one in a separate message then please contact Otto Kekäläinen <<a href="mailto:otto@debian.org" target="_blank">otto@debian.org</a>> by<br>
> replying to this email.<br>
><br>
><br>
> --<br>
> 879728: <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=879728" rel="noreferrer" target="_blank">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=879728</a><br>
> Debian Bug Tracking System<br>
> Contact <a href="mailto:owner@bugs.debian.org" target="_blank">owner@bugs.debian.org</a> with problems<br>
><br>
><br>
><br>
> ---------- Forwarded message ----------<br>
> From: "Otto Kekäläinen" <<a href="mailto:otto@debian.org" target="_blank">otto@debian.org</a>><br>
> To: <a href="mailto:879728-done@bugs.debian.org" target="_blank">879728-done@bugs.debian.org</a><br>
> Cc:<br>
> Bcc:<br>
> Date: Mon, 21 Sep 2020 22:49:19 +0300<br>
> Subject: Re: [debian-mysql] Bug#879728: mysqld fails to start not finding messagefile when started by systemd<br>
> Control: tags -1 wontfix<br>
><br>
> There was no further information provides, so closing this as 'wontfix'.<br>
><br>
><br>
> ---------- Forwarded message ----------<br>
> From: Thomas DEBESSE <<a href="mailto:debian@illwieckz.net" target="_blank">debian@illwieckz.net</a>><br>
> To: <a href="mailto:submit@bugs.debian.org" target="_blank">submit@bugs.debian.org</a><br>
> Cc:<br>
> Bcc:<br>
> Date: Wed, 25 Oct 2017 08:33:48 +0200<br>
> Subject: mysqld fails to start not finding messagefile when started by systemd<br>
> Package: mariadb-server-10.1<br>
> Version: 10.1.26-0+deb9u1<br>
> Severity: grave<br>
><br>
> Hi, I just upgraded my server from jessie to stretch and I face a bug<br>
> I already reported 13 month ago as bug #837166 but unfortunately this<br>
> bug was closed when the related package (mysql-server-5.6) was removed<br>
> from archive. But the bug is still present in mariadb-server-10.1<br>
> shiped within stretch repository (no backport).<br>
><br>
> What is expected: “systemctl start mariadb” starts mariadb server.<br>
><br>
> What is happening: mariadb server shutdowns at startup printing<br>
> “[ERROR] Can't find messagefile '/usr/share/mysql/errmsg.sys'” error<br>
> message.<br>
><br>
> Another interesting fact: starting “/usr/sbin/mysqld” from command<br>
> line in an interactive shell leads to a working mysql server, but the<br>
> exact same command started by systemd leads to a instantaneous<br>
> shutdown with error reporting as stated.<br>
><br>
> Output of “systemctl status mariadb.service” command:<br>
><br>
> oct. 25 06:49:35 machine mysqld[4868]: 2017-10-25  4:49:35<br>
> 140131405656640 [Note] /usr/sbin/mysqld (mysqld<br>
> 10.1.26-MariaDB-0+deb9u1) starting as process 4868 ...<br>
> oct. 25 06:49:35 machine mysqld[4868]: 2017-10-25  4:49:35<br>
> 140131405656640 [ERROR] Can't find messagefile<br>
> '/usr/share/mysql/errmsg.sys'<br>
><br>
> For rerefence, the initial bug report (now closed and archived) with<br>
> some detailed explanations:<br>
> <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=837166" rel="noreferrer" target="_blank">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=837166</a><br>
><br>
> I set the severity of this bug to “grave” since this bug makes<br>
> the package unusable.<br>
><br>
> The package mariadb-server-10.1=10.1.26-0+deb9u1 is unusable since the<br>
> service is not startable.<br>
><br>
> The mysql-server-5.5=5.5.58-0+deb8u1 package from jessie is known to<br>
> not be affected by the bug.<br>
><br>
> A prior occurrence to this bug was reported on<br>
> mysql-server-5.6=5.6.30-1~bpo8+1 at the date of 2016-09-09.<br>
><br>
> The mariadb-server-10.1=10.1.26-0+deb9u1 package is known to still be<br>
> affected by the bug at the date of 2017-10-25.<br>
><br>
> Previous bug report #837166 says the bug was fixed in version<br>
> 5.6.35-1+rm, but it's now verified the bug is still there in lately<br>
> versions.<br>
><br>
> --<br>
> Thomas Debesse<br>
<br>
<br>
<br>
-- <br>
Thomas DEBESSE<br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Thomas DEBESSE</div></div>