신규 설치: 데이터 디렉터리 "/shared/postgres_data" 소유자가 잘못되었습니다

안녕하세요,
새로(기본) 설치한 환경에서 다음 로그가 표시됩니다:

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?

기존 설치 환경에서의 PostgreSQL 업그레이드 관련 정보 외에는 이 문제에 대한 정보를 찾지 못했습니다.

그러니까 discourse-setup을 실행했고, 초기 재구성이 진행될 때 그 오류가 발생했나요?

rm -rf /var/discourse/shared을 실행해 보세요(모든 데이터가 삭제되므로, 삭제하고 싶지 않은 데이터가 있다면 절대 실행하지 마세요!). 그런 다음 ./launcher rebuild app을 실행해 보세요.