Bug#1090974: nmbd.service: Failed with result 'timeout'.
Hi everyone, I was also being affected by this. I find nmbd useful to be able to just refer to the machines by their names in controlled local networks, with a very simple setup. When I applied the suggested workaround, I seemed to lose that functionality. By inspecting the output of systemd-analyze critical-chain I found another way - just disable the winbind service: systemctl disable winbind The boot time is thus much reduced and the name resolution offered by nmbd continues working as before. I see no degradation to any other function, so this seems to be fine for my case. Regards, -- Luís Picciochi Oliveira
Bug#1090974: nmbd.service: Failed with result 'timeout'.
Package: samba Version: 2:4.23.6+dfsg-1+b1 Followup-For: Bug #1090974 X-Debbugs-Cc: [email protected] Dear Maintainer, With "disable netbios = yes" in smb.conf by default, they are no time out any more. Regards -- Package-specific info: * /etc/samba/smb.conf present, but not attached -- System Information: Debian Release: forky/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 6.19.6+deb14-amd64 (SMP w/8 CPU threads; PREEMPT) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages samba depends on: ii libbsd0 0.12.2-2+b1 ii libc6 2.42-13 ii libcups2t64 2.4.16-1 ii libdbus-1-3 1.16.2-4 ii libgnutls30t643.8.12-3 ii libldap2 2.6.10+dfsg-1+b1 ii libldb2 2:2.11.0+samba4.23.6+dfsg-1+b1 ii libpopt0 1.19+dfsg-2+b1 ii libtalloc22:2.4.3+samba4.23.6+dfsg-1+b1 ii libtdb1 2:1.4.14+samba4.23.6+dfsg-1+b1 ii libtevent0t64 2:0.17.1+samba4.23.6+dfsg-1+b1 ii libtirpc3t64 1.3.6+ds-1 ii liburing2 2.14-1 ii passwd1:4.19.3-1 ii samba-common 2:4.23.6+dfsg-1 ii samba-common-bin 2:4.23.6+dfsg-1+b1 ii samba-libs [libndr6] 2:4.23.6+dfsg-1+b1 samba recommends no packages. Versions of packages samba suggests: ii attr 1:2.5.2-4 pn ctdb pn python3-samba pn samba-vfs-ceph pn samba-vfs-glusterfs pn ufw ii winbind 2:4.23.6+dfsg-1+b1 -- no debconf information
Bug#1090974: nmbd.service: Failed with result 'timeout'.
On Sat, 21 Dec 2024 17:27:09 +0300 Michael Tokarev wrote: Meanwhile, can you just disable netbios? Are you sure you actually need it? add 'disable netbios = yes' to the '[global]' section of samba.conf, and it wont start anymore (or just disable the systemd service). I remind both reporters of this bug, that I'm still waiting for the answer to this question - does it work for you with no nmbd running? netbios is obsolete and can't work in environments where no IPv4 network is available. To me it is easier to just drop nmbd from the default config and be done with it, while for "proper" fix it might require quite a lot of additional tweaking. Thanks, /mjt
Bug#1090974: nmbd.service: Failed with result 'timeout'.
Package: samba Version: 2:4.22.1+dfsg-1 Followup-For: Bug #1090974 X-Debbugs-Cc: [email protected] Dear Maintainer, I have the same issue in SAMBA 4.22.1+dfsg-1 Regards -- Package-specific info: * /etc/samba/smb.conf present, and attached -- System Information: Debian Release: trixie/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 6.12.22-amd64 (SMP w/8 CPU threads; PREEMPT) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages samba depends on: ii init-system-helpers 1.68 ii libbsd0 0.12.2-2 ii libc6 2.41-7 ii libcups2t64 2.4.10-2+b1 ii libdbus-1-3 1.16.2-2 ii libgnutls30t643.8.9-2 ii libldap2 2.6.9+dfsg-2 ii libldb2 2:2.11.0+samba4.22.1+dfsg-1 ii libpopt0 1.19+dfsg-2 ii libtalloc22:2.4.3+samba4.22.1+dfsg-1 ii libtasn1-64.20.0-2 ii libtdb1 2:1.4.13+samba4.22.1+dfsg-1 ii libtevent0t64 2:0.16.2+samba4.22.1+dfsg-1 ii libtirpc3t64 1.3.6+ds-1 ii liburing2 2.9-1 ii passwd1:4.17.4-2 ii procps2:4.0.4-8 ii samba-common 2:4.22.1+dfsg-1 ii samba-common-bin 2:4.22.1+dfsg-1 ii samba-libs [libndr6] 2:4.22.1+dfsg-1 Versions of packages samba recommends: ii attr 1:2.5.2-3 pn python3-samba pn samba-ad-dc Versions of packages samba suggests: pn ctdb pn samba-vfs-ceph pn samba-vfs-glusterfs pn ufw ii winbind 2:4.22.1+dfsg-1 -- no debconf information # # Sample configuration file for the Samba suite for Debian GNU/Linux. # # # This is the main Samba configuration file. You should read the # smb.conf(5) manual page in order to understand the options listed # here. Samba has a huge number of configurable options most of which # are not shown in this example # # Some options that are often worth tuning have been included as # commented-out examples in this file. # - When such options are commented with ";", the proposed setting #differs from the default Samba behaviour # - When commented with "#", the proposed setting is the default #behaviour of Samba but the option is considered important #enough to be mentioned here # # NOTE: Whenever you modify this file you should run the command # "testparm" to check that you have not made any basic syntactic # errors. #=== Global Settings === [global] ## Browsing/Identification ### # Change this to the workgroup/NT-domain name your Samba server will part of workgroup = Atlantis Networking # The specific set of interfaces / networks to bind to # This can be either the interface name or an IP address/netmask; # interface names are normally preferred ; interfaces = 127.0.0.0/8 eth0 # Only bind to the named interfaces and/or networks; you must use the # 'interfaces' option above to use this. # It is recommended that you enable this feature if your Samba machine is # not protected by a firewall or is a firewall itself. However, this # option cannot handle dynamic or non-broadcast interfaces correctly. ; bind interfaces only = yes Debugging/Accounting # This tells Samba to use a separate log file for each machine # that connects log file = /var/log/samba/log.%m # Cap the size of the individual log files (in KiB). max log size = 1000 # We want Samba to only log to /var/log/samba/log.{smbd,nmbd}. # Append syslog@1 if you want important messages to be sent to syslog too. logging = file # Do something sensible when Samba crashes: mail the admin a backtrace panic action = /usr/share/samba/panic-action %d ### Authentication ### # Server role. Defines in which mode Samba will operate. Possible # values are "standalone server", "member server", "classic primary # domain controller", "classic backup domain controller", "active # directory domain controller". # # Most people will want "standalone server" or "member server". # Running as "active directory domain controller" will require first # running "samba-tool domain provision" to wipe databases and create a # new domain. server role = standalone server obey pam restrictions = yes # This boolean parameter controls whether Samba attempts to sync the Unix # password with the SMB password when the encrypted SMB password in the # passdb is changed. unix password sync = yes # For Unix password sync to work on a Debian GNU/Linux system, the following # parameters must be set (thanks to Ian Kahan < for # sending the correct chat script for the passwd program in Debian Sarge). passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassw
Bug#1090974: nmbd.service: Failed with result 'timeout'.
21.12.2024 16:44, luca.pedrielli wrote: Package: samba Version: 2:4.21.2+dfsg-3 Severity: normal X-Debbugs-Cc: [email protected] after the latest updates the boot is slowed down by nmbd.service that receives a timeout. this happens in testing and fully updated unstable. it only happens if "No local IPv4 non-loopback interfaces available". to reproduce it just unplug the network cable and reboot or use a wifi connection. That's an excellent reproducer, thanks! Meanwhile, can you just disable netbios? Are you sure you actually need it? add 'disable netbios = yes' to the '[global]' section of samba.conf, and it wont start anymore (or just disable the systemd service). ... dic 21 10:53:04 unstable systemd[1]: Starting nmbd.service - Samba NMB Daemon... dic 21 10:54:34 unstable systemd[1]: nmbd.service: start operation timed out. Terminating. dic 21 10:54:34 unstable systemd[1]: nmbd.service: Failed with result 'timeout'. dic 21 10:54:34 unstable systemd[1]: Failed to start nmbd.service - Samba NMB Daemon. It looks like in samba 4.21 (as opposed to 4.17), this "waiting for interfaces" comes before sending systemd notification. Thanks, /mjt
Bug#1090974: nmbd.service: Failed with result 'timeout'.
Package: samba Version: 2:4.21.2+dfsg-3 Severity: normal X-Debbugs-Cc: [email protected] after the latest updates the boot is slowed down by nmbd.service that receives a timeout. this happens in testing and fully updated unstable. it only happens if "No local IPv4 non-loopback interfaces available". to reproduce it just unplug the network cable and reboot or use a wifi connection. it works in bookworm: root@bookworm:~# systemctl status nmbd ● nmbd.service - Samba NMB Daemon Loaded: loaded (/lib/systemd/system/nmbd.service; enabled; preset: enabled) Active: activating (start) since Sat 2024-12-21 10:33:33 CET; 1min 25s ago Docs: man:nmbd(8) man:samba(7) man:smb.conf(5) Process: 635 ExecCondition=/usr/share/samba/is-configured nmb (code=exited, status=0/SUCCESS) Main PID: 721 (nmbd) Status: "nmbd: No local IPv4 non-loopback interfaces available, waiting for interface ..." Tasks: 1 (limit: 2284) Memory: 6.1M CPU: 125ms CGroup: /system.slice/nmbd.service └─721 /usr/sbin/nmbd --foreground --no-process-group dic 21 10:33:33 bookworm systemd[1]: Starting nmbd.service - Samba NMB Daemon... stop working in unstable and testing root@unstable:~# systemctl status nmbd × nmbd.service - Samba NMB Daemon Loaded: loaded (/usr/lib/systemd/system/nmbd.service; enabled; preset: enabled) Active: failed (Result: timeout) since Sat 2024-12-21 10:54:34 CET; 48s ago Invocation: 609f91361bad477684c382f29ae33fe6 Docs: man:nmbd(8) man:samba(7) man:smb.conf(5) Process: 722 ExecCondition=/usr/share/samba/is-configured nmb (code=exited, status=0/SUCCESS) Process: 992 ExecStart=/usr/sbin/nmbd --foreground --no-process-group $NMBDOPTIONS (code=killed, signal=TERM) Main PID: 992 (code=killed, signal=TERM) Status: "nmbd: No local IPv4 non-loopback interfaces available, waiting for interface ..." Mem peak: 11.8M CPU: 219ms dic 21 10:53:04 unstable systemd[1]: Starting nmbd.service - Samba NMB Daemon... dic 21 10:54:34 unstable systemd[1]: nmbd.service: start operation timed out. Terminating. dic 21 10:54:34 unstable systemd[1]: nmbd.service: Failed with result 'timeout'. dic 21 10:54:34 unstable systemd[1]: Failed to start nmbd.service - Samba NMB Daemon. -- Package-specific info: * /etc/samba/smb.conf present, but not attached -- System Information: Debian Release: trixie/sid APT prefers testing-debug APT policy: (500, 'testing-debug'), (500, 'testing'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 6.12.5-amd64 (SMP w/8 CPU threads; PREEMPT) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages samba depends on: ii init-system-helpers 1.67 ii libbsd0 0.12.2-2 ii libc6 2.40-4 ii libcups2t64 2.4.10-2 ii libdbus-1-3 1.16.0-1 ii libgnutls30t64 3.8.8-2 ii libldap-2.5-0 2.5.18+dfsg-3+b1 ii libldb2 2:2.10.0+samba4.21.2+dfsg-3 ii libpopt0 1.19+dfsg-2 ii libtalloc2 2.4.2-1+b3 ii libtasn1-6 4.19.0-3+b3 ii libtdb1 1.4.12-1 ii libtevent0t64 0.16.1-3 ii libtirpc3t64 1.3.4+ds-1.3+b1 ii liburing2 2.8-1 ii passwd 1:4.16.0-7 ii procps 2:4.0.4-6 ii samba-common 2:4.21.2+dfsg-3 ii samba-common-bin 2:4.21.2+dfsg-3 ii samba-libs [libndr5] 2:4.21.2+dfsg-3 Versions of packages samba recommends: ii attr 1:2.5.2-2 ii python3-samba 2:4.21.2+dfsg-3 ii samba-ad-dc 2:4.21.2+dfsg-3 Versions of packages samba suggests: pn ctdb pn samba-vfs-ceph pn samba-vfs-glusterfs pn ufw ii winbind 2:4.21.2+dfsg-3 -- no debconf information -- Saluti, Luca Pedrielli

