Instalação nova: o diretório de dados "/shared/postgres_data" possui propriedade incorreta

Olá,
Em uma instalação nova (padrão), obtemos estes logs:

2024-10-08 13:55:06.819 UTC [37] FATAL:  data directory "/shared/postgres_data" has wrong ownership
2024-10-08 13:55:06.819 UTC [37] HINT:  The server must be started by the user that owns the data directory.
I, [2024-10-08T13:55:11.815631 #1]  INFO -- : > /usr/local/bin/create_db
createdb: error: could not connect to database template1: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory
	Is the server running locally and accepting connections on that socket?

Não encontrei nenhuma informação sobre isso além da atualização do PostgreSQL em uma instalação existente.

Então você executou discourse-setup e, quando ele fez a reconstrução inicial, você obteve esse erro?

E se você executar rm -rf /var/discourse/shared (o que excluirá todos os dados, então não faça isso se você tiver algum dado que não queira perder!) e, em seguida, executar ./launcher rebuild app

1 curtida