-
Notifications
You must be signed in to change notification settings - Fork 23.5k
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
Redis sentinel 6.0.9 in docker: Could not create tmp config file (Permission denied) #8172
Comments
@bonikforever can you please add more details? |
@oranagra thank for you question!
I used image from docker hub with simple config:
And error raised when sentinel tries to update confg. I couldn't say anything about C code but this error happens only in 6.0.9. In 6.0.8 and earlier it doesn't. Command to run:
|
The provided example may be misleading and will not work in certain scenarios, where Redis attempts to create additional configuration files or rewrite existing ones. See redis/redis#8172.
Hi @bonikforever, thanks for reporting this. This is a result of a bugfix that introduced a regression when the directory where the configuration file resides cannot be written to (which is more or less the case with a single file bindmount). You can work around this easily by bind mounting the entire directory. For example:
|
The provided example may be misleading and will not work in certain scenarios, where Redis attempts to create additional configuration files or rewrite existing ones. See redis/redis#8172.
@yossigo you right, directory with config must be writable. |
I have just encountered the same problem. The error report in the log is the same. Thank you for your answer and solved my problem. @yossigo |
Running sentinel in docker 19.03.13.
On all available 6.0.x versions I got this error when sentinel tries to create new config. And sentinel works fine with 5.x.
The text was updated successfully, but these errors were encountered: