Tenho um site que está funcionando muito bem há mais de 18 meses.
Notei que ele estava rodando no Debian Buster, então fiz o upgrade para Bullseye e para o Discourse 3.1.0.beta3.
Desde então, percebi que o site fica fora do ar todas as manhãs e tenho tentado diagnosticar o motivo. Estou recebendo muitos erros estranhos nos logs:
./launcher logs app mostra muitos:
svlogd: warning: unable to lock directory: /var/log/postgres: temporary failure
svlogd: fatal: no functional log directories.
svlogd: warning: unable to lock directory: /var/log/redis: temporary failure
svlogd: fatal: no functional log directories.
Em /var/log/postgres/current vejo:
2023-04-10 10:48:23.733 GMT [6918] LOG: skipping missing configuration file "/shared/postgres_data/postgresql.auto.conf"
2023-04-10 10:48:23.734 UTC [6918] FATAL: data directory "/shared/postgres_data" has wrong ownership
2023-04-10 10:48:23.734 UTC [6918] HINT: The server must be started by the user that owns the data directory.
E em /var/log/redis/current:
3787:M 10 Apr 2023 10:49:09.043 * 100 changes in 300 seconds. Saving...
3787:M 10 Apr 2023 10:49:09.044 * Background saving started by pid 7014
7014:C 10 Apr 2023 10:49:09.045 # Failed opening the RDB file dump.rdb (in server root dir /shared/redis_data) for saving: Permission denied
3787:M 10 Apr 2023 10:49:09.144 # Background saving error
O proprietário de /shared/postgres_data é postgres:postgres e de redis_data é redis:redis.
Já tentei ./launcher rebuild app várias vezes.
Por favor, ajude!
Obrigado,
Phil