'/var/lib/mysql/pxc-entrypoint.sh': Permission denied Error

hi, i have this problem on k8s 1.22.2 on ovh.

i deployed helm and kubectl 1.9.0

i’m setting fsgroup 1001 and runasuser 1001.

kubectl get pod
NAME READY STATUS RESTARTS AGE
cluster1-haproxy-0 1/2 Running 0 17s
cluster1-pxc-0 0/3 Init:CrashLoopBackOff 1 (6s ago) 18s
percona-xtradb-cluster-operator-5bdd76bc45-sk45m 1/1 Running 0 49s

kubectl logs -f cluster1-pxc-0 pxc-init

++ id -u

++ id -g

  • install -o 1001 -g 1001 -m 0755 -D /pxc-entrypoint.sh /var/lib/mysql/pxc-entrypoint.sh

install: cannot create regular file ‘/var/lib/mysql/pxc-entrypoint.sh’: Permission denied

1 Like

Hello @nikdom ,

please check the same topic here: Update status error - #10 by Laimis

It seems that the storage you use needs some permissions to be set.