Bacula-users

Re: [Bacula-users] director won't start

2015-03-27 16:22:27
Subject: Re: [Bacula-users] director won't start
From: Tim Dunphy <bluethundr AT gmail DOT com>
To: Dimitri Maziuk <dmaziuk AT bmrb.wisc DOT edu>
Date: Fri, 27 Mar 2015 16:16:53 -0400
So I'd trace those !@#$ing alternatives symlinks and see which libbaccat
your director is actually finding.

Ah-HA!!!

[root@ops:/etc/bacula] #ls -l /usr/lib64/libbaccats-7.0.5.so
lrwxrwxrwx 1 root root 21 Mar 25 22:33 /usr/lib64/libbaccats-7.0.5.so -> libbaccats-sqlite3.so 

OK so that libbacats file is looking at sqlite! Not mysql.

So these are the libbacats files I have in /usr/lib64

[root@ops:/etc/bacula] #ls -l /usr/lib64/libbaccats*
lrwxrwxrwx 1 root root    26 Mar 25 21:50 /usr/lib64/libbaccats-5.2.13.so -> libbaccats-mysql-5.2.13.so
lrwxrwxrwx 1 root root    21 Mar 25 22:33 /usr/lib64/libbaccats-7.0.5.so -> libbaccats-sqlite3.so
-rwxr-xr-x 1 root root   931 Mar 19  2013 /usr/lib64/libbaccats.la
-rwxr-xr-x 1 root root 86149 Mar 19  2013 /usr/lib64/libbaccats-mysql-5.2.13.so
-rwxr-xr-x 1 root root 25016 Sep 10  2014 /usr/lib64/libbaccats-mysql-7.0.5.so
-rwxr-xr-x 1 root root  1000 Mar 19  2013 /usr/lib64/libbaccats-mysql.la
lrwxrwxrwx 1 root root    25 Mar 26 13:54 /usr/lib64/libbaccats-mysql.so -> libbaccats-mysql-7.0.5.so
-rwxr-xr-x 1 root root 32752 Sep 10  2014 /usr/lib64/libbaccats-postgresql-7.0.5.so
lrwxrwxrwx 1 root root    30 Mar 26 13:54 /usr/lib64/libbaccats-postgresql.so -> libbaccats-postgresql-7.0.5.so
-rwxr-xr-x 1 root root 23976 Sep 10  2014 /usr/lib64/libbaccats-sqlite3-7.0.5.so
lrwxrwxrwx 1 root root    27 Mar 26 13:54 /usr/lib64/libbaccats-sqlite3.so -> libbaccats-sqlite3-7.0.5.so


I tried setting the alternatives this way:

[root@ops:/etc/bacula] #alternatives --set libbaccats-mysql-7.0.5.so  /usr/lib64/libbaccats-mysql.so

So I guess I'm still not doing this quite right, because it looks like the mysql libraries are still not linked to the bacula director:

[root@ops:/etc/bacula] #ldd $(which bacula-dir)| grep -i mysql
[root@ops:/etc/bacula] #

Nothing shows up. So what do I need to do to get this working correctly?

Thanks
Tim





On Fri, Mar 27, 2015 at 2:29 PM, Dimitri Maziuk <dmaziuk AT bmrb.wisc DOT edu> wrote:
On 03/27/2015 01:22 PM, Tim Dunphy wrote:

> Hmmm...ok well if I do a ldd on that libcats file I see no mysql support is
> listed:

Well, keeping in mind the different everything, here's what I got on a
working 5.2.13/postgres 9.2:

> # ldd /usr/sbin/bacula-dir
> linux-vdso.so.1 =>  (0x00007fff28abe000)
> libbacfind-5.2.13.so => /usr/lib64/libbacfind-5.2.13.so (0x00000039dee00000)
> libbacsql-5.2.13.so => /usr/lib64/libbacsql-5.2.13.so (0x00000039e4e00000)
> libbaccats-5.2.13.so => /usr/lib64/libbaccats-5.2.13.so (0x00007facfc951000)
> ...

> # ldd /usr/lib64/libbaccats-5.2.13.so
> linux-vdso.so.1 =>  (0x00007fff84932000)
> libpq.so.5 => /usr/pgsql-9.2/lib/libpq.so.5 (0x00007f5e651de000)
^^^^^^^^^

libpq is the postgres library.

So I'd trace those !@#$ing alternatives symlinks and see which libbaccat
your director is actually finding.

--
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu




--
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users