Skip to Content
Menu
This question has been flagged
1 Reply
1629 Views

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
Discard
Best Answer

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
Discard