- v3.5.2 → v3.5.2
- v3.6.0.beta2 → v3.6.0.beta2
Este hilo me llevó a este punto: Upgrade failed. Database stopped. (multisite install)
Ahora tengo problemas de acceso a la base de datos:
2025-11-02 17:13:51.212 UTC [1975] postgres@c_discourse LOG: el nombre de usuario proporcionado (postgres) y el nombre de usuario autenticado (discourse) no coinciden
2025-11-02 17:13:51.212 UTC [1975] postgres@c_discourse FATAL: Error de autenticación Peer para el usuario "postgres"
2025-11-02 17:13:51.212 UTC [1975] postgres@c_discourse DETAIL: La conexión coincide con la línea 89 de 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)
El multisite.yaml cambió entre estas versiones.
Original:
secondsite:
adapter: postgresql
database: b_discourse
pool: 25
timeout: 5000
db_id: 2
host_names:
- ``forum.domain.com
Nuevo:
mlp:
adapter: postgresql
database: discourse_mlp
username: discourse_mlp
password: applejack
host: dbhost
pool: 5
timeout: 5000
host_names:
- discourse.nudderdomain.com
- discourse.nudderinternal.internal
Nunca establecí contraseñas o usuarios para el multisitio porque no era necesario o no figuraba en la plantilla original cuando los configuré.
Inicialmente, no pude actualizar porque el multisitio falló debido a permisos en los dos sitios listados en multisite.yml. Agregar postgres como usuario a multisite.yml no funcionó para la migración. Ahora veo que tal vez debería haber intentado discourse?
¿Cambiar simplemente el propietario a discourse lo solucionará? ¿Necesito agregar usuarios y contraseñas para el multisitio para que coincida con el actual?
¿Cuál es la mejor SOLUCIÓN A LARGO PLAZO aquí?
