Bareos Bug Tracker
Bareos Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000695bareos-core[All Projects] directorpublic2016-09-12 10:172018-02-02 14:42
Assigned To 
PlatformLinuxOSDebianOS Version8
Product Version15.2.2 
Target VersionFixed in Version 
Summary0000695: Crash in director statistics thread
Descriptionmy bareos director keeps crashing about 3 times a week. To me it looks like the Process gets killed with Signal 7 (SIGBUS) while doing some statistcs stuff.
Steps To ReproduceI can't force the issue but it keeks crashing pretty regulary every 2 days.
Additional InformationI've got the debug symbols installed and have a lot of traceback / bactrace / core dumps available if you need it. I will attach one traceback.
TagsNo tags attached.
bareos-master: impact
bareos-master: action
bareos-17.2: impact
bareos-17.2: action
bareos-16.2: impact
bareos-16.2: action
bareos-15.2: impact
bareos-15.2: action
bareos-14.2: impact
bareos-14.2: action
bareos-13.2: impact
bareos-13.2: action
bareos-12.4: impact
bareos-12.4: action
Attached Files? file icon bareos.28190.traceback [^] (8,287 bytes) 2016-09-12 10:17

- Relationships
child of 0000903confirmed director crashes some time after a reload if Collect Statistic is enabled 

-  Notes
tigerfoot (developer)
2016-09-13 08:55

Hi Pascal, to have a chance to reproduce it, or at least being as close as possible to your env, could you describe a it a bit more.

Source of the packages (from where did you install them)
Database used
Filesystemd used
system message around the crash time
check if any rotatelog or cron job runs during the crash
normal status of daemon ( systemctl status bareos-fd bareos-sd bareos-dir )

You can perhaps also check if your assumption of "doing stats" is related

in bconsole
update stats days=3

prune stats yes
pascal (reporter)
2016-09-13 09:45

I will do my best.

The Debian Packages are coming from [^] For the Database we are using a postgres 9.4 on a different server. The Filesystem on the director is ext4.

As the director keeps crashing at different times I can't find any relations with cronjobs or logrotation.

In syslog I can see that the process gets interrupted by signal 7. Otherwise there are no log entries concerning the bareos-director.

Sep 11 13:01:15 mgmt01 bareos-dir: BAREOS interrupted by signal 7: BUS error

root@mgmt01:~# systemctl status bareos-dir
● bareos-director.service - Bareos Director Daemon service
   Loaded: loaded (/lib/systemd/system/bareos-director.service; enabled)
   Active: active (running) since Mon 2016-09-12 09:56:54 CEST; 23h ago
     Docs: man:bareos-dir(8)
  Process: 10225 ExecStart=/usr/sbin/bareos-dir -c /etc/bareos/bareos-dir.conf (code=exited, status=0/SUCCESS)
  Process: 10218 ExecStartPre=/usr/sbin/bareos-dir -c /etc/bareos/bareos-dir.conf -t -f (code=exited, status=0/SUCCESS)
 Main PID: 10231 (bareos-dir)
   CGroup: /system.slice/bareos-director.service
           └─10231 /usr/sbin/bareos-dir -c /etc/bareos/bareos-dir.conf

"update stats days=3" and "prune stats yes" are working. But i've since changed the configuration of the director and set "Collect Statistics = no" in the Storage section of the director in the hopes that the system is running more stable now. So far the director hasn't crashed but it's been only 1 day.

tigerfoot (developer)
2016-10-11 21:27

Ping Pascal
pascal (reporter)
2016-10-12 14:55

Sorry for not getting back to you.

I've set 'Collect Statistics = no' on all the Storage Resources in the Director and restartet all my Storage Deamons. This was about 4 weeks ago. I haven't had a single crash since.


- Issue History
Date Modified Username Field Change
2016-09-12 10:17 pascal New Issue
2016-09-12 10:17 pascal File Added: bareos.28190.traceback
2016-09-13 08:55 tigerfoot Note Added: 0002352
2016-09-13 09:45 pascal Note Added: 0002353
2016-10-11 21:27 tigerfoot Note Added: 0002380
2016-10-12 14:55 pascal Note Added: 0002382
2018-02-02 14:42 joergs Relationship added child of 0000903

Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker