Strange behavior with user permissions in persistent directory when using MariaDB after update #2265
Unanswered
danielffischer
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello there, I don't know if this is a bug or if we do something wrong.
We're using the kairos/ubuntu:22.04-core-amd64-generic-v2.4.3 release for building our image.
In addition we use a dockerfile installing mariadb as a database:
having a /etc/mysql/mariadb.conf.d/50-server.cnf file where the data directory is set to /usr/local/mysql within the persistent directory so the database entries will be persistent and still be there after restart. The user of this directory is mysql mysql.
Everything is working as intended.
Now if we update to a newer Kairos Version (kairos/ubuntu:22.04-core-amd64-generic-v2.5.0) we're having a strange behavior, the user permissions in this directory (/usr/local/mysql only) are granted for a whole other user (statd _lldpd). This will prevent the database from accessing the database.
Is there anything explaining this behavior? Right now we're using a workaround doing chown at database-service start so we ensure the permissions are set right.
Beta Was this translation helpful? Give feedback.
All reactions