[Pkg-samba-maint] Bug#932716: samba: smbd gets killed by systemd on magic script invocation

Alexander Zima azima at anexia-it.com
Mon Jul 22 08:14:25 BST 2019


Package: samba
Version: 2:4.5.16+dfsg-1+deb9u2
Severity: normal

Dear Maintainer,

   * What led up to the situation?

Samba was configured to use a magic script and the magic script was executed.


   * What exactly did you do (or not do) that was effective (or
     ineffective)?

Tried different settings in the systemd unit (Type forking, simple, notify) and
ultimately started smbd manually without systemd.


   * What was the outcome of this action?

When smbd was run manually, the magic script was executed normally and
everything worked as expected.
When smbd was started via systemd, systemd killed the smbd process. The log
reported the following:
Jun 26 14:18:19 vast01 systemd[1]: smbd.service: State 'stop-sigterm' timed out. Killing.
Jun 26 14:18:19 vast01 systemd[1]: smbd.service: Killing process 30152 (smbd) with signal SIGKILL.
Jun 26 14:18:19 vast01 systemd[1]: smbd.service: Killing process 12712 (smbd) with signal SIGKILL.
Jun 26 14:18:19 vast01 systemd[1]: smbd.service: Killing process 13890 (smbd) with signal SIGKILL.
Jun 26 14:18:19 vast01 systemd[1]: smbd.service: Killing process 30153 (smbd-notifyd) with signal SIGKILL.
Jun 26 14:18:19 vast01 systemd[1]: smbd.service: Killing process 30154 (cleanupd) with signal SIGKILL.
Jun 26 14:18:19 vast01 systemd[1]: smbd.service: Killing process 30156 (lpqd) with signal SIGKILL.
Jun 26 14:18:19 vast01 systemd[1]: smbd.service: Main process exited, code=killed, status=9/KILL
Jun 26 14:18:19 vast01 systemd[1]: smbd.service: Unit entered failed state.
Jun 26 14:18:19 vast01 systemd[1]: smbd.service: Failed with result 'timeout'


   * What outcome did you expect instead?

smbd should not get killed by systemd.


Since this is my first bug report, I may have missed something. If you
need further information, please let me know.

Best regards,
Alex


-- System Information:
Debian Release: 9.9
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-9-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages samba depends on:
ii  adduser              3.115
ii  dpkg                 1.18.25
ii  init-system-helpers  1.48
ii  libbsd0              0.8.3-1
ii  libc6                2.24-11+deb9u4
ii  libldb1              2:1.1.27-1+deb9u1
ii  libpam-modules       1.1.8-3.6
ii  libpam-runtime       1.1.8-3.6
ii  libpopt0             1.16-10+b2
ii  libpython2.7         2.7.13-2+deb9u3
ii  libtalloc2           2.1.8-1
ii  libtdb1              1.3.11-2
ii  libtevent0           0.9.31-1
ii  libwbclient0         2:4.5.16+dfsg-1+deb9u2
ii  lsb-base             9.20161125
ii  procps               2:3.3.12-3+deb9u1
ii  python               2.7.13-2
ii  python-dnspython     1.15.0-1+deb9u1
ii  python-samba         2:4.5.16+dfsg-1+deb9u2
ii  python2.7            2.7.13-2+deb9u3
ii  samba-common         2:4.5.16+dfsg-1+deb9u2
ii  samba-common-bin     2:4.5.16+dfsg-1+deb9u2
ii  samba-libs           2:4.5.16+dfsg-1+deb9u2
ii  tdb-tools            1.3.11-2
ii  update-inetd         4.44

Versions of packages samba recommends:
ii  attr                1:2.4.47-2+b2
ii  logrotate           3.11.0-0.1
ii  samba-dsdb-modules  2:4.5.16+dfsg-1+deb9u2
ii  samba-vfs-modules   2:4.5.16+dfsg-1+deb9u2

Versions of packages samba suggests:
pn  bind9          <none>
pn  bind9utils     <none>
pn  ctdb           <none>
pn  ldb-tools      <none>
pn  ntp | chrony   <none>
pn  smbldap-tools  <none>
pn  ufw            <none>
pn  winbind        <none>

-- Configuration Files:
/etc/init.d/samba [Errno 2] No such file or directory: '/etc/init.d/samba'
/etc/init.d/smbd [Errno 2] No such file or directory: '/etc/init.d/smbd'

-- no debconf information
root at vast-proj01:~# cat /tmp/reportbug-samba-20190722-12176-n7ckrdjk
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Alexander Zima <azima at anexia-it.com>
To: Debian Bug Tracking System <submit at bugs.debian.org>
Subject: samba: smbd gets killed by systemd on magic script invocation
Message-ID: <156377966520.12176.3180636668761773776.reportbug at vast-proj01>
X-Mailer: reportbug 7.1.7
Date: Mon, 22 Jul 2019 07:14:25 +0000

Package: samba
Version: 2:4.5.16+dfsg-1+deb9u2
Severity: normal

Dear Maintainer,

   * What led up to the situation?

Samba was configured to use a magic script and the magic script was executed.


   * What exactly did you do (or not do) that was effective (or
     ineffective)?

Tried different settings in the systemd unit (Type forking, simple, notify) and
ultimately started smbd manually without systemd.


   * What was the outcome of this action?

When smbd was run manually, the magic script was executed normally and
everything worked as expected.
When smbd was started via systemd, systemd killed the smbd process. The log
reported the following:
Jun 26 14:18:19 vast01 systemd[1]: smbd.service: State 'stop-sigterm' timed out. Killing.
Jun 26 14:18:19 vast01 systemd[1]: smbd.service: Killing process 30152 (smbd) with signal SIGKILL.
Jun 26 14:18:19 vast01 systemd[1]: smbd.service: Killing process 12712 (smbd) with signal SIGKILL.
Jun 26 14:18:19 vast01 systemd[1]: smbd.service: Killing process 13890 (smbd) with signal SIGKILL.
Jun 26 14:18:19 vast01 systemd[1]: smbd.service: Killing process 30153 (smbd-notifyd) with signal SIGKILL.
Jun 26 14:18:19 vast01 systemd[1]: smbd.service: Killing process 30154 (cleanupd) with signal SIGKILL.
Jun 26 14:18:19 vast01 systemd[1]: smbd.service: Killing process 30156 (lpqd) with signal SIGKILL.
Jun 26 14:18:19 vast01 systemd[1]: smbd.service: Main process exited, code=killed, status=9/KILL
Jun 26 14:18:19 vast01 systemd[1]: smbd.service: Unit entered failed state.
Jun 26 14:18:19 vast01 systemd[1]: smbd.service: Failed with result 'timeout'


   * What outcome did you expect instead?

smbd should not get killed by systemd.


Since this is my first bug report, I may have missed something. If you
need further information, please let me know.

Best regards,
Alex


-- System Information:
Debian Release: 9.9
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-9-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages samba depends on:
ii  adduser              3.115
ii  dpkg                 1.18.25
ii  init-system-helpers  1.48
ii  libbsd0              0.8.3-1
ii  libc6                2.24-11+deb9u4
ii  libldb1              2:1.1.27-1+deb9u1
ii  libpam-modules       1.1.8-3.6
ii  libpam-runtime       1.1.8-3.6
ii  libpopt0             1.16-10+b2
ii  libpython2.7         2.7.13-2+deb9u3
ii  libtalloc2           2.1.8-1
ii  libtdb1              1.3.11-2
ii  libtevent0           0.9.31-1
ii  libwbclient0         2:4.5.16+dfsg-1+deb9u2
ii  lsb-base             9.20161125
ii  procps               2:3.3.12-3+deb9u1
ii  python               2.7.13-2
ii  python-dnspython     1.15.0-1+deb9u1
ii  python-samba         2:4.5.16+dfsg-1+deb9u2
ii  python2.7            2.7.13-2+deb9u3
ii  samba-common         2:4.5.16+dfsg-1+deb9u2
ii  samba-common-bin     2:4.5.16+dfsg-1+deb9u2
ii  samba-libs           2:4.5.16+dfsg-1+deb9u2
ii  tdb-tools            1.3.11-2
ii  update-inetd         4.44

Versions of packages samba recommends:
ii  attr                1:2.4.47-2+b2
ii  logrotate           3.11.0-0.1
ii  samba-dsdb-modules  2:4.5.16+dfsg-1+deb9u2
ii  samba-vfs-modules   2:4.5.16+dfsg-1+deb9u2

Versions of packages samba suggests:
pn  bind9          <none>
pn  bind9utils     <none>
pn  ctdb           <none>
pn  ldb-tools      <none>
pn  ntp | chrony   <none>
pn  smbldap-tools  <none>
pn  ufw            <none>
pn  winbind        <none>

-- Configuration Files:
/etc/init.d/samba [Errno 2] No such file or directory: '/etc/init.d/samba'
/etc/init.d/smbd [Errno 2] No such file or directory: '/etc/init.d/smbd'

-- no debconf information



More information about the Pkg-samba-maint mailing list