Installazione fresca: la directory dei dati "/shared/postgres_data" ha proprietà sbagliate

Ciao,
Su un’installazione standard e appena creata, otteniamo questi log:

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?

Non ho trovato informazioni a riguardo se non l’aggiornamento di PostgreSQL su un’installazione esistente.

Quindi hai eseguito discourse-setup e quando ha fatto la ricostruzione iniziale hai ottenuto quell’errore?

Che ne dici di rm -rf /var/discourse/shared (che cancellerà tutti i dati, quindi non farlo se hai dati che non vuoi perdere!) e poi fare un ./launcher rebuild app

1 Mi Piace