On Tue, Aug 22, 2006 at 03:39:03PM -0700, Scott Simpson wrote:

> I'm trying to get bacula working with Postgres but I'm having
> trouble getting the director to connect. I can connect to Postgres
> as bacula:
> 
> sh-3.1$ id
> uid=118(bacula) gid=118(bacula) groups=26(tape),118(bacula)
> sh-3.1$ psql -Ubacula bacula
> Welcome to psql 8.1.4, the PostgreSQL interactive terminal.

In this case, the unix user bacula is connecting as the postgres
bacula user.  This works.  So far, so good.

> Next I try running the director manually:
> 
> [EMAIL PROTECTED]:/etc/bacula# /usr/sbin/bacula-dir -c
> /etc/bacula/bacula-dir.conf -u bacula -g bacula
> 22-Aug 15:33 bacula-dir:  Fatal error: Could not open database "bacula".
> 22-Aug 15:33 bacula-dir:  Fatal error: postgresql.c:174 Unable to connect to 
> PostgreSQL server.

In this case, the unix root user is connecting as the postgres bacula
user.  It fails.  If as root you try to connect to postgres using the
same psql command as above, does it still work?  Also, what database
authentication mechanism are you using?

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to