Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
2251 Näkymät

Greeting everyone!


conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL: Peer authentication failed for user "odoo"



how to solve this issue? 

Avatar
Hylkää
Paras vastaus

This error message is indicating that the connection to the PostgreSQL server on port 5432 failed due to a "FATAL: Peer authentication failed for user "odoo"" error. This typically means that the user "odoo" does not have the correct authentication credentials to connect to the server. You should check the credentials for the user and ensure that they are correct and that the user has the necessary permissions to connect to the server. Additionally, you should check the pg_hba.conf file to make sure that the server is configured to allow the user to connect from the correct location.

Avatar
Hylkää