Bacula is great for Linux – to – LTO tape backups, but the YUM updates can – at least on my system – sometimes leave it in an unusable state..
For some reason, the update tends to leave the libraries in /usr/lib64 in a mess, with some pointing to postgresql instead of mysql, and some still in place from the ‘old’ version… A massive clue is when you see postgresql-related errors, when in fact you have Bacula configured to use MySql!
Running bacula-dir from the command line, in ‘foreground’ mode with the appropriate debug parameters, helps to track down the actual cause of the errors..
For Bacula with MySql, on an x86_64 system, the appropriate libraries – in /usr/lib64 – should look like this:lrwxrwxrwx 1 root root 25 Jun 28 23:28 libbaccats-5.2.8.so -> libbaccats-mysql-5.2.8.so
-rwxr-xr-x 1 root root 928 Jun 11 10:41 libbaccats.la
-rwxr-xr-x 1 root root 26984 Jun 11 10:41 libbaccats-mysql-5.2.8.so
-rwxr-xr-x 1 root root 997 Jun 11 10:41 libbaccats-mysql.la
lrwxrwxrwx 1 root root 25 Jun 13 14:04 libbaccats-mysql.so -> libbaccats-mysql-5.2.8.so
– and then bacula-dir should run OK!