Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chown Operation not permitted #136

Open
xgengsjc2021 opened this issue Jun 10, 2022 · 0 comments
Open

Chown Operation not permitted #136

xgengsjc2021 opened this issue Jun 10, 2022 · 0 comments

Comments

@xgengsjc2021
Copy link

Before you file an issue here, please keep in mind that your issue may be not related to the image itself. Please make sure that it is, otherwise report the issue upstream.

I am using this official image to build zookeeper cluster but failed with some permission issue.

image: "docker.io/zookeeper:3.8.0"
+ chown -Rv zookeeper /var/lib/zookeeper/data /var/lib/zookeeper/datalog /logs /conf
chown: changing ownership of '/var/lib/zookeeper/data/myid': Operation not permitted
chown: changing ownership of '/var/lib/zookeeper/data': Operation not permitted
failed to change ownership of '/var/lib/zookeeper/data/myid' from 1017 to zookeeper
failed to change ownership of '/var/lib/zookeeper/data' from 1017 to zookeeper
chown: changing ownership of '/var/lib/zookeeper/datalog': Operation not permitted
failed to change ownership of '/var/lib/zookeeper/datalog' from 1017 to zookeeper

Expected behavior

All 3 replicas of zookeeper pods should be up and running

Actual behavior

All 3 pods are CrashLoopBackOff and keep restart

NAME          READY   STATUS             RESTARTS         AGE
zookeeper-0   0/1     CrashLoopBackOff   19 (3m43s ago)   75m
zookeeper-1   0/1     CrashLoopBackOff   19 (3m28s ago)   75m
zookeeper-2   0/1     CrashLoopBackOff   6 (3m33s ago)    9m16s

Steps to reproduce the behavior

I followed up this https://github.com/Altinity/clickhouse-operator/blob/master/deploy/zookeeper/advanced/05-stateful-set-persistent-volume.yaml
just applied this yaml file in my AWS EKS cluster. From this yaml file, you can see, they added a series of commands during the container installation. One of them is,

chown -Rv zookeeper "$ZOO_DATA_DIR" "$ZOO_DATA_LOG_DIR" "$ZOO_LOG_DIR" "$ZOO_CONF_DIR" &&
zkServer.sh start-foreground

Details of commands, can be found in the link above.

System configuration

Please include as much relevant information as possible.

AWS EKS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@xgengsjc2021 and others