samba does not install cleanly on machine with no IPv4 address

Bug #1864338 reported by Kevin Otte
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
New
Undecided
Andreas Hasenack

Bug Description

When installing the samba package:

invoke-rc.d: initscript nmbd, action "start" failed.
● nmbd.service - Samba NMB Daemon
   Loaded: loaded (/lib/systemd/system/nmbd.service; disabled; vendor preset: enabled)
   Active: failed (Result: timeout) since Sat 2020-02-22 18:47:14 EST; 7ms ago
     Docs: man:nmbd(8)
           man:samba(7)
           man:smb.conf(5)
  Process: 22714 ExecStart=/usr/sbin/nmbd --foreground --no-process-group $NMBDOPTIONS (code=killed, signal=TERM)
 Main PID: 22714 (code=killed, signal=TERM)
   Status: "nmbd: No local IPv4 non-loopback interfaces available, waiting for interface ..."

Feb 22 18:45:44 athens systemd[1]: Starting Samba NMB Daemon...
Feb 22 18:47:14 athens systemd[1]: nmbd.service: Start operation timed out. Terminating.
Feb 22 18:47:14 athens systemd[1]: nmbd.service: Failed with result 'timeout'.
Feb 22 18:47:14 athens systemd[1]: Failed to start Samba NMB Daemon.

Workaround is to disable the nmbd service then 'apt -f install' to complete the installation.

Suggest not enabling nmbd by default as most modern workloads do not require it. Otherwise preinst may need to perform the check for IPv4 addresses and do the disable.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: samba 2:4.7.6+dfsg~ubuntu-0ubuntu2.15
ProcVersionSignature: Ubuntu 4.15.0-88.88-generic 4.15.18
Uname: Linux 4.15.0-88-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.9-0ubuntu7.11
Architecture: amd64
BothFailedConnect: Yes
Date: Sat Feb 22 18:51:57 2020
InstallationDate: Installed on 2015-08-29 (1638 days ago)
InstallationMedia: Ubuntu-Server 15.04 "Vivid Vervet" - Release amd64 (20150422)
ProcEnviron:
 TERM=screen
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SambaServerRegression: No
SmbConfIncluded: No
SourcePackage: samba
TestparmExitCode: 0
UpgradeStatus: Upgraded to bionic on 2018-08-14 (557 days ago)

Revision history for this message
Kevin Otte (nivex) wrote :
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi Kevin,
I think I have heard Andreas talk about that and he has a great samba subject matter expertise so I assigned him for now to chime in here.

Changed in samba (Ubuntu):
assignee: nobody → Andreas Hasenack (ahasenack)
Revision history for this message
Andreas Hasenack (ahasenack) wrote :
Revision history for this message
Kevin Otte (nivex) wrote :

There was just an update to the samba package, and apparently it turns the nmbd service back on. Had to ssh in and disable it to manually apply the update after failing with Ansible.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.