You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.
Hi
I'm having issues with database-0 pod when bootstrapping the whole environment.
I was unable to find any relevant information yet and maybe I'm missing some initial env setup?
I'm runing k8s 1.20.1 on ubuntu.
k logs database-0 database -n kubecf
Removing pending files in /var/lib/mysql, because sentinel was not reached
Running --initialize-insecure on /var/lib/mysql
total 8.0K
drwxrwxrwx 2 65534 65534 4.0K Jan 11 08:22 .
drwxr-xr-x 1 root root 4.0K Aug 19 17:45 ..
2021-01-11T08:23:03.543324Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2021-01-11T08:23:03.546531Z 0 [Warning] WSREP: Node is running in bootstrap/initialize mode. Disabling pxc_strict_mode checks
2021-01-11T08:23:03.566633Z 0 [ERROR] **Can't change data directory owner to mysql**
2021-01-11T08:23:03.566664Z 0 [ERROR] Aborting
PV is a NFS share (RW permissions confirmed) - this is just a lab setup.
Here I found this so called bug for mysql: https://bugs.mysql.com/bug.php?id=78591
but the conclussion is that the issue is more related to apparmour config since mysql has been fixed for this issue:
[4 May 2016 8:40] Lars Tangvald
The cause was that mysqld would attempt to set ownership on an empty datadir whether or not it was already correct, and the server's apparmor profile will not allow this operation.
So this will still fail if the permissions are incorrect on systems with apparmor running, but this is by design.
I did a test on minikube windows and no issue like above for this pod:
c:\bin>kubectl logs database-0 database -n kubecf
Removing pending files in /var/lib/mysql, because sentinel was not reached
Running --initialize-insecure on /var/lib/mysql
total 8.0K
drwxrwxrwx 2 root root 4.0K Jan 13 12:57 .
drwxr-xr-x 1 root root 4.0K Aug 19 17:45 ..
Finished --initialize-insecure
MySQL init process in progress...
There were fatal errors during processing of zoneinfo directory
MySQL init process done. Ready for start up.
Maybe there are some storage requirements I have to fulfill, I'm using NFS share and 2 PVs created based on PVC existing in the system.
The text was updated successfully, but these errors were encountered:
Hi
I'm having issues with database-0 pod when bootstrapping the whole environment.
I was unable to find any relevant information yet and maybe I'm missing some initial env setup?
I'm runing k8s 1.20.1 on ubuntu.
container logs:
PV is a NFS share (RW permissions confirmed) - this is just a lab setup.
Here I found this so called bug for mysql:
https://bugs.mysql.com/bug.php?id=78591
but the conclussion is that the issue is more related to apparmour config since mysql has been fixed for this issue:
I did a test on minikube windows and no issue like above for this pod:
Maybe there are some storage requirements I have to fulfill, I'm using NFS share and 2 PVs created based on PVC existing in the system.
The text was updated successfully, but these errors were encountered: