Bug 47458

Summary: redis-sentinel не имеет прав на запись конфигурационного файла
Product: Sisyphus Reporter: Alexander Makeenkov <amakeenk>
Component: redisAssignee: Alexey Shabalin <shaba>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: gns, lav, naf
Version: unstable   
Hardware: x86_64   
OS: Linux   

Description Alexander Makeenkov 2023-09-04 15:40:24 MSK
Версия пакета:
redis-7.2.0-alt2.x86_64

Процесс redis-sentinel не может записать конфигурацию, потому что нет прав на запись в папку /etc/redis для пользователя _redis:
# stat /etc/redis
  Файл: /etc/redis
  Размер: 4096          Блоков: 8          Блок В/В: 4096   каталог
Device: 8,2     Inode: 841754      Links: 2
Доступ: (0750/drwxr-x---)  Uid: (    0/    root)   Gid: (  438/  _redis)

В логах /var/log/redis/redis-sentinel.log постоянно пишутся ошибки:

# Could not create tmp config file (Permission denied)
# WARNING: Sentinel was not able to save the new configuration on disk!!!: Permission denied

Решение (как один из вариантов):
# chmod g+w /etc/redis
Comment 1 Repository Robot 2023-09-04 22:03:24 MSK
redis-7.2.0-alt3 -> sisyphus:

 Mon Sep 04 2023 Alexey Shabalin <shaba@altlinux> 7.2.0-alt3
 - Allow write group to /etc/redis for fix redis-sentinel service (ALT#47458)