Topic: Redis 6.0.9 config rewrite permission problem
Hello,
After upgrading redis package 6.0.8 to 6.0.9 from Remi's Centos 8 modular repo the config rewriting started to fail.
In 6.0.9 the CONFIG REWRITE command ends with Permission denied error for both redis and redis-sentinel.
redis.log:
# Could not create tmp config file (Permission denied)
# CONFIG REWRITE failed: Permission denied
Pull #7824 changed how config file rewriting is handled in version 6.0.9.
[pid 1344] openat(AT_FDCWD, "/etc/redis.conf.z5vREX", O_RDWR|O_CREAT|O_EXCL|O_CLOEXEC, 0600) = -1 EACCES (Permission denied)
To overcome this situation I suggest to create a /etc/redis directory which is writable by redis and move redis.conf and redis-sentinel.conf to /etc/redis.