- Package:
- mariadb-server
- Source:
- mariadb-server
- Description:
- MariaDB database server binaries
- Submitter:
- Thomas Goirand
- Date:
- 2024-11-28 17:39:03 UTC
- Severity:
- normal
- Tags:
Hi, As per $subject, I had to mkdir -p /var/log/mysql to make it work. This broke badly automation for me (ie: galera setup with puppet). I've set severity to important, however, as the setup of other programs may fail because of this, it probably should be RC. Cheers, Thomas Goirand (zigo)
Hi Thomas! This seems like a normal behavior to me, at least this is what the /etc/mysql/mariadb.conf.d/50-server.cnf says: | # Note: The configured log file or its directory need to be created | # and be writable by the mysql user, e.g.: | # $ sudo mkdir -m 2750 /var/log/mysql | # $ sudo chown mysql /var/log/mysql Also, I am not able to reproduce this on a fresh container: | ❯ podman run --name 1032407 --rm -d fauust/docker-systemd:debian-12 | ❯ podman exec -it 1032407 bash -c "apt-get update && apt-get install -y mariadb-server && systemctl start mariadb && systemctl status mariadb" Can you maybe point me to the steps that makes you think that there is a problem?
Hi Thomas! As Faustin wrote, the directory missing is by itself not an error. Can you please post the command you ran and the error message so we can see what tools/script tries to use this directory and what error message it outputs? The directory was removed in https://salsa.debian.org/mariadb-team/mariadb-server/-/merge_requests/27 as there has not been any known use of it for a long time.
Well, I did my setup with puppetlab's core mysql module to setup a galera cluster. That puppet module I maintain it in Debian. I did just the same way as I was doing in Bullseye, so something broke... Can we revert and have the directory pre-created by the package please ? ;) Cheers, Thomas Goirand (zigo)
We can consider it but we would need some evidence of what is broken exactly to justify reverting https://salsa.debian.org/mariadb-team/mariadb-server/-/merge_requests/27 by MichaIng
The Puppet module requires an update: https://github.com/search?q=repo%3Apuppetlabs%2Fpuppetlabs-mysql%20%2Fvar%2Flog&type=code One option would be to make it create and chown the directory by itself, if plain text logs are for some reason needed/wanted. The probably cleaner option would be if it did not touch the log file option at all (same for PID file) to use the package/server defaults, which are to log to STDOUT => systemd journal since Bullseye. Best regards, Micha
Hi! Are you doing an update in Puppet for this? So far we have only one report about this from one user (albeit the Debian maintainer of an important package) so I don't feel confident in reverting https://salsa.debian.org/mariadb-team/mariadb-server/-/merge_requests/27 just yet.
Who do you mean? Should be reported here by OP who faced the issue: https://github.com/puppetlabs/puppetlabs-mysql/issues Only the Puppet MySQL module developers will know whether they need plain text logging for some specific reason and how to hence address this best. Bookworm (and hence this change) is in "testing" now, in hard freeze stage of the upcoming Debian release. So a pretty perfect time for testing and reporting issues as of changes like this to software developers to update their software. And optionally to make it more compatible in the same turn by not relying on the existence of explicitly configured directories ;).
After hitting this bug when upgrading a MariaDB server to bookworm, I submitted a bug report upstream: https://github.com/puppetlabs/puppetlabs-mysql/issues/1566