Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Error Connecting to postgresql database

akinadeyemo1
Contributor
December 18, 2019

Hi all,

Please I have installed jira 8.5 on centos-8 and also have postgresql 9.6 installed on it.

I have created a database, user and encrypted password for user.

On first attempt to connect to postgresql database I got an error message

Fatal: Ident authentication failed for user "username"

I did not have to touch the hba.conf because the database is installed on same server with Jira.

I have recreated the user again with same password using "ALTER USER" command to ensure I am getting my password details right.

I also noticed that

i) I am not able to connect to postgresql db on command line using

psql -h localhost -p 5432 -U <username> <databasename>;

Got similar error message

"psql: FATAL: Ident authentication failed for user "username"

 

Please what solution can you recommend?

Thanks for your help.


Akin

1 answer

1 accepted

0 votes
Answer accepted
Jack Nolddor _Sweet Bananas_
Atlassian Partner
December 18, 2019

Hi,

Have you edited the The pg_hba.conf File to allow user and password credentials? You must use md5 authentication.

 

Regards

akinadeyemo1
Contributor
December 18, 2019 edited

I thought this file is required to be edited when you have your postgresql installed on a remote server. Would give a go if that will fix it. 

Thanks

akinadeyemo1
Contributor
December 18, 2019

Thanks so much @Jack Nolddor _Sweet Bananas_ that fixed the issue. I am able to coonect to my database now.

You rock!

Like • Jack Nolddor _Sweet Bananas_ likes this
Jack Nolddor _Sweet Bananas_
Atlassian Partner
December 18, 2019

You're welcome!

Like • akinadeyemo1 likes this

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team ’25 europe, virtual access, catch team 25 virtually, anytime anywhere, hybrid event, atlassian conference, atlassian learning, ai teamwork, remote attendance, digital access pass, keynote livestream, product announcements, community events

Register for free Team '25 Europe digital access

Get your free all-access digital pass and don’t miss groundbreaking announcements, brand new features and product updates, insight-packed sessions, and exclusive digital content.

Sign up
AUG Leaders

Upcoming Jira Events