[debian-mysql] Bug#879728: Bug#879728: mysqld fails to start not finding messagefile when started by systemd

Ondřej Surý ondrej at sury.org
Sun Nov 12 11:01:55 UTC 2017


Control: severity -1 important

Please CC the bug next time, so the conversation gets archived (I just
removed the link to your configuration files).

Any chance you have enabled AppArmor on those affected machines?

I am also downgrading the severity of the bug to important as it seems
it affects only specific machines / configurations.

O.
-- 
Ondřej Surý <ondrej at sury.org>

On Wed, Oct 25, 2017, at 14:23, Thomas DEBESSE wrote:
> 2017-10-25 13:03 GMT+02:00 Ondřej Surý <ondrej at sury.org>:
> > Can you reproduce this on a clean system?
> 
> I have not tested on clean systems but I have some other servers that
> do not suffer from the bug so it's known the bug does not occur in all
> case.
> 
> > And if no, do you remember
> > what configuration changes did you do to the mariadb? Or if you can
> > share the configuration (offline or online) that can be used to
> > reproduce the issue?
> 
> This is the configuration I use:
> [...]
> 
> It includes:
> 
> - /root/.my.cnf
> - /etc/default/mysql
> - /etc/mysql/*
> - /lib/systemd/system/mariadb*
> 
> I only edited `/root/.my.cnf` and `/etc/mysql/debian.cnf` to hide the
> passwords.
> 
> The only custom configurations are
> 
> ```
> /root/.my.cnf
> /etc/mysql/conf.d/mysqld_tuning.cnf
> /etc/mysql/conf.d/mysqld_tmpfs.cnf
> /etc/mysql/mariadb.conf.d/mysqld_bind_address.cnf
> ```
> 
> Note that on september last year the three custom files in
> `/etc/mysql/` were not there and the bug was already there.
> 
> But other servers that work use the exact same options in exact same
> files.
> Because of that it looks like this is not enough to reproduce the
> issue and I'm afraid it will not be enough to be useful…
> 
> Do you have any idea about where the bug can reside if it's not in
> these config files?
> 
> -- 
> Thomas Debesse
> 
> >
> > Ondrej
> > --
> > Ondřej Surý <ondrej at sury.org>
> >
> > On Wed, Oct 25, 2017, at 08:33, Thomas DEBESSE wrote:
> >> Package: mariadb-server-10.1
> >> Version: 10.1.26-0+deb9u1
> >> Severity: grave
> >>
> >> Hi, I just upgraded my server from jessie to stretch and I face a bug
> >> I already reported 13 month ago as bug #837166 but unfortunately this
> >> bug was closed when the related package (mysql-server-5.6) was removed
> >> from archive. But the bug is still present in mariadb-server-10.1
> >> shiped within stretch repository (no backport).
> >>
> >> What is expected: “systemctl start mariadb” starts mariadb server.
> >>
> >> What is happening: mariadb server shutdowns at startup printing
> >> “[ERROR] Can't find messagefile '/usr/share/mysql/errmsg.sys'” error
> >> message.
> >>
> >> Another interesting fact: starting “/usr/sbin/mysqld” from command
> >> line in an interactive shell leads to a working mysql server, but the
> >> exact same command started by systemd leads to a instantaneous
> >> shutdown with error reporting as stated.
> >>
> >> Output of “systemctl status mariadb.service” command:
> >>
> >> oct. 25 06:49:35 machine mysqld[4868]: 2017-10-25  4:49:35
> >> 140131405656640 [Note] /usr/sbin/mysqld (mysqld
> >> 10.1.26-MariaDB-0+deb9u1) starting as process 4868 ...
> >> oct. 25 06:49:35 machine mysqld[4868]: 2017-10-25  4:49:35
> >> 140131405656640 [ERROR] Can't find messagefile
> >> '/usr/share/mysql/errmsg.sys'
> >>
> >> For rerefence, the initial bug report (now closed and archived) with
> >> some detailed explanations:
> >> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=837166
> >>
> >> I set the severity of this bug to “grave” since this bug makes
> >> the package unusable.
> >>
> >> The package mariadb-server-10.1=10.1.26-0+deb9u1 is unusable since the
> >> service is not startable.
> >>
> >> The mysql-server-5.5=5.5.58-0+deb8u1 package from jessie is known to
> >> not be affected by the bug.
> >>
> >> A prior occurrence to this bug was reported on
> >> mysql-server-5.6=5.6.30-1~bpo8+1 at the date of 2016-09-09.
> >>
> >> The mariadb-server-10.1=10.1.26-0+deb9u1 package is known to still be
> >> affected by the bug at the date of 2017-10-25.
> >>
> >> Previous bug report #837166 says the bug was fixed in version
> >> 5.6.35-1+rm, but it's now verified the bug is still there in lately
> >> versions.
> >>
> >> --
> >> Thomas Debesse
> >>
> >> _______________________________________________
> >> pkg-mysql-maint mailing list
> >> pkg-mysql-maint at lists.alioth.debian.org
> >> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-mysql-maint



More information about the pkg-mysql-maint mailing list