[Pkg-bareos-devel] Bug#884011: bareos-filedaemon: bareos-fd crashes - fills /var/lib/bareos/ with core files

Philipp Matthias Hahn pmhahn at debian.org
Mon Oct 29 07:55:53 GMT 2018


Package: bareos-filedaemon
Version: 16.2.6-4
Followup-For: Bug #884011

Dear Maintainer,

today systemd reported "bareos-filedaemon.service" as failed. Some other
"bareos-fd" was running and blocking TCP port 9102, so systemd "failed" to
start the new "bareos-fd":

# lsof -i :9102
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
bareos-fd 1701 root    3u  IPv4  12762      0t0  TCP *:bacula-fd (LISTEN)

Actually systemd starts "bareos-fd" successfully in a loop, but it
crahes / aborts, systemd writes a core file and restarts it again -
filling up my disk again:

# journalctl -u bareos-filedaemon.service
...
Okt 29 02:54:14 scout bareos-fd[11553]: scout-fd: ABORTING due to ERROR in bnet_server_tcp.c:223
                                        Cannot bind port 9102: ERR=Die Adresse wird bereits verwendet.
Okt 29 02:54:14 scout bareos-fd[11553]: BAREOS interrupted by signal 11: Segmentation violation
Okt 29 03:24:24 scout bareos-fd[11723]: scout-fd: ABORTING due to ERROR in bnet_server_tcp.c:223
                                        Cannot bind port 9102: ERR=Die Adresse wird bereits verwendet.
Okt 29 03:24:24 scout bareos-fd[11723]: BAREOS interrupted by signal 11: Segmentation violation
Okt 29 06:06:23 scout bareos-fd[13140]: Shutting down BAREOS service: scout-fd ...
Okt 29 06:07:53 scout bareos-fd[13362]: Shutting down BAREOS service: scout-fd ...
Okt 29 06:09:24 scout bareos-fd[13861]: Shutting down BAREOS service: scout-fd ...
Okt 29 06:12:25 scout bareos-fd[14366]: Shutting down BAREOS service: scout-fd ...
Okt 29 06:13:55 scout bareos-fd[14643]: Shutting down BAREOS service: scout-fd ...
Okt 29 06:15:26 scout bareos-fd[14970]: Shutting down BAREOS service: scout-fd ...
Okt 29 06:16:56 scout bareos-fd[15215]: Shutting down BAREOS service: scout-fd ...
...

Maybe some bad interaction between the old SysV-init-script and systemd?

# find /etc/rc?.d /etc/init.d /etc/systemd/system /lib/systemd/system /run/systemd -name \*bareos\* -ls
   395314      0 lrwxrwxrwx   1 root     root           19 Mai 29  2016 /etc/rc0.d/K01bareos-fd -> ../init.d/bareos-fd
   395343      0 lrwxrwxrwx   1 root     root           19 Mai 29  2016 /etc/rc1.d/K01bareos-fd -> ../init.d/bareos-fd
   393761      0 lrwxrwxrwx   1 root     root           19 Jul 31 14:03 /etc/rc2.d/S19bareos-fd -> ../init.d/bareos-fd
   395478      0 lrwxrwxrwx   1 root     root           19 Jul 31 14:03 /etc/rc3.d/S19bareos-fd -> ../init.d/bareos-fd
   395519      0 lrwxrwxrwx   1 root     root           19 Jul 31 14:03 /etc/rc4.d/S19bareos-fd -> ../init.d/bareos-fd
   395608      0 lrwxrwxrwx   1 root     root           19 Jul 31 14:03 /etc/rc5.d/S19bareos-fd -> ../init.d/bareos-fd
   395889      0 lrwxrwxrwx   1 root     root           19 Mai 29  2016 /etc/rc6.d/K01bareos-fd -> ../init.d/bareos-fd
   393635      8 -rwxr-xr-x   1 root     root         5175 Apr 21  2016 /etc/init.d/bareos-fd
   395258      0 lrwxrwxrwx   1 root     root           45 Mai 29  2016 /etc/systemd/system/multi-user.target.wants/bareos-filedaemon.service -> /lib/systemd/system/bareos-filedaemon.service
   525344      4 -rw-r--r--   1 root     root          985 Feb 26  2018 /lib/systemd/system/bareos-filedaemon.service
   335397      4 -rw-r--r--   1 root     root          631 Okt 28 15:24 /run/systemd/generator.late/bareos-fd.service
   335399      0 lrwxrwxrwx   1 root     root           20 Okt 28 15:24 /run/systemd/generator.late/graphical.target.wants/bareos-fd.service -> ../bareos-fd.service
   335398      0 lrwxrwxrwx   1 root     root           20 Okt 28 15:24 /run/systemd/generator.late/multi-user.target.wants/bareos-fd.service -> ../bareos-fd.service
     6858      0 lrwxrwxrwx   1 root     root           32 Okt 28 09:22 /run/systemd/units/invocation:bareos-fd.service -> 0489f55a88324ed6ba7f4058628e1632

1. Bareos-FD should not "crash" with SIGSEGV when the TCP port is
   already taken, as that triggers a Core-dump.
2. systemd should not restart the crashed bareos-fd every 30s if it
   crashes each time (with the same error).

Thanks.
Philipp
-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (990, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.18.16 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages bareos-filedaemon depends on:
ii  adduser                3.118
ii  bareos-common          16.2.6-4
ii  debconf [debconf-2.0]  1.5.69
ii  libacl1                2.2.52-3+b1
ii  libc6                  2.27-6
ii  libcap2                1:2.25-1.2
ii  libgcc1                1:8.2.0-8
ii  libgnutls30            3.5.19-1+b1
ii  libjansson4            2.11-1
ii  liblzo2-2              2.10-0.1
ii  libstdc++6             8.2.0-8
ii  libwrap0               7.6.q-27
ii  lsb-base               9.20170808
ii  lsof                   4.89+dfsg-0.1
ii  zlib1g                 1:1.2.11.dfsg-1

bareos-filedaemon recommends no packages.

bareos-filedaemon suggests no packages.

-- no debconf information



More information about the Pkg-bareos-devel mailing list