Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2027 Widoki

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? 

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć