[Bug 1731502] Re: nmbd starts fine with no interfaces, but doesn't notify systemd that it started
Robie Basak
1731502 at bugs.launchpad.net
Thu Sep 27 15:35:34 UTC 2018
** Tags added: triage
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1731502
Title:
nmbd starts fine with no interfaces, but doesn't notify systemd that
it started
Status in samba:
Unknown
Status in samba package in Ubuntu:
Triaged
Bug description:
nmbd seems to start fine when there are no non-loopback interfaces up,
and will loop indefinitely:
/* We only count IPv4, non-loopback interfaces here. */
while (iface_count_v4_nl() == 0) {
sleep(5);
load_interfaces();
}
It can happen that during boot there is really no interface available,
because, for example, it's a desktop connected via wifi and the
wireless connection is only established after the user logs in.
nmbd will happily start up and wait for an interface, but systemd is expecting a notification because the Type is set to notify:
$ cat packaging/systemd/nmb.service
[Unit]
Description=Samba NMB Daemon
After=syslog.target network.target
[Service]
Type=notify
(...)
So after about 1m30s without a notification from nmbd, systemd will
just kill it:
Oct 30 14:25:51 artful-samba-init systemd[1]: nmbd.service: Supervising process 171 which is not our child. We'll most likely not notice when it exits.
...
Oct 30 14:27:21 artful-samba-init systemd[1]: nmbd.service: Start operation timed out. Terminating.
Oct 30 14:27:21 artful-samba-init systemd[1]: nmbd.service: Killing process 171 (nmbd) with signal SIGKILL.
Oct 30 14:27:21 artful-samba-init systemd[1]: nmbd.service: Killing process 171 (nmbd) with signal SIGKILL.
Oct 30 14:27:21 artful-samba-init systemd[1]: Failed to start Samba NMB Daemon.
Oct 30 14:27:21 artful-samba-init systemd[1]: nmbd.service: Unit entered failed state.
Oct 30 14:27:21 artful-samba-init systemd[1]: nmbd.service: Failed with result 'timeout'.
--- Original description ---
ProblemType: Package
DistroRelease: Ubuntu Kylin 17.10
Package: samba 2:4.6.7+dfsg-1ubuntu3 [origin: Ubuntu]
ProcVersionSignature: Ubuntu 4.13.0-17.20-lowlatency 4.13.8
Uname: Linux 4.13.0-17-lowlatency x86_64
ApportVersion: 2.20.7-0ubuntu3.2
Architecture: amd64
Date: Fri Nov 10 09:51:44 2017
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2017-10-19 (22 days ago)
InstallationMedia: Ubuntu-Studio 17.04 "Zesty Zapus" - Release amd64 (20170412)
Python3Details: /usr/bin/python3.6, Python 3.6.3, python3-minimal, 3.6.3-0ubuntu2
PythonDetails: /usr/bin/python2.7, Python 2.7.14, python-minimal, 2.7.14-2ubuntu1
RelatedPackageVersions:
nautilus 1:3.26.0-0ubuntu1
gvfs 1.34.1-1ubuntu1
SambaClientRegression: No
SourcePackage: samba
Title: package samba 2:4.6.7+dfsg-1ubuntu3 [origin: Ubuntu] failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/samba/+bug/1731502/+subscriptions
More information about the foundations-bugs
mailing list