createdb: 오류: 데이터베이스 생성 실패: 오류: 데이터베이스 "discourse"가 이미 존재합니다

답장 감사합니다, jay

로그 전체에서 오류 줄을 검색해 봤는데, 아마도 아래 내용 때문에 생긴 것 같습니다.

2023-06-08 01:19:04.972 UTC [55] postgres@template1 ERROR:  database "discourse" already exists
2023-06-08 01:19:04.972 UTC [55] postgres@template1 STATEMENT:  CREATE DATABASE discourse;
createdb: error: database creation failed: ERROR:  database "discourse" already exists
I, [2023-06-08T01:19:04.977485 #1]  INFO -- : 
I, [2023-06-08T01:19:04.978414 #1]  INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
2023-06-08 01:19:05.654 UTC [59] postgres@discourse ERROR:  role "discourse" already exists
2023-06-08 01:19:05.654 UTC [59] postgres@discourse STATEMENT:  create user discourse;
ERROR:  role "discourse" already exists

서버에서 처음 설치하는 건데, 다른 오류들(예: My server can access github, but docker can’t - #2 by whitewaterdeu) 때문에 여러 번 앱을 재빌드했습니다.

데이터베이스를 언제 생성했는지 모르겠고, 어떻게 수정해야 할지도 모르겠습니다.