smbd crash after reboot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Running Ubuntu 16.04.3 LTS, with samba 2:4.3.11+
My problem is that smbd stops after reboot. If I manually restart the smbd service, the service starts normally.
# systemctl status smbd
● smbd.service - LSB: start Samba SMB/CIFS daemon (smbd)
Loaded: loaded (/etc/init.d/smbd; bad; vendor preset: enabled)
Active: active (exited) since Fri 2017-11-17 21:57:16 CET; 1h 41min ago
Docs: man:systemd-
Process: 2250 ExecStart=
Tasks: 0
Memory: 0B
CPU: 0
Nov 17 21:57:12 neo systemd[1]: Starting LSB: start Samba SMB/CIFS daemon (smbd)...
Nov 17 21:57:15 neo smbd[2250]: * Starting SMB/CIFS daemon smbd
Nov 17 21:57:16 neo smbd[2250]: ...done.
Nov 17 21:57:16 neo systemd[1]: Started LSB: start Samba SMB/CIFS daemon (smbd).
/var/log/
[2017/11/17 21:57:15.984660, 0] ../source3/
WARNING: no network interfaces found
[2017/11/17 21:57:16.209233, 0] ../lib/
STATUS=daemon 'smbd' finished starting up and ready to serve connections
[2017/11/17 21:57:16.209963, 0] ../source3/
open_
[2017/11/17 21:57:16.210191, 0] ../source3/
PANIC (pid 2263): open_sockets_smbd() failed
[2017/11/17 21:57:16.210643, 0] ../source3/
BACKTRACE: 9 stack frames:
#0 /usr/lib/
#1 /usr/lib/
#2 /usr/lib/
#3 /usr/lib/
#4 /usr/lib/
#5 /usr/lib/
#6 /usr/sbin/
#7 /lib/x86_
#8 /usr/sbin/
[2017/11/17 21:57:16.210797, 0] ../source3/
smb_panic(): calling panic action [/usr/share/
[2017/11/17 21:57:16.212999, 0] ../source3/
smb_panic(): action returned status 0
[2017/11/17 21:57:16.213070, 0] ../source3/
dumping core in /var/log/
(no core dump can be found at the indicated location unfortunately.)
With some aid in #ubuntu-server, this can probably be related to the sequencing of network coming up. This server use DHCP assigned server addresses, so there will be a delay between ifup and network being online.
As can be seen below: smbd seems to be starting much earlier than network online, while nmbd is started after network online.
Nov 17 21:57:11 neo kernel: r8169 0000:03:00.0 enp3s0: link up
Nov 17 21:57:11 neo kernel: IPv6: ADDRCONF(
Nov 17 21:57:12 neo dhclient[2055]: DHCPDISCOVER on enp3s0 to 255.255.255.255 port 67 interval 4 (xid=0x376d3044)
Nov 17 21:57:12 neo sh[2019]: DHCPDISCOVER on enp3s0 to 255.255.255.255 port 67 interval 4 (xid=0x376d3044)
Nov 17 21:57:12 neo dhclient[2055]: DHCPREQUEST of 10.5.5.10 on enp3s0 to 255.255.255.255 port 67 (xid=0x44306d37)
Nov 17 21:57:12 neo sh[2019]: DHCPREQUEST of 10.5.5.10 on enp3s0 to 255.255.255.255 port 67 (xid=0x44306d37)
Nov 17 21:57:12 neo sh[2019]: DHCPOFFER of 10.5.5.10 from 10.5.5.1
Nov 17 21:57:12 neo dhclient[2055]: DHCPOFFER of 10.5.5.10 from 10.5.5.1
Nov 17 21:57:12 neo dhclient[2055]: DHCPACK of 10.5.5.10 from 10.5.5.1
Nov 17 21:57:12 neo sh[2019]: DHCPACK of 10.5.5.10 from 10.5.5.1
Nov 17 21:57:12 neo systemd[1]: Starting LSB: start Samba SMB/CIFS daemon (smbd)...
Nov 17 21:57:15 neo smbd[2250]: * Starting SMB/CIFS daemon smbd
Nov 17 21:57:16 neo smbd[2250]: ...done.
Nov 17 21:57:16 neo systemd[1]: Started LSB: start Samba SMB/CIFS daemon (smbd).
Nov 17 21:57:17 neo dhclient[2055]: bound to 10.5.5.10 -- renewal in 33991 seconds.
Nov 17 21:57:17 neo sh[2019]: bound to 10.5.5.10 -- renewal in 33991 seconds.
Nov 17 21:57:18 neo systemd[1]: Started Raise network interfaces.
Nov 17 21:57:18 neo systemd[1]: Reached target Network.
Nov 17 21:57:18 neo systemd[1]: Starting A high performance web server and a reverse proxy server...
Nov 17 21:57:18 neo systemd[1]: Starting Statistics collection and monitoring daemon...
Nov 17 21:57:18 neo systemd[1]: Starting OpenBSD Secure Shell server...
Nov 17 21:57:18 neo systemd[1]: Starting Docker Application Container Engine...
Nov 17 21:57:18 neo systemd[1]: Started Unattended Upgrades Shutdown.
Nov 17 21:57:18 neo systemd[1]: Reached target Network is Online.
Nov 17 21:57:18 neo systemd[1]: Started Daily apt download activities.
Nov 17 21:57:18 neo systemd[1]: Started Daily apt upgrade and clean activities.
Nov 17 21:57:18 neo systemd[1]: Reached target Timers.
Nov 17 21:57:18 neo systemd[1]: Starting /etc/rc.local Compatibility...
Nov 17 21:57:18 neo systemd[1]: Starting LSB: start Samba NetBIOS nameserver (nmbd)...
Nov 17 21:57:18 neo systemd[1]: Starting LSB: start Samba daemons for the AD DC...
Nov 17 21:57:18 neo systemd[1]: Starting LSB: disk temperature monitoring daemon...
Nov 17 21:57:18 neo systemd[1]: Started LSB: Postfix Mail Transport Agent.
Nov 17 21:57:18 neo systemd[1]: Started /etc/rc.local Compatibility.
Nov 17 21:57:18 neo systemd[1]: Started LSB: Network share OpenZFS datasets..
Interestingly, smbd seems to depend on nmbd, yet they are started in the oposite order.
# systemd-analyze critical-chain smbd.service
The time after the unit is active or started is printed after the "@" character.
The time the unit takes to start is printed after the "+" character.
smbd.service +3.403s
└─nmbd.service @24.357s +471ms
└─network-
└─network.
└
Thanks for filing this bug in Ubuntu.
Could you please attach your /etc/samba/smb.conf file?
I would also like to take a look at the log files from /var/log/samba/log*
Thanks