Bug 47458 - redis-sentinel не имеет прав на запись конфигурационного файла
Summary: redis-sentinel не имеет прав на запись конфигурационного файла
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: redis (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Alexey Shabalin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-04 15:40 MSK by Alexander Makeenkov
Modified: 2023-09-04 22:03 MSK (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)