On 02/17/2015 10:53 AM, John Naggets wrote:
> On Monday, February 16, 2015 at 9:28:56 PM UTC+1, Stephan Duehr wrote:
> 
>> no, but to see what's happening, it's always a good idea to first
>> try to run bareos-sd in foreground with a debug-level >= 100
>> for example:
>>
>> chsh -s /bin/bash bareos
>> service bareos-sd stop
>> su - bareos
>> /usr/sbin/bareos-sd -f -d 100
> 
> 
> Thanks for the tip. I now ran bareos-sd in debugging mode as recommended and 
> here would be the output:
> 
> bareos-srv-sd: jcr.c:141-0 read_last_jobs seek to 192
> bareos-srv-sd: jcr.c:148-0 Read num_items=1
> bareos-srv-sd: crypto_cache.c:55-0 Could not open crypto cache file. 
> /var/lib/bareos/bareos-sd.9103.cryptoc ERR=No such file or directory
> bareos-srv-sd: bnet_server_tcp.c:166-0 Addresses host[ipv4;0.0.0.0;9103]
> bareos-srv-sd: stored.c:609-0 calling init_dev /var/lib/bareos/storage
> bareos-srv-sd: dev.c:377-0 init_dev: tape=0 dev_name=/var/lib/bareos/storage
> bareos-srv-sd: dev.c:379-0 dev=/var/lib/bareos/storage dev_max_bs=0 max_bs=0
> bareos-srv-sd: stored.c:611-0 SD init done /var/lib/bareos/storage
> bareos-srv-sd: block.c:127-0 created new block of blocksize 64512 
> (dev->device->label_block_size) as dev->max_block_size is zero
> bareos-srv-sd: stored.c:609-0 calling init_dev 
> gluster://192.168.10.198/backup/bareos
> bareos-srv-sd: sd_backends.c:111-0 init_backend_dev: testing backend 
> /usr/lib/bareos/backends/libbareossd-gfapi.so
> 17-Feb 10:50 bareos-srv-sd ABORTING due to ERROR
> Unable to load any shared library for libbareossd-gfapi.so
> BAREOS forced SEG FAULT to obtain traceback.
> BAREOS interrupted by signal 11: Segmentation violation
> Kaboom! bareos-sd, bareos-srv-sd got signal 11 - Segmentation violation. 
> Attempting traceback.
> Kaboom! exepath=/usr/sbin/
> Calling: /usr/sbin/btraceback /usr/sbin/bareos-sd 8335 /var/lib/bareos
> It looks like the traceback worked...
> 
> Looks like a shared library issue... just in case here is the content of the 
> bareos backends lib directory:
> 
> $ ls -la /usr/lib/bareos/backends/
> 
> total 96
> drwxr-xr-x 2 root root  4096 Feb 16 17:45 .
> drwxr-xr-x 6 root root  4096 Feb 16 17:39 ..
> -rw-r--r-- 1 root root 32848 Dec 31 19:17 libbareoscats-postgresql-14.2.2.so
> lrwxrwxrwx 1 root root    34 Dec 31 19:16 libbareoscats-postgresql.so -> 
> libbareoscats-postgresql-14.2.2.so
> -rwxr-xr-x 1 root root 51377 Feb 16 17:44 libbareossd-gfapi-14.2.2.so
> lrwxrwxrwx 1 root root    27 Feb 16 17:45 libbareossd-gfapi.so -> 
> libbareossd-gfapi-14.2.2.so
> 

Don't know what went wrong there, with segfaults it's always difficult
to find out.

Trying a different approach by doing a rebuild as described at
https://www.debian-administration.org/article/20/Rebuilding_Debian_packages

Like this, it worked for me, using gluster.org 3.6.2 package as my test-Server
is also on that version. No need for any ld.so.conf changes:

root@deb7tst01:~# wget -O - 
http://download.gluster.org/pub/gluster/glusterfs/3.6/3.6.2/Debian/wheezy/pubkey.gpg
 | apt-key add -

root@deb7tst01:~# echo "deb 
http://download.gluster.org/pub/gluster/glusterfs/3.6/3.6.2/Debian/wheezy/apt 
wheezy main" > /etc/apt/sources.list.d/gluster.list

root@deb7tst01:~# apt-get update

root@deb7tst01:~# apt-get install glusterfs-client

root@deb7tst01:~# echo "deb-src 
http://download.bareos.org/bareos/release/14.2/Debian_7.0/ /" >> 
/etc/apt/sources.list.d/bareos.list

root@deb7tst01:~# cat /etc/apt/sources.list.d/bareos.list
deb http://download.bareos.org/bareos/release/14.2/Debian_7.0/ /
deb-src http://download.bareos.org/bareos/release/14.2/Debian_7.0/ /

root@deb7tst01:~# apt-get build-dep bareos

root@deb7tst01:~# apt-get install devscripts

stephand@deb7tst01:~/work/src$ apt-get source bareos
stephand@deb7tst01:~/work/src$ cd bareos-14.2.2
stephand@deb7tst01:~/work/src/bareos-14.2.2$ debuild -us -uc

root@deb7tst01:~# cp 
/home/stephand/work/src/bareos-14.2.2/debian/tmp/usr/lib/bareos/backends/libbareossd-gfapi-14.2.2.so
 /usr/lib/bareos/backends/
root@deb7tst01:~# cd /usr/lib/bareos/backends/
root@deb7tst01:/usr/lib/bareos/backends# ln -s libbareossd-gfapi-14.2.2.so 
libbareossd-gfapi.so

Regards

-- 
  Stephan Dühr                              [email protected]
  Bareos GmbH & Co. KG                      Phone: +49 221-630693-90
  http://www.bareos.com

  Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
  Komplementär: Bareos Verwaltungs-GmbH
  Geschäftsführer: S. Dühr, M. Außendorf,
  J. Steffens, Philipp Storz, M. v. Wieringen

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to