BAREOS 16.2.4 interrupted by signal 11: Segmentation violation in Debian 8?

668 views
Skip to first unread message

Andrew Leer

unread,
Jun 28, 2017, 1:03:49 PM6/28/17
to bareos-users
I have a BareOS director I'm trying to start on Debian 8, and when it starts up I get the following error:

-- Logs begin at Wed 2017-06-28 16:36:57 UTC, end at Wed 2017-06-28 16:50:26 UTC. --
Jun 28 16:44:40 bareOSdirector systemd[1]: Starting LSB: Bareos Director...
Jun 28 16:44:41 bareOSdirector bareos-dir[9337]: Checking Configuration and Database connection ...
Jun 28 16:44:41 bareOSdirector su[9340]: Successful su for bareos by root
Jun 28 16:44:41 bareOSdirector su[9340]: + ??? root:bareos
Jun 28 16:44:41 bareOSdirector su[9340]: pam_unix(su:session): session opened for user bareos by (uid=0)
Jun 28 16:44:41 bareOSdirector bareos-dir[9337]: BAREOS interrupted by signal 11: Segmentation violation
Jun 28 16:44:41 bareOSdirector bareos-dir[9342]: BAREOS interrupted by signal 11: Segmentation violation
Jun 28 16:44:41 bareOSdirector bareos-dir[9337]: Kaboom! bareos-dir, bareos-dir got signal 11 - Segmentation violation. Attempting traceback.
Jun 28 16:44:41 bareOSdirector bareos-dir[9337]: Kaboom! exepath=/usr/sbin/
Jun 28 16:44:41 bareOSdirector bareos-dir[9337]: Calling: /usr/sbin/btraceback /usr/sbin/bareos-dir 9342 /var/lib/bareos
Jun 28 16:44:41 bareOSdirector bareos-dir[9337]: It looks like the traceback worked...
Jun 28 16:44:41 bareOSdirector bareos-dir[9337]: Dumping: /var/lib/bareos/bareos-dir.9342.bactrace
Jun 28 16:44:41 bareOSdirector su[9340]: pam_unix(su:session): session closed for user bareos
Jun 28 16:44:41 bareOSdirector systemd[1]: Started LSB: Bareos Director.
I've read elsewhere that there are issues with other BareOS daemons starting up this way and that it's usually a bug, I was still wondering if there might be a way to fix this? If not I was planning on attempting to revert back to using BareOS 15.2.

Segmentation faults aren't usually related to configuration issues correct? Is this related to a known bug?

Thank you,
Andrew J. Leer

Andrew Leer

unread,
Jun 28, 2017, 2:22:16 PM6/28/17
to bareos-users

Okay I found more details here:

vagrant@bareOSdirector:~$ /usr/sbin/bareos-dir -t -d 200 -u bareos -g bareos
bareos-dir (10): dird.c:243-0 Debug level = 200
bareos-dir (100): parse_conf.c:151-0 config file = /etc/bareos/bareos-dir.conf
bareos-dir (100): lex.c:356-0 glob /etc/bareos/bareos-dir.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/bareos-dir.conf
bareos-dir (100): lex.c:250-0 open config file: |find /etc/bareos/director.d -name '*.conf' -type f -exec echo @{} ;
bareos-dir (100): lex.c:356-0 glob /etc/bareos/director.d/pool-Scratch.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/director.d/pool-Scratch.conf
bareos-dir (100): lex.c:356-0 glob /etc/bareos/director.d/fileset-SelfTest.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/director.d/fileset-SelfTest.conf
bareos-dir (100): lex.c:356-0 glob /etc/bareos/director.d/messages-Daemon.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/director.d/messages-Daemon.conf
bareos-dir (100): lex.c:356-0 glob /etc/bareos/director.d/job-lampdir-fd-RestoreFiles.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/director.d/job-lampdir-fd-RestoreFiles.conf
bareos-dir (100): lex.c:356-0 glob /etc/bareos/director.d/fileset-Catalog.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/director.d/fileset-Catalog.conf
bareos-dir (100): lex.c:356-0 glob /etc/bareos/director.d/pool-Differential.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/director.d/pool-Differential.conf
bareos-dir (100): lex.c:356-0 glob /etc/bareos/director.d/fileset-bacula_files_backup.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/director.d/fileset-bacula_files_backup.conf
bareos-dir (100): lex.c:356-0 glob /etc/bareos/director.d/schedule-WeeklyCycle.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/director.d/schedule-WeeklyCycle.conf
bareos-dir (100): lex.c:356-0 glob /etc/bareos/director.d/storage-File.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/director.d/storage-File.conf
bareos-dir (100): lex.c:356-0 glob /etc/bareos/director.d/job-lampdir-fd-BaculaDirectorDirFiles.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/director.d/job-lampdir-fd-BaculaDirectorDirFiles.conf
bareos-dir (100): lex.c:356-0 glob /etc/bareos/director.d/pool-Full.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/director.d/pool-Full.conf
bareos-dir (100): lex.c:356-0 glob /etc/bareos/director.d/messages-standard.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/director.d/messages-standard.conf
bareos-dir (100): lex.c:356-0 glob /etc/bareos/director.d/fileset-LinuxAll.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/director.d/fileset-LinuxAll.conf
bareos-dir (100): lex.c:356-0 glob /etc/bareos/director.d/pool-Incremental.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/director.d/pool-Incremental.conf
bareos-dir (100): lex.c:356-0 glob /etc/bareos/director.d/catalog-MyCatalog.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/director.d/catalog-MyCatalog.conf
bareos-dir (100): lex.c:356-0 glob /etc/bareos/director.d/job-lampdir-fd-BackupCatalog.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/director.d/job-lampdir-fd-BackupCatalog.conf
bareos-dir (100): lex.c:250-0 open config file: |find /etc/bareos/clients.d -name '*.conf' -type f -exec echo @{} ;
bareos-dir (100): lex.c:356-0 glob /etc/bareos/clients.d/lampdir-fd.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/clients.d/lampdir-fd.conf
bareos-dir (100): lex.c:356-0 glob /etc/bareos/bareos-dir.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/bareos-dir.conf
bareos-dir (100): lex.c:250-0 open config file: |find /etc/bareos/director.d -name '*.conf' -type f -exec echo @{} ;
bareos-dir (100): lex.c:356-0 glob /etc/bareos/director.d/pool-Scratch.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/director.d/pool-Scratch.conf
bareos-dir (100): lex.c:356-0 glob /etc/bareos/director.d/fileset-SelfTest.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/director.d/fileset-SelfTest.conf
bareos-dir (100): lex.c:356-0 glob /etc/bareos/director.d/messages-Daemon.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/director.d/messages-Daemon.conf
bareos-dir (100): lex.c:356-0 glob /etc/bareos/director.d/job-lampdir-fd-RestoreFiles.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/director.d/job-lampdir-fd-RestoreFiles.conf
bareos-dir (100): lex.c:356-0 glob /etc/bareos/director.d/fileset-Catalog.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/director.d/fileset-Catalog.conf
bareos-dir (100): lex.c:356-0 glob /etc/bareos/director.d/pool-Differential.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/director.d/pool-Differential.conf
bareos-dir (100): lex.c:356-0 glob /etc/bareos/director.d/fileset-bacula_files_backup.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/director.d/fileset-bacula_files_backup.conf
bareos-dir (100): lex.c:356-0 glob /etc/bareos/director.d/schedule-WeeklyCycle.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/director.d/schedule-WeeklyCycle.conf
bareos-dir (100): lex.c:356-0 glob /etc/bareos/director.d/storage-File.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/director.d/storage-File.conf
bareos-dir (100): lex.c:356-0 glob /etc/bareos/director.d/job-lampdir-fd-BaculaDirectorDirFiles.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/director.d/job-lampdir-fd-BaculaDirectorDirFiles.conf
bareos-dir (100): lex.c:356-0 glob /etc/bareos/director.d/pool-Full.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/director.d/pool-Full.conf
bareos-dir (100): lex.c:356-0 glob /etc/bareos/director.d/messages-standard.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/director.d/messages-standard.conf
bareos-dir (100): lex.c:356-0 glob /etc/bareos/director.d/fileset-LinuxAll.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/director.d/fileset-LinuxAll.conf
bareos-dir (100): lex.c:356-0 glob /etc/bareos/director.d/pool-Incremental.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/director.d/pool-Incremental.conf
bareos-dir (100): lex.c:356-0 glob /etc/bareos/director.d/catalog-MyCatalog.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/director.d/catalog-MyCatalog.conf
bareos-dir (100): lex.c:356-0 glob /etc/bareos/director.d/job-lampdir-fd-BackupCatalog.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/director.d/job-lampdir-fd-BackupCatalog.conf
bareos-dir (200): runscript.c:334-0 runscript: debug
bareos-dir (200): runscript.c:335-0 --> RunScript
bareos-dir (200): runscript.c:336-0 --> Command=/usr/lib/bareos/scripts/make_catalog_backup.pl MyCatalog
bareos-dir (200): runscript.c:337-0 --> Target=%c
bareos-dir (200): runscript.c:338-0 --> RunOnSuccess=1
bareos-dir (200): runscript.c:339-0 --> RunOnFailure=0
bareos-dir (200): runscript.c:340-0 --> FailJobOnError=1
bareos-dir (200): runscript.c:341-0 --> RunWhen=2
bareos-dir (200): runscript.c:334-0 runscript: debug
bareos-dir (200): runscript.c:335-0 --> RunScript
bareos-dir (200): runscript.c:336-0 --> Command=/usr/lib/bareos/scripts/delete_catalog_backup
bareos-dir (200): runscript.c:337-0 --> Target=%c
bareos-dir (200): runscript.c:338-0 --> RunOnSuccess=1
bareos-dir (200): runscript.c:339-0 --> RunOnFailure=0
bareos-dir (200): runscript.c:340-0 --> FailJobOnError=0
bareos-dir (200): runscript.c:341-0 --> RunWhen=1
bareos-dir (100): lex.c:250-0 open config file: |find /etc/bareos/clients.d -name '*.conf' -type f -exec echo @{} ;
bareos-dir (100): lex.c:356-0 glob /etc/bareos/clients.d/lampdir-fd.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/clients.d/lampdir-fd.conf


BAREOS interrupted by signal 11: Segmentation violation

Kaboom! bareos-dir, bareos-dir got signal 11 - Segmentation violation. Attempting traceback.

Kaboom! exepath=/usr/sbin/
Calling: /usr/sbin/btraceback /usr/sbin/bareos-dir 10692 /var/lib/bareos
/usr/sbin/btraceback: 94: /usr/sbin/btraceback: cannot create /var/lib/bareos/bareos.10692.traceback: Permission denied
cat: /var/lib/bareos/bareos.10692.traceback: No such file or directory


It looks like the traceback worked...

Dumping: /var/lib/bareos/bareos-dir.10692.bactrace
Attempt to dump locks
Attempt to dump current JCRs. njcrs=0

It appears that the last file processed is /etc/bareos/clients.d/lampdir-fd.conf :

Client {
Name = "lampdir-fd"
Address = localhost
FDPort = 9102
Password = "blah"
Catalog = "MyCatalog"
FileRetention = 30 days
JobRetention = 6 months
AutoPrune = true
HeartbeatInterval = 1 minute
}

Not certain what the issue with it is...

desar...@opcode.cl

unread,
Jun 28, 2017, 7:38:25 PM6/28/17
to bareos...@googlegroups.com
Hi, check this if help you:
https://groups.google.com/d/msg/bareos-users/2AjM9gG6WdI/xkqRlhiGAAAJ

Check your config files if something is missing

Patricio Mercado G.


El 28/06/17 a las 14:22, Andrew Leer escribió:

Andrew Leer

unread,
Jun 28, 2017, 8:25:48 PM6/28/17
to bareos-users
Yes, I saw that thread. Does that mean that my file /etc/bareos/clients.d/lampdir-fd.conf is causing the issue? It's the last thing that is reported as being processed:

bareos-dir (100): lex.c:250-0 open config file: |find /etc/bareos/clients.d -name '*.conf' -type f -exec echo @{} ;
bareos-dir (100): lex.c:356-0 glob /etc/bareos/clients.d/lampdir-fd.conf: 1 files
bareos-dir (100): lex.c:250-0 open config file: /etc/bareos/clients.d/lampdir-fd.conf

Also, in the thread you sent me they say something about installing some more packages to see what went wrong i.e.:

>Also please install the package bareos-director-debuginfo and gdb:
> zypper install bareos-director-debuginfo gdb
>so when the segmentation fault happens, it will create a traceback
>file in /var/lib/bareos

These are not listed in apt-get for my Debian 8 distro...

On a side note, I also manually listed the files in the shell:

vagrant@bareOSdirector:~$ find /etc/bareos/clients.d -name '*.conf' -type f
/etc/bareos/clients.d/lampdir-fd.conf

vagrant@bareOSdirector:~$ find /etc/bareos/director.d -name '*.conf' -type f
/etc/bareos/director.d/pool-Scratch.conf
/etc/bareos/director.d/fileset-SelfTest.conf
/etc/bareos/director.d/messages-Daemon.conf
/etc/bareos/director.d/job-lampdir-fd-RestoreFiles.conf
/etc/bareos/director.d/fileset-Catalog.conf
/etc/bareos/director.d/pool-Differential.conf
/etc/bareos/director.d/fileset-bacula_files_backup.conf
/etc/bareos/director.d/schedule-WeeklyCycle.conf
/etc/bareos/director.d/storage-File.conf
/etc/bareos/director.d/job-lampdir-fd-BaculaDirectorDirFiles.conf
/etc/bareos/director.d/pool-Full.conf
/etc/bareos/director.d/messages-standard.conf
/etc/bareos/director.d/fileset-LinuxAll.conf
/etc/bareos/director.d/pool-Incremental.conf
/etc/bareos/director.d/catalog-MyCatalog.conf
/etc/bareos/director.d/job-lampdir-fd-BackupCatalog.conf

It looks like they were all processed...that last one seems it's the only file processed in that directory...

Are there any other logs generated? Or are there clues to what is wrong in the zypper packages mentioned above (bareos-director-debuginfo and gdb:
> zypper install bareos-director-debuginfo gdb)?

Also, what is zypper?

desar...@opcode.cl

unread,
Jun 28, 2017, 8:43:18 PM6/28/17
to bareos...@googlegroups.com

1) Check your file again, that's happen to me, I commented "jobdefs" line so "job file" miss required values and sadly crash. File system permissions?. Can't say more cause I'm newbie to Bareos.

2) Debug info are packages for enabling debug

3) zypper is the Debian "apt-get" package manager for openSUSE

Lucky for you


El 28/06/17 a las 20:25, Andrew Leer escribió:

Bruno Friedmann

unread,
Jun 29, 2017, 2:50:51 AM6/29/17
to bareos...@googlegroups.com
heartbeatinterval has to be express in secondes
put 60 and it should work
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Andrew Leer

unread,
Jun 30, 2017, 4:26:07 PM6/30/17
to bareos-users
Yeah that was it! The JobDefs weren't being defined. I was using a puppet module to define the configuration, and they're both defined as ::job, I dug into the code of the module a bit and found that you have to specify use_as_def => 'true'.

Andrew Leer

unread,
Jun 30, 2017, 4:28:42 PM6/30/17
to bareos-users

Thank you!

Reply all
Reply to author
Forward
0 new messages