- v3.5.2 → v3.5.2
- v3.6.0.beta2 → v3.6.0.beta2
Dieser Thread hat mich zu diesem Punkt gebracht: Upgrade failed. Database stopped. (multisite install)
Ich habe jetzt Probleme mit dem Datenbankzugriff:
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)
Die multisite.yaml hat sich zwischen diesen Versionen geändert.
Original:
secondsite:
adapter: postgresql
database: b_discourse
pool: 25
timeout: 5000
db_id: 2
host_names:
- ``forum.domain.com
Neu:
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
Ich habe nie Passwörter oder Benutzer für Multisite festgelegt, da dies nicht erforderlich war oder in der ursprünglichen Vorlage aufgeführt war, als ich sie eingerichtet habe.
Anfänglich konnte ich kein Upgrade durchführen, da die Multisite aufgrund von Berechtigungen für die beiden in multisite.yml aufgeführten Sites fehlgeschlagen ist. Das Hinzufügen von Postgres als Benutzer zu multisite.yml hat für die Migration nicht funktioniert. Jetzt sehe ich, dass ich vielleicht hätte versuchen sollen, Discourse zu verwenden?
Wird die einfache Änderung des Besitzers zu Discourse es beheben? Muss ich Benutzer und Passwörter für die Multisite hinzufügen, damit sie mit der aktuellen übereinstimmen?
Was ist die beste LANGFRISTIGE LÖSUNG hier.
