psql: FATAL: authentification Ident ?chou?e pour l'utilisateur
Asked by karim -Atlassway-:

Hello

Team im configured server remotely

I installed confluence and postgres , when i try to connect my database to postgres , for the simple way , when i hit test connection : it looks succeded as picture describe below :

![Image 1.png](/t5/image/serverpage/image-id/87623i426C715BDBB46AEC/image-dimensions/497x219?v=v2 "Image 1.png")

But when i hit next to finish the configuration , it takes a while and i get this error :

psql: FATAL: authentification Ident ?chou?e pour l'utilisateur \<\< postgres \>\>

By connection string , the test failed :

![String way postgres connection .png](/t5/image/serverpage/image-id/87625iB1830BDE5135599E/image-dimensions/389x223?v=v2 "String way postgres connection .png")

I see that i have to change the pg_hba.conf and i did it : Here i my file :

# TYPE DATABASE USER ADDRESS METHOD

# "local" is for Unix domain socket connections only  
local all all peer  
# IPv4 local connections:  
host all all 127.0.0.1/32 ident  
host all all 0.0.0.0/0 md5

# IPv6 local connections:  
host all all ::1/128 ident  
# Allow replication connections from localhost, by a user with the  
# replication privilege.  
#local replication postgres peer  
#host replication postgres 127.0.0.1/32 ident  
#host replication postgres ::1/128 ident  
host all all 0.0.0.0/0 md5  
host all all ::/0 md5

Note : im configured my server remotly .

Please i need your help .

Thank you very much for your response .

Regards

Karim


Answers:
author: karim -Atlassway-
body: [@Alexey Matveev](/t5/user/viewprofilepage/user-id/1159601)

I think that you can help me ;)

Could you please ?

Thank you

regards


author: Brant Schroeder
body: You can try the resolution on below guide it is for Jira but Confluence can have the same issue:

<https://confluence.atlassian.com/jirakb/jira-unable-to-connect-to-database-with-ident-authentication-failed-error-226787768.html>

comments: author: karim -Atlassway-
body: Hello [@Brant Schroeder](/t5/user/viewprofilepage/user-id/769100)

Thank you for your reply

I didi it , i make trust rather than md5

====\> host confluencedb confluenceadmin 0.0.0.0/0 trust

But after the test succes it's charge and return this error always :

![apr?s succes.png](https://community.atlassian.com/t5/image/serverpage/image-id/87677iA23F5EF1265FD872/image-size/large?v=v2&px=999 "apr?s succes.png")Note : i cleaned the cache but always same problems.

I need your help please

Thank you


author: Brant Schroeder
body: Do you have a software firewall on the box?


author: karim -Atlassway-
body: hello [@Brant Schroeder](/t5/user/viewprofilepage/user-id/769100) i don't know , how can i make sure please ?

Thank you


author: Brant Schroeder
body: What is the Operating System of the server it is running on?


author: karim -Atlassway-
body: it's centos 7 , it's a vps .

But i wanna tell you that i open the port of confluence 8090 and the port of postgres , 5432 to acces from remotely from my pc , because the server doesnt have a graphic .

THank you

Regards


author: Brant Schroeder
body: Have you tried turning off the firewall or looking at the firewall logs?


author: karim -Atlassway-
body: hello [@Brant Schroeder](/t5/user/viewprofilepage/user-id/769100)

Yes it's down !!!


author: Brant Schroeder
body: Is Confluence a stand alone instance or are you using Jira for authentication?


author: karim -Atlassway-
body: it's alone


author: karim -Atlassway-
body: right now the problem with the user is solved , but when the test succed in two ways , it take a while and tell me

Ce site est inaccessible {#toc-hId--1356401679}
-----------------------------------------------

**vps796322.ovh.net** n'autorise pas la connexion.

Voici quelques conseils :

* V?rifier la connexion
* [V?rifier le proxy et le pare-feu](chrome-error://chromewebdata/#buttons)

ERR_CONNECTION_REFUSED

Regards


author: Brant Schroeder
body: Do you have a proxy setup?


author: karim -Atlassway-
body: No i do not have a proxy


Tags: confluence-server

server