LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-17-2014, 02:00 AM   #1
Suburban Errorist
LQ Newbie
 
Registered: May 2014
Posts: 26

Rep: Reputation: Disabled
Bucardo unable to authenticate password when running.


So I've installed Bucardo onto my system, but whenever I try to perform a sync or running it in general, I would get the error message:

Code:
DBI connect('dbname=bucardo;host=localhost;port5432', 'bucardo',...) failed: FATAL: password authentication failed for user "bucardo"
FATAL: password authentication failed for user "bucardo" at /usr/local/bin/bucardo line 296
I've checked and confirmed that the user "Bucardo" is in the PostgreSQL database, and that the passwords in both the database and .pgpass are correct. I've searched online and it was suggested that there might be a problem in my pg_hba.conf file. The contents of the file are as follows:

Code:
#Database administrative login by Unix domain socket
local     all        postgres         peer
#"local" is for Unix domain socket connections only
local     all        all              peer
#IPv4
local     all        all     127.0.0.1/32         md5
#IPv6
local     all        all     ::1/128         peer
#Allow replication connections from localhost:
host     replication rep     192.168.0.111/32     md5
local    bucardo     bucardo                      md5
I've tried changing the authentication method for user "bucardo" from md5 to trust and ident, but I'm still getting the same error.
 
Old 12-09-2014, 10:56 PM   #2
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
I'm not sure if you're still dealing with this but...

Quote:
Originally Posted by Suburban Errorist View Post
[CODE}#IPv4
local all all 127.0.0.1/32 md5
#IPv6
local all all ::1/128 peer
[/CODE]
Those two lines don't make sense, for local connections you don't specify address ranges. I believe Postgresql is stopping at the first of those lines, and treating 127.0.0.1/32 as an authentication method, which naturally fails. The remaining lines are ignored, for local connections.

You can have "local all all md5" and then you don't need to add "local bucardo bucardo md5" because the "all" line would cover it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Password authentication failed for user bucardo Suburban Errorist Linux - Server 1 10-27-2014 06:29 AM
Unable to proceed with bucardo installation Suburban Errorist Linux - Server 0 10-08-2014 12:44 PM
authenticate password ofori Devreeze Linux - Newbie 1 06-14-2013 10:40 AM
[SOLVED] Cannot authenticate root password LloydRice Linux - Software 16 07-13-2011 08:57 PM
Unable to authenticate user with Fedora 10 and I know the password is correct eomalley Fedora 3 04-08-2009 01:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration