- v3.5.2 → v3.5.2
- v3.6.0.beta2 → v3.6.0.beta2
Questo thread mi ha portato a questo punto: Upgrade failed. Database stopped. (multisite install)
Ora ho problemi di accesso al database:
2025-11-02 17:13:51.212 UTC [1975] postgres@c_discourse LOG: il nome utente fornito (postgres) e il nome utente autenticato (discourse) non corrispondono
2025-11-02 17:13:51.212 UTC [1975] postgres@c_discourse FATAL: l'autenticazione Peer non è riuscita per l'utente "postgres"
2025-11-02 17:13:51.212 UTC [1975] postgres@c_discourse DETAIL: La connessione corrisponde alla riga 89 di pg_hba.conf: "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)
Il multisite.yaml è cambiato tra queste versioni.
Originale:
secondsite:
adapter: postgresql
database: b_discourse
pool: 25
timeout: 5000
db_id: 2
host_names:
- ``forum.domain.com
Nuovo:
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
Non ho mai impostato password o utenti per il multisite perché non erano richiesti o elencati nel modello originale quando li ho configurati.
Inizialmente non sono riuscito ad aggiornare perché il multisite è fallito a causa dei permessi sui due siti elencati in multisite.yml. Aggiungere postgres come utente a multisite.yml non ha funzionato per la migrazione. Ora vedo che forse avrei dovuto provare discourse?
Cambiare semplicemente il proprietario in discourse lo risolverà? Devo aggiungere utenti e password per il multisite per farlo corrispondere a quello attuale?
Qual è la migliore SOLUZIONE A LUNGO TERMINE qui.
