[Pkg-samba-maint] Bug#859526: samba: unable to install/run samba package in IPv6 only host.

Volodymyr Samodid jax.ninzucu at gmail.com
Tue Apr 4 17:03:20 UTC 2017


Package: samba
Version: 2:4.5.8+dfsg-1
Severity: important
Tags: ipv6

I am unable to install samba package in IPv6 only host.
I use lxc IPv6 only container with debian stretch.

--- output skiped ----
Samba is not being run as an AD Domain Controller, masking samba-ad-dc-service.
Please ignore the following error about deb-systemd-helper not finding samba-ad-dc-service.
Created symlink /etc/systemd/system/multi-user.target.wants/nmbd.service → /lib/systemd/system/nmbd.service.
Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked.
/usr/bin/deb-systemd-helper: error: systemctl preset failed on samba-ad-dc.service: No such file or directory
Created symlink /etc/systemd/system/multi-user.target.wants/smbd.service → /lib/systemd/system/smbd.service.
Job for nmbd.service failed because a timeout was exceeded.
See "systemctl status nmbd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript nmbd, action "start" failed.
● nmbd.service - Samba NMB Daemon
   Loaded: loaded (/lib/systemd/system/nmbd.service; enabled; vendor preset: enabled)
   Active: failed (Result: timeout) since Tue 2017-04-04 16:02:08 UTC; 20ms ago
     Docs: man:nmbd(8)
           man:samba(7)
           man:smb.conf(5)
 Main PID: 6655
   Status: "nmbd: No local IPv4 non-loopback interfaces available, waiting for interface ..."
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/nmbd.service

Apr 04 16:00:38 my-smb systemd[1]: Starting Samba NMB Daemon...
Apr 04 16:00:38 my-smb systemd[1]: nmbd.service: Supervising process 6655 which is not our child. We'll most likely not notic…it exits.
Apr 04 16:02:08 my-smb systemd[1]: nmbd.service: Start operation timed out. Terminating.
Apr 04 16:02:08 my-smb systemd[1]: nmbd.service: Killing process 6655 (nmbd) with signal SIGKILL.
Apr 04 16:02:08 my-smb systemd[1]: Failed to start Samba NMB Daemon.
Apr 04 16:02:08 my-smb systemd[1]: nmbd.service: Unit entered failed state.
Apr 04 16:02:08 my-smb systemd[1]: nmbd.service: Failed with result 'timeout'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package samba (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.24-9) ...
Processing triggers for systemd (232-19) ...
Errors were encountered while processing:
 samba
E: Sub-process /usr/bin/dpkg returned an error code (1)

# ip -4 a sh
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever

If I add dummy ipv4 it helps.

root at my-smb:/# apt-get install samba
Reading package lists... Done
Building dependency tree       
Reading state information... Done
samba is already the newest version (2:4.5.8+dfsg-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up samba (2:4.5.8+dfsg-1) ...
Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked.
/usr/bin/deb-systemd-helper: error: systemctl preset failed on samba-ad-dc.service: No such file or directory
Processing triggers for libc-bin (2.24-9) ...
W: APT had planned for dpkg to do more than it reported back (0 vs 4).
   Affected packages: samba:amd64

But I want to make that container IPv6 only.

# ip a del 192.0.2.3/32 dev eth0

# systemctl restart nmbd.service
Job for nmbd.service failed because a timeout was exceeded.
See "systemctl status nmbd.service" and "journalctl -xe" for details.

# journalctl -u nmbd.service 
-- Logs begin at Tue 2017-04-04 15:53:07 UTC, end at Tue 2017-04-04 16:29:15 UTC. --
Apr 04 16:00:38 my-smb systemd[1]: nmbd.service: Failed to reset devices.list: Operation not permitted
Apr 04 16:00:38 my-smb systemd[1]: Starting Samba NMB Daemon...
Apr 04 16:00:38 my-smb systemd[1]: nmbd.service: Supervising process 6655 which is not our child. We'll most likely not notice 
when it exits.
Apr 04 16:02:08 my-smb systemd[1]: nmbd.service: Start operation timed out. Terminating.
Apr 04 16:02:08 my-smb systemd[1]: nmbd.service: Killing process 6655 (nmbd) with signal SIGKILL.
Apr 04 16:02:08 my-smb systemd[1]: Failed to start Samba NMB Daemon.
Apr 04 16:02:08 my-smb systemd[1]: nmbd.service: Unit entered failed state.
Apr 04 16:02:08 my-smb systemd[1]: nmbd.service: Failed with result 'timeout'.
Apr 04 16:22:10 my-smb systemd[1]: nmbd.service: Failed to reset devices.list: Operation not permitted
Apr 04 16:22:10 my-smb systemd[1]: Starting Samba NMB Daemon...
Apr 04 16:22:10 my-smb systemd[1]: nmbd.service: Supervising process 6805 which is not our child. We'll most likely not notice 
when it exits.
Apr 04 16:22:10 my-smb systemd[1]: Started Samba NMB Daemon.
Apr 04 16:24:00 my-smb systemd[1]: Stopping Samba NMB Daemon...
Apr 04 16:24:00 my-smb systemd[1]: Stopped Samba NMB Daemon.
Apr 04 16:24:00 my-smb systemd[1]: nmbd.service: Failed to reset devices.list: Operation not permitted
Apr 04 16:24:00 my-smb systemd[1]: Starting Samba NMB Daemon...
Apr 04 16:24:00 my-smb systemd[1]: nmbd.service: Supervising process 6873 which is not our child. We'll most likely not notice 
when it exits.
Apr 04 16:24:16 my-smb systemd[1]: nmbd.service: Killing process 6873 (nmbd) with signal SIGKILL.
Apr 04 16:24:16 my-smb systemd[1]: nmbd.service: Killing process 6873 (nmbd) with signal SIGKILL.
Apr 04 16:24:16 my-smb systemd[1]: Stopped Samba NMB Daemon.
Apr 04 16:24:16 my-smb systemd[1]: nmbd.service: Failed to reset devices.list: Operation not permitted
Apr 04 16:24:16 my-smb systemd[1]: Starting Samba NMB Daemon...
Apr 04 16:24:16 my-smb systemd[1]: nmbd.service: Supervising process 6877 which is not our child. We'll most likely not notice 
when it exits.
Apr 04 16:25:46 my-smb systemd[1]: nmbd.service: Start operation timed out. Terminating.
Apr 04 16:25:46 my-smb systemd[1]: nmbd.service: Killing process 6877 (nmbd) with signal SIGKILL.
Apr 04 16:25:46 my-smb systemd[1]: Failed to start Samba NMB Daemon.
Apr 04 16:25:46 my-smb systemd[1]: nmbd.service: Unit entered failed state.
Apr 04 16:25:46 my-smb systemd[1]: nmbd.service: Failed with result 'timeout'.



-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

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


More information about the Pkg-samba-maint mailing list