FS#30727 - Bacula won't connect to existing MySQL DB after upgrade - looks for Postgresql
Attached to Project:
Community Packages
Opened by Mark (fiddlinmacx) - Tuesday, 17 July 2012, 15:07 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Thursday, 19 July 2012, 08:59 GMT
Opened by Mark (fiddlinmacx) - Tuesday, 17 July 2012, 15:07 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Thursday, 19 July 2012, 08:59 GMT
|
Details
Description: Once again bacula-dir is trying to connect to
postgresql after the recent update to 5.2.10-3. I have no
reference to postgresql in my configs and it was working up
until this update which added support for postgresql back in
although as an optional dependancy.
Additional info: * Package version: 5.2.10-3 excerpt from bacula.log: 17-Jul 10:36 bacula-dir JobId 0: Fatal error: Could not open Catalog "MyCatalog", database "bacula". 17-Jul 10:36 bacula-dir JobId 0: Fatal error: postgresql.c:248 Unable to connect to PostgreSQL server. Database=bacula User=bacula Possible causes: SQL server not running; password incorrect; max_connections exceeded. 17-Jul 10:36 bacula-dir ERROR TERMINATION Please correct configuration file: bacula-dir.conf Steps to reproduce: Upgrade to bacula 5.2.10-3 with a mysql database configured and restart bacula-dir. |
This task depends upon
Closed by Sven-Hendrik Haase (Svenstaro)
Thursday, 19 July 2012, 08:59 GMT
Reason for closing: Fixed
Additional comments about closing: Rel -4.
Thursday, 19 July 2012, 08:59 GMT
Reason for closing: Fixed
Additional comments about closing: Rel -4.
I've tried to set the address and port - same thing.
Does bacula support --with-mysql and --with-postgresql at the same time?
/usr/sbin/bacula-dir: error while loading shared libraries: libpq.so.5: cannot open shared object file: No such file or directory
There doesn't seem to be a command line switch that starts bacula-dir with only one db driver working. It looks like only one --with-?? is tolerated. I'll have to downgrade again to get things working.
Is this an upstream bug??
I'll have a look at other distros' packages when I have a chance.
You're right though, this does suck. I found a similar problem with postfix. They must load all the DB drivers even when they're not using them.
I'm going to continue working on the upstream angle. I'll let you know what I find out.
"bacula can only handle a single database server ... that is defined when configuring Bacula."
I think we might be stuck with having separate packages for now.