mkdir: cannot create directory '/bitnami/<chart>/data': Permission denied #22523
Labels
mariadb
solved
stale
15 days without activity
tech-issues
The user has a technical issue about an application
triage
Triage is needed
Name and Version
bitnami/mariadb
What architecture are you using?
amd64
What steps will reproduce the bug?
Attempting to install MariaDB using Helm on a K8s cluster.
Successful installation using the provided Helm command.
I had created a Persistent Volume (PV) using the manifest file below:
kubectl apply -f pv.yml
helm install my-mariadb bitnami/mariadb -n my-mariadb
MariaDB pod fails to come up healthy due to volume permissions issue.
What values I need to change to fix this permission issue.
Attempted to set volume permissions with Helm install command:
helm install my-mariadb bitnami/mariadb --set volumePermissions.enabled=true -n my-mariadb
However, the init container for changing permissions fails.
kubectl get pods -n my-mariadb NAME READY STATUS RESTARTS AGE my-mariadb-0 0/1 Init:CrashLoopBackOff 7 (2m54s ago) 14m kubectl logs my-mariadb-0 -c volume-permissions --namespace my-mariadb chown: changing ownership of '/bitnami/mariadb': Operation not permitted
Are you using any custom parameters or values?
I followed the documentation -
https://docs.bitnami.com/kubernetes/faq/troubleshooting/troubleshooting-helm-chart-issues/
--set volumePermissions.enabled=true
What is the expected behavior?
No response
What do you see instead?
MariaDB pod fails to initialize due to permission issues.
Additional information
No response
The text was updated successfully, but these errors were encountered: