- v3.5.2 → v3.5.2
- v3.6.0.beta2 → v3.6.0.beta2
이 스레드 덕분에 여기까지 왔습니다: Upgrade failed. Database stopped. (multisite install)
현재 데이터베이스 접근 문제가 있습니다:
2025-11-02 17:13:51.212 UTC [1975] postgres@c_discourse LOG: provided user name (postgres) and authenticated user name (discourse) do not match
2025-11-02 17:13:51.212 UTC [1975] postgres@c_discourse FATAL: Peer authentication failed for user "postgres"
2025-11-02 17:13:51.212 UTC [1975] postgres@c_discourse DETAIL: Connection matched pg_hba.conf line 89: "local all postgres
peer"
postgres=# \l
List of databases
Name | Owner | Encoding | Locale Provider | Collate | Ctype | ICU Locale | ICU Rules | Access privileges
-------------±---------±---------±----------------±------------±------------±-----------±----------±-----------------------
b_discourse | postgres | UTF8 | libc | en_US.UTF-8 | en_US.UTF-8 | | | =Tc/postgres +
| | | | | | | | postgres=CTc/postgres +
| | | | | | | | discourse=CTc/postgres
c_discourse | postgres | UTF8 | libc | en_US.UTF-8 | en_US.UTF-8 | | | =Tc/postgres +
| | | | | | | | postgres=CTc/postgres +
| | | | | | | | discourse=CTc/postgres
discourse | postgres | UTF8 | libc | en_US.UTF-8 | en_US.UTF-8 | | | =Tc/postgres +
| | | | | | | | postgres=CTc/postgres +
| | | | | | | | discourse=CTc/postgres
postgres | postgres | UTF8 | libc | en_US.UTF-8 | en_US.UTF-8 | | |
template0 | postgres | UTF8 | libc | en_US.UTF-8 | en_US.UTF-8 | | | =c/postgres +
| | | | | | | | postgres=CTc/postgres
template1 | postgres | UTF8 | libc | en_US.UTF-8 | en_US.UTF-8 | | | =c/postgres +
| | | | | | | | postgres=CTc/postgres
(6 rows)
이 버전들 사이에 multisite.yaml 파일이 변경되었습니다.
기존 설정:
secondsite:
adapter: postgresql
database: b_discourse
pool: 25
timeout: 5000
db_id: 2
host_names:
- ``forum.domain.com
새 설정:
mlp:
adapter: postgresql
database: discourse_mlp
username: discourse_mlp
password: applejack
host: dbhost
pool: 5
timeout: 5000
host_names:
- discourse.nudderdomain.com
- discourse.nudderdomain.internal
멀티사이트 설정 시 필수 항목이 아니었고, 기존 템플릿에도 언급되어 있지 않아 멀티사이트용 비밀번호나 사용자를 설정한 적이 없습니다.
처음에는 multisite.yml에 나열된 두 사이트의 권한 문제로 인해 업그레이드를 진행할 수 없었습니다. multisite.yml의 사용자를 postgres로 추가해도 마이그레이션이 작동하지 않았습니다. 이제 보니 discourse 사용자를 시도해 봐야 했을 수도 있겠네요?
소유자를 discourse로만 변경하면 해결될까요? 현재 설정과 일치시키기 위해 멀티사이트에 사용자와 비밀번호를 추가해야 하나요?
여기서 가장 좋은 장기적인 해결책은 무엇일까요?
