View Issue Details

IDProjectCategoryView StatusLast Update
0000385bareos-corefile daemonpublic2019-12-18 15:24
Reportertigerfoot Assigned Tofranku  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformLinuxOSanyOS Version3
Product Version14.2.2 
Fixed in Version19.2.1 
Summary0000385: bareos daemon stop restart hang if bareos-tray-monitor is connected
DescriptionOn simple client (openSUSE 13.1) have bareos-fd and tray-monitor installed and running.

If you (as root) issue a systemctl restart/stop bareos-fd.service the shutdown process hangs until systemd timeout and finally kill it hard.

Same behavior can be found in 12.3 and 13.2 versions.

Why this need to be fixed. In case a computer having tray-monitor running is updated, the timeout take times and those hang the update/upgrade process.
This can confuse admin/user thinking the installation process is stuck, and could damage it if they stop the install process.
Additional Informationc-3po:~ # systemctl status bareos-fd.service
bareos-fd.service - Bareos File Daemon service
   Loaded: loaded (/etc/systemd/system/bareos-fd.service; enabled)
   Active: active (running) since Thu 2014-12-25 09:51:15 CET; 1 day 1h ago
     Docs: man:bareos-fd(8)
  Process: 1266 ExecStart=/usr/sbin/bareos-fd -c /etc/bareos/bareos-fd.conf (code=exited, status=0/SUCCESS)
 Main PID: 1275 (bareos-fd)
   CGroup: /system.slice/bareos-fd.service
           └─1275 /usr/sbin/bareos-fd -c /etc/bareos/bareos-fd.conf

Dec 25 09:51:15 c-3po.labaroche.ioda.net systemd[1]: Starting Bareos File Daemon service...
Dec 25 09:51:15 c-3po.labaroche.ioda.net systemd[1]: Started Bareos File Daemon service.
c-3po:~ # lsof -p 1275
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1502/gvfs
      Output information may be incomplete.
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /var/run/user/1502/gvfs
      Output information may be incomplete.
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
bareos-fd 1275 root cwd DIR 254,4 4096 1835608 /var/lib/bareos
bareos-fd 1275 root rtd DIR 254,3 4096 2 /
bareos-fd 1275 root txt REG 254,3 191104 296534 /usr/sbin/bareos-fd
bareos-fd 1275 root mem REG 254,3 18816 414985 /lib64/libattr.so.1.1.0
bareos-fd 1275 root mem REG 254,3 92568 414949 /lib64/libgcc_s.so.1
bareos-fd 1275 root mem REG 254,3 1127824 415648 /lib64/libm-2.18.so
bareos-fd 1275 root mem REG 254,3 18904 415087 /lib64/libdl-2.18.so
bareos-fd 1275 root mem REG 254,3 424104 404514 /lib64/libssl.so.1.0.0
bareos-fd 1275 root mem REG 254,3 133344 1079141 /usr/lib64/liblzo2.so.2.0.0
bareos-fd 1275 root mem REG 254,3 18976 414880 /lib64/libcap.so.2.22
bareos-fd 1275 root mem REG 254,3 40880 415005 /lib64/libwrap.so.0.7.6
bareos-fd 1275 root mem REG 254,3 2000416 404513 /lib64/libcrypto.so.1.0.0
bareos-fd 1275 root mem REG 254,3 35464 414867 /lib64/libacl.so.1.1.0
bareos-fd 1275 root mem REG 254,3 2003811 414946 /lib64/libc-2.18.so
bareos-fd 1275 root mem REG 254,3 995512 1083038 /usr/lib64/libstdc++.so.6.0.18
bareos-fd 1275 root mem REG 254,3 141506 414947 /lib64/libpthread-2.18.so
bareos-fd 1275 root mem REG 254,3 58667 1062381 /usr/lib64/libfastlz.so.1.0.0
bareos-fd 1275 root mem REG 254,3 88216 415089 /lib64/libz.so.1.2.8
bareos-fd 1275 root mem REG 254,3 430208 1327573 /usr/lib64/bareos/libbareos-14.2.2.so
bareos-fd 1275 root mem REG 254,3 93536 1327574 /usr/lib64/bareos/libbareoscfg-14.2.2.so
bareos-fd 1275 root mem REG 254,3 81088 1327575 /usr/lib64/bareos/libbareosfind-14.2.2.so
bareos-fd 1275 root mem REG 254,3 80648 1327576 /usr/lib64/bareos/libbareoslmdb-14.2.2.so
bareos-fd 1275 root mem REG 254,3 154094 398832 /lib64/ld-2.18.so
bareos-fd 1275 root mem REG 254,3 26244 1192397 /usr/lib64/gconv/gconv-modules.cache
bareos-fd 1275 root mem REG 254,3 256356 959513 /usr/lib/locale/fr_CH.utf8/LC_CTYPE
bareos-fd 1275 root 0r CHR 1,3 0t0 1029 /dev/null
bareos-fd 1275 root 1r CHR 1,3 0t0 1029 /dev/null
bareos-fd 1275 root 2r CHR 1,3 0t0 1029 /dev/null
bareos-fd 1275 root 3u IPv6 22824 0t0 TCP *:bacula-fd (LISTEN)
bareos-fd 1275 root 4u IPv6 29886 0t0 TCP localhost6.localdomain6:bacula-fd->localhost6.localdomain6:36912 (ESTABLISHED)
c-3po:~ # systemctl stop bareos-fd.service
c-3po:~ # systemctl status bareos-fd.service
bareos-fd.service - Bareos File Daemon service
   Loaded: loaded (/etc/systemd/system/bareos-fd.service; enabled)
   Active: failed (Result: signal) since Fri 2014-12-26 11:06:07 CET; 12min ago
     Docs: man:bareos-fd(8)
  Process: 1266 ExecStart=/usr/sbin/bareos-fd -c /etc/bareos/bareos-fd.conf (code=exited, status=0/SUCCESS)
 Main PID: 1275 (code=killed, signal=KILL)

Dec 25 09:51:15 c-3po.labaroche.ioda.net systemd[1]: Starting Bareos File Daemon service...
Dec 25 09:51:15 c-3po.labaroche.ioda.net systemd[1]: Started Bareos File Daemon service.
Dec 26 11:04:37 c-3po.labaroche.ioda.net systemd[1]: Stopping Bareos File Daemon service...
Dec 26 11:04:37 c-3po.labaroche.ioda.net bareos-fd[1275]: Shutting down BAREOS service: c-3po-fd ...
Dec 26 11:06:07 c-3po.labaroche.ioda.net systemd[1]: bareos-fd.service stopping timed out. Killing.
Dec 26 11:06:07 c-3po.labaroche.ioda.net systemd[1]: bareos-fd.service: main process exited, code=killed, status=9/KILL
Dec 26 11:06:07 c-3po.labaroche.ioda.net systemd[1]: Stopped Bareos File Daemon service.
Dec 26 11:06:07 c-3po.labaroche.ioda.net systemd[1]: Unit bareos-fd.service entered failed state.


lsof -p 2694
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
bareos-tr 2694 bruno cwd DIR 254,2 12288 2621441 /home/bruno
bareos-tr 2694 bruno rtd DIR 254,3 4096 2 /
bareos-tr 2694 bruno txt REG 254,3 108536 154727 /usr/bin/bareos-tray-monitor
bareos-tr 2694 bruno mem REG 254,3 23184 1192882 /usr/lib64/kde4/plugins/imageformats/kimg_xview.so
bareos-tr 2694 bruno mem REG 254,3 64472 1192880 /usr/lib64/kde4/plugins/imageformats/kimg_xcf.so
bareos-tr 2694 bruno mem REG 254,3 319192 1078609 /usr/lib64/libwebp.so.4.0.3
bareos-tr 2694 bruno mem REG 254,3 18984 1187827 /usr/lib64/kde4/plugins/imageformats/kimg_webp.so
bareos-tr 2694 bruno mem REG 254,3 27376 1192879 /usr/lib64/kde4/plugins/imageformats/kimg_tga.so
bareos-tr 2694 bruno mem REG 254,3 43960 1192877 /usr/lib64/kde4/plugins/imageformats/kimg_rgb.so
bareos-tr 2694 bruno mem REG 254,3 27320 1192876 /usr/lib64/kde4/plugins/imageformats/kimg_ras.so
bareos-tr 2694 bruno mem REG 254,3 23208 1192864 /usr/lib64/kde4/plugins/imageformats/kimg_psd.so
bareos-tr 2694 bruno mem REG 254,3 23208 1192861 /usr/lib64/kde4/plugins/imageformats/kimg_pic.so
bareos-tr 2694 bruno mem REG 254,3 35640 1192860 /usr/lib64/kde4/plugins/imageformats/kimg_pcx.so
bareos-tr 2694 bruno mem REG 254,3 340328 1078633 /usr/lib64/libjasper.so.1.0.0
bareos-tr 2694 bruno mem REG 254,3 23320 1192833 /usr/lib64/kde4/plugins/imageformats/kimg_jp2.so
bareos-tr 2694 bruno mem REG 254,3 27272 1081365 /usr/lib64/libIlmThread-2_0.so.10.0.1
bareos-tr 2694 bruno mem REG 254,3 272432 1080366 /usr/lib64/libHalf.so.10.0.1
bareos-tr 2694 bruno mem REG 254,3 133504 1082230 /usr/lib64/libIex-2_0.so.10.0.1
bareos-tr 2694 bruno mem REG 254,3 1140776 1082997 /usr/lib64/libIlmImf-Imf_2_0.so.20.0.1
bareos-tr 2694 bruno mem REG 254,3 27400 1192832 /usr/lib64/kde4/plugins/imageformats/kimg_exr.so
bareos-tr 2694 bruno mem REG 254,3 35752 1192827 /usr/lib64/kde4/plugins/imageformats/kimg_eps.so
bareos-tr 2694 bruno mem REG 254,3 31408 1192728 /usr/lib64/kde4/plugins/imageformats/kimg_dds.so
bareos-tr 2694 bruno mem REG 254,3 50200 1082559 /usr/lib64/libjbig.so.2.0
bareos-tr 2694 bruno mem REG 254,3 477168 1082182 /usr/lib64/libtiff.so.5.2.0
bareos-tr 2694 bruno mem REG 254,3 31568 1087707 /usr/lib64/qt4/plugins/imageformats/libqtiff.so
bareos-tr 2694 bruno mem REG 254,3 23136 1087704 /usr/lib64/qt4/plugins/imageformats/libqtga.so
bareos-tr 2694 bruno mem REG 254,3 23304 1087699 /usr/lib64/qt4/plugins/imageformats/libqsvg.so
bareos-tr 2694 bruno mem REG 254,3 229488 1076006 /usr/lib64/liblcms.so.1.0.19
bareos-tr 2694 bruno mem REG 254,3 548184 1077342 /usr/lib64/libmng.so.1.1.0.10
bareos-tr 2694 bruno mem REG 254,3 27544 1087696 /usr/lib64/qt4/plugins/imageformats/libqmng.so
bareos-tr 2694 bruno mem REG 254,3 264224 1083063 /usr/lib64/libjpeg.so.8.0.2
bareos-tr 2694 bruno mem REG 254,3 31680 1087695 /usr/lib64/qt4/plugins/imageformats/libqjpeg.so
bareos-tr 2694 bruno mem REG 254,3 31496 1087693 /usr/lib64/qt4/plugins/imageformats/libqico.so
bareos-tr 2694 bruno mem REG 254,3 31424 1078322 /usr/lib64/qt4/plugins/imageformats/libqgif.so
bareos-tr 2694 bruno mem REG 254,3 61615 415656 /lib64/libnss_files-2.18.so
bareos-tr 2694 bruno mem REG 254,3 56575 414912 /lib64/libnss_nis-2.18.so
bareos-tr 2694 bruno mem REG 254,3 108060 415650 /lib64/libnsl-2.18.so
bareos-tr 2694 bruno mem REG 254,3 38420 415652 /lib64/libnss_compat-2.18.so
bareos-tr 2694 bruno mem REG 254,3 741536 1976149 /usr/share/fonts/truetype/DejaVuSans.ttf
bareos-tr 2694 bruno mem REG 254,4 10547304 1049360 /var/tmp/kdecache-bruno/icon-cache.kcache
bareos-tr 2694 bruno mem REG 254,3 118032 1088312 /usr/lib64/liboxygenstyle.so.4.14.3
bareos-tr 2694 bruno mem REG 254,3 755824 1190408 /usr/lib64/kde4/plugins/styles/oxygen.so
bareos-tr 2694 bruno mem REG 254,3 138720 414890 /lib64/libselinux.so.1
bareos-tr 2694 bruno mem REG 254,3 290752 403124 /lib64/libdbus-1.so.3.8.9
bareos-tr 2694 bruno mem REG 254,3 71736 1080351 /usr/lib64/libudev.so.1.4.0
bareos-tr 2694 bruno mem REG 254,3 1479688 1076894 /usr/lib64/libxml2.so.2.9.1
bareos-tr 2694 bruno mem REG 254,3 240808 1086960 /usr/lib64/libstreams.so.0.7.8
bareos-tr 2694 bruno mem REG 254,3 1163464 1061262 /usr/lib64/libsoprano.so.4.3.0
bareos-tr 2694 bruno mem REG 254,3 172042 1086679 /usr/lib64/liblzma.so.5.0.7
bareos-tr 2694 bruno mem REG 254,3 67326 1086678 /usr/lib64/libbz2.so.1.0.6
bareos-tr 2694 bruno mem REG 254,3 22952 1079104 /usr/lib64/libXtst.so.6.1.0
bareos-tr 2694 bruno mem REG 254,3 196448 1078819 /usr/lib64/libdbusmenu-qt.so.2.6.0
bareos-tr 2694 bruno mem REG 254,3 990912 1076823 /usr/lib64/libattica.so.0.4.2
bareos-tr 2694 bruno mem REG 254,3 513208 1075072 /usr/lib64/libQtDBus.so.4.8.5
bareos-tr 2694 bruno mem REG 254,3 18816 414985 /lib64/libattr.so.1.1.0
bareos-tr 2694 bruno mem REG 254,3 35464 414867 /lib64/libacl.so.1.1.0
bareos-tr 2694 bruno mem REG 254,3 77008 1087898 /usr/lib64/libksuseinstall.so.1
bareos-tr 2694 bruno mem REG 254,3 1041912 1087891 /usr/lib64/libsolid.so.4.14.3
bareos-tr 2694 bruno mem REG 254,3 556952 1086958 /usr/lib64/libstreamanalyzer.so.0.7.8
bareos-tr 2694 bruno mem REG 254,3 361808 1077046 /usr/lib64/libQtSvg.so.4.8.5
bareos-tr 2694 bruno mem REG 254,3 289864 1076740 /usr/lib64/libQtXml.so.4.8.5
bareos-tr 2694 bruno mem REG 254,3 1330800 1078144 /usr/lib64/libQtNetwork.so.4.8.5
bareos-tr 2694 bruno mem REG 254,3 849480 1082766 /usr/lib64/libnepomuk.so.4.14.3
bareos-tr 2694 bruno mem REG 254,3 2920208 1075679 /usr/lib64/libkdecore.so.5.14.3
bareos-tr 2694 bruno mem REG 254,3 4558656 1087579 /usr/lib64/libkdeui.so.5.14.3
bareos-tr 2694 bruno mem REG 254,3 2834280 1081227 /usr/lib64/libkio.so.5.14.3
bareos-tr 2694 bruno mem REG 254,3 108476 1976244 /usr/share/fonts/truetype/LiberationMono-Regular.ttf
bareos-tr 2694 bruno mem REG 254,3 48152 1187940 /usr/lib64/kde4/plugins/gui_platform/libkde.so
bareos-tr 2694 bruno mem REG 254,4 410600 787202 /var/cache/fontconfig/7ef2298fde41cc6eeb7af42e48b7d293-x86_64.cache-4
bareos-tr 2694 bruno mem REG 254,4 476216 786706 /var/cache/fontconfig/f0cb971afb730f85a4aedb9298bb8d29-x86_64.cache-4
bareos-tr 2694 bruno mem REG 254,4 473328 787088 /var/cache/fontconfig/17090aa38d5c6f09fb8c5c354938f1d7-x86_64.cache-4
bareos-tr 2694 bruno mem REG 254,4 474080 787087 /var/cache/fontconfig/df311e82a1a24c41a75c2c930223552e-x86_64.cache-4
bareos-tr 2694 bruno mem REG 254,3 22321744 134315 /usr/share/icu/51.2/icudt51l.dat
bareos-tr 2694 bruno mem REG 254,3 4936 1078666 /usr/lib64/libicudata.so.51.2
bareos-tr 2694 bruno mem REG 254,3 1542856 1076994 /usr/lib64/libicuuc.so.51.2
bareos-tr 2694 bruno mem REG 254,3 2162184 1080480 /usr/lib64/libicui18n.so.51.2
bareos-tr 2694 bruno mem REG 254,4 218224 786601 /var/cache/fontconfig/7e1fba7718b83835f0117a869412581c-x86_64.cache-4
bareos-tr 2694 bruno mem REG 254,3 16711 1192386 /usr/lib64/gconv/UTF-16.so
bareos-tr 2694 bruno mem REG 254,3 14552 1075628 /usr/lib64/libXau.so.6.0.0
bareos-tr 2694 bruno mem REG 254,3 129848 1076190 /usr/lib64/libxcb.so.1.1.0
bareos-tr 2694 bruno mem REG 254,3 170168 1082135 /usr/lib64/libexpat.so.1.6.0
bareos-tr 2694 bruno mem REG 254,3 18968 1080217 /usr/lib64/libuuid.so.1.3.0
bareos-tr 2694 bruno mem REG 254,3 31112 1079061 /usr/lib64/libffi.so.4.0.1
bareos-tr 2694 bruno mem REG 254,3 416064 1079593 /usr/lib64/libpcre.so.1.2.1
bareos-tr 2694 bruno mem REG 254,3 42594 415666 /lib64/librt-2.18.so
bareos-tr 2694 bruno mem REG 254,3 1302168 1078567 /usr/lib64/libX11.so.6.3.0
bareos-tr 2694 bruno mem REG 254,3 73456 1079183 /usr/lib64/libXext.so.6.4.0
bareos-tr 2694 bruno mem REG 254,3 248864 1080278 /usr/lib64/libfontconfig.so.1.8.0
bareos-tr 2694 bruno mem REG 254,3 10472 1078677 /usr/lib64/libXinerama.so.1.0.0
bareos-tr 2694 bruno mem REG 254,3 43736 1079334 /usr/lib64/libXcursor.so.1.0.2
bareos-tr 2694 bruno mem REG 254,3 22640 1079143 /usr/lib64/libXfixes.so.3.1.0
bareos-tr 2694 bruno mem REG 254,3 39264 1077827 /usr/lib64/libXrandr.so.2.2.0
bareos-tr 2694 bruno mem REG 254,3 39456 1079021 /usr/lib64/libXrender.so.1.3.0
bareos-tr 2694 bruno mem REG 254,3 63952 1080255 /usr/lib64/libXi.so.6.1.0
bareos-tr 2694 bruno mem REG 254,3 102536 1061341 /usr/lib64/libICE.so.6.3.0
bareos-tr 2694 bruno mem REG 254,3 31000 1076161 /usr/lib64/libSM.so.6.0.1
bareos-tr 2694 bruno mem REG 254,3 330952 1082639 /usr/lib64/libgobject-2.0.so.0.3800.2
bareos-tr 2694 bruno mem REG 254,3 597880 1079249 /usr/lib64/libfreetype.so.6.10.2
bareos-tr 2694 bruno mem REG 254,3 247768 1076653 /usr/lib64/libpng16.so.16.6.0
bareos-tr 2694 bruno mem REG 254,3 1057936 1076813 /usr/lib64/libglib-2.0.so.0.3800.2
bareos-tr 2694 bruno mem REG 254,3 1127824 415648 /lib64/libm-2.18.so
bareos-tr 2694 bruno mem REG 254,3 18904 415087 /lib64/libdl-2.18.so
bareos-tr 2694 bruno mem REG 254,3 424104 404514 /lib64/libssl.so.1.0.0
bareos-tr 2694 bruno mem REG 254,3 58667 1062381 /usr/lib64/libfastlz.so.1.0.0
bareos-tr 2694 bruno mem REG 254,3 133344 1079141 /usr/lib64/liblzo2.so.2.0.0
bareos-tr 2694 bruno mem REG 254,3 88216 415089 /lib64/libz.so.1.2.8
bareos-tr 2694 bruno mem REG 254,3 18976 414880 /lib64/libcap.so.2.22
bareos-tr 2694 bruno mem REG 254,3 40880 415005 /lib64/libwrap.so.0.7.6
bareos-tr 2694 bruno mem REG 254,3 141506 414947 /lib64/libpthread-2.18.so
bareos-tr 2694 bruno mem REG 254,3 2000416 404513 /lib64/libcrypto.so.1.0.0
bareos-tr 2694 bruno mem REG 254,3 2003811 414946 /lib64/libc-2.18.so
bareos-tr 2694 bruno mem REG 254,3 92568 414949 /lib64/libgcc_s.so.1
bareos-tr 2694 bruno mem REG 254,3 995512 1083038 /usr/lib64/libstdc++.so.6.0.18
bareos-tr 2694 bruno mem REG 254,3 3045464 1081285 /usr/lib64/libQtCore.so.4.8.5
bareos-tr 2694 bruno mem REG 254,3 11253512 1082999 /usr/lib64/libQtGui.so.4.8.5
bareos-tr 2694 bruno mem REG 254,3 430208 1327573 /usr/lib64/bareos/libbareos-14.2.2.so
bareos-tr 2694 bruno mem REG 254,3 93536 1327574 /usr/lib64/bareos/libbareoscfg-14.2.2.so
bareos-tr 2694 bruno mem REG 254,3 154094 398832 /lib64/ld-2.18.so
bareos-tr 2694 bruno mem REG 254,4 86136 786718 /var/cache/fontconfig/b5c7c63143a222d0fb41621bb05e4dd9-x86_64.cache-4
bareos-tr 2694 bruno mem REG 254,4 102160 786710 /var/cache/fontconfig/8d4af663993b81a124ee82e610bb31f9-x86_64.cache-4
bareos-tr 2694 bruno mem REG 254,3 256356 959513 /usr/lib/locale/fr_CH.utf8/LC_CTYPE
bareos-tr 2694 bruno mem REG 254,3 1243766 927170 /usr/lib/locale/fr_CH.utf8/LC_COLLATE
bareos-tr 2694 bruno mem REG 254,4 9608 786730 /var/cache/fontconfig/d458be102e54cf534d1eef0dcbb02d07-x86_64.cache-4
bareos-tr 2694 bruno mem REG 254,4 4040 786719 /var/cache/fontconfig/2f36c32c6ec3ca87de89a6eb757fa974-x86_64.cache-4
bareos-tr 2694 bruno mem REG 254,4 3072 786610 /var/cache/fontconfig/2a6be49ceff89c94e9adf1154f671c58-x86_64.cache-4
bareos-tr 2694 bruno mem REG 254,4 2544 786605 /var/cache/fontconfig/56762fdc8a452d8a54310bd64bbd8798-x86_64.cache-4
bareos-tr 2694 bruno mem REG 254,4 1576 786793 /var/cache/fontconfig/d4501469e4b92c47361ab1492f0f2d98-x86_64.cache-4
bareos-tr 2694 bruno mem REG 254,3 153231 1988341 /usr/share/locale/fr/LC_MESSAGES/libc.mo
bareos-tr 2694 bruno mem REG 254,3 54 807741 /usr/lib/locale/fr_CH.utf8/LC_NUMERIC
bareos-tr 2694 bruno mem REG 254,3 2366 959511 /usr/lib/locale/fr_CH.utf8/LC_TIME
bareos-tr 2694 bruno mem REG 254,3 294 799180 /usr/lib/locale/fr_CH.utf8/LC_MONETARY
bareos-tr 2694 bruno mem REG 254,3 58 959510 /usr/lib/locale/fr_CH.utf8/LC_MESSAGES/SYS_LC_MESSAGES
bareos-tr 2694 bruno mem REG 254,3 34 926931 /usr/lib/locale/fr_CH.utf8/LC_PAPER
bareos-tr 2694 bruno mem REG 254,3 62 951747 /usr/lib/locale/fr_CH.utf8/LC_NAME
bareos-tr 2694 bruno mem REG 254,3 127 925564 /usr/lib/locale/fr_CH.utf8/LC_ADDRESS
bareos-tr 2694 bruno mem REG 254,3 49 809549 /usr/lib/locale/fr_CH.utf8/LC_TELEPHONE
bareos-tr 2694 bruno mem REG 254,3 23 959514 /usr/lib/locale/fr_CH.utf8/LC_MEASUREMENT
bareos-tr 2694 bruno mem REG 254,3 26244 1192397 /usr/lib64/gconv/gconv-modules.cache
bareos-tr 2694 bruno mem REG 254,3 353 927102 /usr/lib/locale/fr_CH.utf8/LC_IDENTIFICATION
bareos-tr 2694 bruno 0r FIFO 0,8 0t0 20047 pipe
bareos-tr 2694 bruno 1w REG 254,2 2475484 2621637 /home/bruno/.xsession-errors-:0
bareos-tr 2694 bruno 2w REG 254,2 2475484 2621637 /home/bruno/.xsession-errors-:0
bareos-tr 2694 bruno 3u 0000 0,9 0 7427 anon_inode
bareos-tr 2694 bruno 4r FIFO 0,8 0t0 30872 pipe
bareos-tr 2694 bruno 5w FIFO 0,8 0t0 30872 pipe
bareos-tr 2694 bruno 6u unix 0x0000000000000000 0t0 30876 socket
bareos-tr 2694 bruno 7u unix 0x0000000000000000 0t0 30898 socket
bareos-tr 2694 bruno 8u unix 0x0000000000000000 0t0 30901 socket
bareos-tr 2694 bruno 9u 0000 0,9 0 7427 anon_inode
bareos-tr 2694 bruno 10u IPv6 31183 0t0 TCP localhost6.localdomain6:36912->localhost6.localdomain6:bacula-fd (ESTABLISHED)
TagsNo tags attached.

Relationships

has duplicate 0000439 closed bareos-fd takes a long time to stop and than gets killed 
related to 0000935 closedbruno-at-bareos Unable to stop filedaemon 

Activities

pstorz

pstorz

2015-01-15 15:59

administrator   ~0001187

Hello Bruno,

is this behaviour already in Version 13.2 or is it new in 14.2?
tigerfoot

tigerfoot

2015-01-15 19:21

developer   ~0001189

Philipp. Honestly I've no idea.
When I've started to install 13.2 most of the time those where blank computer.
Other were servers without tray-monitor (upgrade from 12x to 14x)

On windows bareos-fd + tray-monitor it has worked (if I remember correctly)
I'm not 100% sure (due to the fact I've known this could be a problem and has perhaps close manually the tray-monitor before the upgrade)

It's shows the trouble for 100% sure on a linux desktop version 13x to 14x
joergs

joergs

2015-01-30 15:43

developer   ~0001245

Same problem on my system (bareos-master)
mvwieringen

mvwieringen

2015-01-30 17:11

developer   ~0001246

Put a debugger on bareos-fd and breakpoint on terminate_filed and see what happens
when it gets the signal to exit by stepping through the code.
Hilario

Hilario

2015-03-19 15:26

reporter   ~0001325

It is important to notice that this bug shows its face even when the tray-monitor is running on another computer (checked with Bareos version 14.2.2 Centos 7 and Fedora20).
tigerfoot

tigerfoot

2017-11-03 11:22

developer   ~0002810

I've an update on this.
Actually windows installer close correctly the bareos-tray monitor for the user connected (and obviously doing the installation as administrator).
But if you are on the terminal server and some other normal user have a session opened there's still chances that bareos-tray monitor is still opened and running for them. If not all bareos-tray-monitor.exe are killed then the installation failed.

So the installer (if possible) should kill all occurence of bareos-tray-monitor during the uninstall phase).

Seen with 16.2.7 release from subscription channel.
franku

franku

2019-09-02 17:22

administrator   ~0003564

Fix committed to bareos master branch with changesetid 11740.

Related Changesets

bareos: master d594cd8a

2019-08-27 19:28

franku

Ported: N/A

Details Diff
workq: refactor code or remove unneded code for worker threads

fixes 0000385: bareos daemon stop restart hang if bareos-tray-monitor is connected

The functionality was overengineered and did not do what it
probably should do.

The names workq or workqueue did not explain what the code
actually did and it was not reliable.

Therefore refactored the complete code:

- ThreadList is now a class that contains the calls to create
worker-threads who will call a pre-defined handler routine
- ThreadListPrivate contains the implementation and is hidden from
the public interface
- using ThreadList with RAII in the daemon code, accordingly
- the new functionality consists mainly of a list where new threads
are added to, therefore the name of all files and variables
are changed into names containing "thread list" or similar
- used std::thread instead of pthread
- used std::set instead of a linked list
- worker threads start detached and cleanup resources by themself

- removed or renamed variables
- removed unused code in the thread start and at the end
- previous return type of int was not used as intended,
therefore a simple bool is enough
- upon shutdown threads are not joined but the parent thread will
wait until the thread list is empty or a timeout occurs
- added a user callback for each worker-thread that is called from
the parent thread before it enters the waiting state

- ua_server: close user_agent_socket only in FreeUaContext
- synchronize shutdown of worker threads on daemon shutdown
- updated code that calls the new functions accordingly

- fd and dir: added a worker-thread shutdown handler to each
socket server
- sd: do not cleanup jcr memory of a console connection in the
terminate handler
- dird: StopSocketServer is now called before StopWatchdog so
socket operations still can time out
- set the timeout for the second call of SSL_shutdown from
120 seconds to 2 seconds as this makes director shutdown
faster

- added a unit test
Affected Issues
0000385
mod - core/src/dird/dird.cc Diff File
mod - core/src/dird/jobq.cc Diff File
mod - core/src/dird/socket_server.cc Diff File
mod - core/src/dird/ua_server.cc Diff File
mod - core/src/filed/socket_server.cc Diff File
mod - core/src/include/jcr.h Diff File
mod - core/src/lib/CMakeLists.txt Diff File
mod - core/src/lib/bnet_server_tcp.cc Diff File
mod - core/src/lib/bnet_server_tcp.h Diff File
mod - core/src/lib/lib.h Diff File
add - core/src/lib/thread_list.cc Diff File
add - core/src/lib/thread_list.h Diff File
mod - core/src/lib/tls_openssl.cc Diff File
rm - core/src/lib/workq.cc Diff File
rm - core/src/lib/workq.h Diff File
mod - core/src/stored/ndmp_tape.cc Diff File
mod - core/src/stored/socket_server.cc Diff File
mod - core/src/stored/stored.cc Diff File
mod - core/src/tests/CMakeLists.txt Diff File
add - core/src/tests/thread_list.cc Diff File

Issue History

Date Modified Username Field Change
2014-12-26 11:41 tigerfoot New Issue
2015-01-15 15:59 pstorz Note Added: 0001187
2015-01-15 15:59 pstorz Assigned To => pstorz
2015-01-15 15:59 pstorz Status new => feedback
2015-01-15 19:21 tigerfoot Note Added: 0001189
2015-01-15 19:21 tigerfoot Status feedback => assigned
2015-01-30 15:43 joergs Note Added: 0001245
2015-01-30 17:11 mvwieringen Note Added: 0001246
2015-03-19 10:54 joergs Relationship added has duplicate 0000439
2015-03-19 15:26 Hilario Note Added: 0001325
2015-03-31 14:55 pstorz Assigned To pstorz =>
2015-03-31 14:55 pstorz Status assigned => confirmed
2017-11-03 11:22 tigerfoot Note Added: 0002810
2018-04-05 18:26 joergs Relationship added related to 0000935
2019-09-02 17:01 franku Status confirmed => resolved
2019-09-02 17:01 franku Resolution open => fixed
2019-09-02 17:01 franku Fixed in Version => 19.2.1
2019-09-02 17:22 franku Changeset attached => bareos master d594cd8a
2019-09-02 17:22 franku Note Added: 0003564
2019-09-02 17:22 franku Assigned To => franku
2019-12-18 15:24 arogge Status resolved => closed