[Samba] smbd fails to start after upgrade to version 4.11.6 (raspbian)

Roy Eastwood spindles7 at gmail.com
Fri Jan 31 23:03:29 UTC 2020


On 31 January 2020 13:33 L.P.H. van Belle via samba wrote:
> Hai Roy,
> 
> Hm,, can you try this.
> 
> # /etc/nsswitch.conf
> Change
> hosts:          files mdns4_minimal [NOTFOUND=return] dns
> To
> hosts:          files dns mdns4_minimal [NOTFOUND=return]
> 
> Try again.
No good.   Still smbd fails.

> Not working, remove
> # disable smb1
> 	client min protocol = smb2_02
> 	server min protocol = smb2_02
> 
> Try again.
Still no good.

> Not working,
> 
> systemctl cat smbd winbind nmbd
> ( post the output so i can verify it. )
Here they are:
# /lib/systemd/system/smbd.service
[Unit]
Description=Samba SMB Daemon
Documentation=man:smbd(8) man:samba(7) man:smb.conf(5)
Wants=network-online.target
After=network.target network-online.target nmbd.service winbind.service

[Service]
Type=notify
NotifyAccess=all
PIDFile=/run/samba/smbd.pid
LimitNOFILE=16384
EnvironmentFile=-/etc/default/samba
ExecStartPre=/usr/share/samba/update-apparmor-samba-profile
ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS
ExecReload=/bin/kill -HUP $MAINPID
LimitCORE=infinity


[Install]
WantedBy=multi-user.target
===========================================
# /lib/systemd/system/winbind.service
[Unit]
Description=Samba Winbind Daemon
Documentation=man:winbindd(8) man:samba(7) man:smb.conf(5)
After=network.target nmbd.service

[Service]
Type=notify
NotifyAccess=all
PIDFile=/run/samba/winbindd.pid
EnvironmentFile=-/etc/default/samba
ExecStart=/usr/sbin/winbindd --foreground --no-process-group "$WINBINDOPTIONS"
ExecReload=/bin/kill -HUP $MAINPID
LimitCORE=infinity


[Install]
WantedBy=multi-user.target
==============================================
# /lib/systemd/system/nmbd.service
[Unit]
Description=Samba NMB Daemon
Documentation=man:nmbd(8) man:samba(7) man:smb.conf(5)
Wants=network-online.target
After=network.target network-online.target

[Service]
Type=notify
NotifyAccess=all
PIDFile=/run/samba/nmbd.pid
EnvironmentFile=-/etc/default/samba
ExecStart=/usr/sbin/nmbd --foreground --no-process-group $NMBDOPTIONS
ExecReload=/bin/kill -HUP $MAINPID
LimitCORE=infinity


[Install]
WantedBy=multi-user.target
==============================================

> I think it has todo with the wlan interface.
> 
> Now look ath the lines :
> After=
> Wants=
> 
> ! Note, these might be different per service.
> 
> Now, run the following.
> systemctl edit smbd
> Add:
> [Unit]
> Wants=network-online.target
> After=network.target network-online.target nmbd.service winbind.service
> 
> systemctl edit winbind
> [Unit]
> After=network.target nmbd.service
> Wants=network-online.target
> 
> And
> systemctl edit nmbd
> [Unit]
> Wants=network-online.target
> After=network.target network-online.target
> 
> Reboot

OK, did the above and that's not fixed it.   (I don't have wifi configured)

Thanks,
Roy




More information about the samba mailing list