Bacula-users

[Bacula-users] Bacula 5.0.1 dir is trying to connect to Postgresql as root and is driving me nuts

2010-03-24 20:38:49
Subject: [Bacula-users] Bacula 5.0.1 dir is trying to connect to Postgresql as root and is driving me nuts
From: mehma sarja <mehmasarja AT gmail DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 24 Mar 2010 17:35:57 -0700
SUMMARY
/usr/local/bacula/working/log says "SQL server not running; password incorrect; max_connections exceeded"
/var/log/postgresql/postgresql-8.4-main.log says authentication for user bacula fails because I am trying to login as user root?

QUESTION
What's do provided username and authenticated username mean in Bacula?
===

DETAILS
Ubuntu 9.10 64 bit, compiled 5.0.1 from source. Both fd and sd run fine. Postgresql is running, max_connections are set to 100. 
===

LOG1
Here is what /usr/local/bacula/working/log says
==================================
24-Mar 17:02 bacula-dir JobId 0: Fatal error: Could not open Catalog "MyCatalog", database "bacula".
24-Mar 17:02 bacula-dir JobId 0: Fatal error: postgresql.c:227 Unable to connect to PostgreSQL server. Database=bacula User=bacula
Possible causes: SQL server not running; password incorrect; max_connections exceeded.
24-Mar 17:02 bacula-dir ERROR TERMINATION
Please correct configuration file: /usr/local/etc/bacula-dir.conf
===

CONF FILE
I have set the password for user bacula in postgresql. Ok, so I look in bacula-dir.conf for the Catalog section and it says
======================================================================================
Catalog {
  Name = MyCatalog
# Uncomment the following line if you want the dbi driver
# dbdriver = "dbi:postgresql"; dbaddress = 127.0.0.1; dbport =
  dbname = "bacula"; dbuser = "bacula"; dbpassword = "bacula"
}
===

LOG2
Here is what /var/log/postgresql/postgresql-8.4-main.log says
============================================
2010-03-24 17:10:12 PDT FATAL:  Ident authentication failed for user "bacula"
2010-03-24 17:10:17 PDT LOG:  provided username (root) and authenticated username (bacula) don't match
===


Mehma
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>