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

Can't open /node-conf/nodes.conf in order to acquire a lock: Permission denied #1117

Open
leeworker opened this issue Oct 30, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@leeworker
Copy link

Using the given Redis cluster case, it was found that if the same POD is deleted multiple times, the POD cannot be pulled up. Upon checking the logs, it was found that there is an error message indicating lack of permission.

Defaulted container "rediscluster-global-test-leader" out of: rediscluster-global-test-leader, redis-exporter
sed: /node-conf/nodes.conf: No such file or directory
Running without TLS mode
ACL_MODE is not true, skipping ACL file modification
Starting redis service in cluster mode.....
1:C 30 Oct 2024 09:43:28.513 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
1:C 30 Oct 2024 09:43:28.513 # Redis version=7.0.15, bits=64, commit=00000000, modified=0, pid=1, just started
1:C 30 Oct 2024 09:43:28.513 # Configuration loaded
1:M 30 Oct 2024 09:43:28.514 * monotonic clock: POSIX clock_gettime
1:M 30 Oct 2024 09:43:28.514 # Can't open /node-conf/nodes.conf in order to acquire a lock: Permission denied

@leeworker leeworker added the bug Something isn't working label Oct 30, 2024
@LuizDMM
Copy link

LuizDMM commented Oct 31, 2024

Hey @leeworker. I was facing the same problem as you, debugging my problem here (I'm not a developer in this project and it was my first time running the operator), I found out the problem for me was because of the versions of the images I was using. When I ran with these images: kubernetesConfig.image: quay.io/opstree/redis:v7.0.15 and redisExporter.image: quay.io/opstree/redis-exporter:v1.48.0 it just worked. Maybe it has something to do with the versions of the images you're using, just sharing to help anyone else having this problem.

@obitoquilt
Copy link

You can try to add these config

spec:
  podSecurityContext:
    fsGroup: 1000
    runAsUser: 1000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants