[debian-mysql] Bug#1010846: Fwd: Re: Bug#1010846: mariadb-common: Removes directory /etc/mysql/mariadb.conf.d during uninstall preventing mysql server from starting

Faustin Lammler faustin at fala.red
Thu Jun 9 15:38:26 BST 2022


Hi Nick!

Nick DeYarman <1nick1 at gmail.com>,
23/05/2022 – 10:30:37 (-0700):

> Yes, those steps then `systemctl stop mysql` and `systemctl start
> msyql` (or restart the machine).
>
> I just tried with a fresh cloud instance (google cloud compute
> instance).  The first time the issue did **not** reproduce. But I
> tried a second time and the same issue reproduced (with the
> mariadb.conf.d folder getting deleted). Second time was with
> `systemctl stop mysql` and `systemctl start mysql` while the first was
> just `systemctl restart mysql`.

I can still not reproduce this.

Could you paste here exact steps and commands (can you also provide as
much info as you can about the instance you are running, maybe the
output of `dpkg -l`, in order to understand what packages are
installed).

Here are my test in podman containers:
| $ podman run --name sys-test --rm -d fauust/docker-systemd:debian-11
| $ podman exec -it sys-test bash
| root at c0f7ab73450a:/# apt update && apt install -y mariadb-server && apt install -y mailutils
| ...
| root at c0f7ab73450a:/# dpkg -l | grep mariadb-common
| ii  mariadb-common             1:10.5.15-0+deb11u1          all          MariaDB common configuration files
| root at c0f7ab73450a:/# systemctl start mariadb
| root at c0f7ab73450a:/# ps fax | grep mariadb
|     PID TTY      STAT   TIME COMMAND
|    4355 ?        Ssl    0:00 /usr/sbin/mariadbd
| root at c0f7ab73450a:/# apt remove -y mailutils && apt autoremove -y
| Reading package lists... Done
| Building dependency tree... Done
| Reading state information... Done
| The following packages were automatically installed and are no longer required:
|   exim4-base exim4-config exim4-daemon-light gsasl-common guile-2.2-libs libevent-2.1-7 libexpat1 libfribidi0 libgc1 libgnutls-dane0
|   libgsasl7 libidn11 libldap-2.4-2 libldap-common libltdl7 libmailutils7 libmpdec3 libntlm0 libpython3.9 libpython3.9-minimal
|   libpython3.9-stdlib libsasl2-2 libsasl2-modules libsasl2-modules-db libsqlite3-0 libunbound8 mailutils-common media-types
| Use 'apt autoremove' to remove them.
| The following packages will be REMOVED:
|   mailutils
| 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
| After this operation, 1000 kB disk space will be freed.
| ...
| root at f77cd74ff7e0:/# dpkg -l | grep mariadb-common
| ii  mariadb-common             1:10.5.15-0+deb11u1          all          MariaDB common configuration files
| root at c0f7ab73450a:/# ps fax | grep mariadb
|     PID TTY      STAT   TIME COMMAND
|    4355 ?        Ssl    0:00 /usr/sbin/mariadbd
| root at f77cd74ff7e0:/# systemctl restart mariadb && ps fax | grep mariadb
|    4651 pts/0    S+     0:00  \_ grep mariadb
|    4627 ?        Ssl    0:00 /usr/sbin/mariadbd

Also, please remember to always include 1010846 at bugs.debian.org as
recipient in your response (Cc: or To:) so that
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1010846 gets updated.

--
Faustin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-mysql-maint/attachments/20220609/634eff2d/attachment.sig>


More information about the pkg-mysql-maint mailing list