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

Rowland penny rpenny at samba.org
Fri Jan 31 13:55:50 UTC 2020


On 31/01/2020 13:32, 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.

I already had:

hosts:          files dns mdns4

> Not working, remove
> # disable smb1
> 	client min protocol = smb2_02
> 	server min protocol = smb2_02
>
> Try again.
Didn't do anything
>
> Not working,
>
> systemctl cat smbd winbind nmbd
> ( post the output so i can verify it. )
# /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

[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.
Possibly.
>
> 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
As you can see, I already had what you suggested, but as I am not using 
nmbd, I removed any mention of nmbd, still no difference.
>
> Reboot
>
> @Rowland, is your wifi configured on the Pi?

Do you mean as in 'ip address':

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 
group default qlen 1000
     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
     inet 127.0.0.1/8 scope host lo
        valid_lft forever preferred_lft forever
     inet6 ::1/128 scope host
        valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP 
group default qlen 1000
     link/ether dc:a6:32:06:87:79 brd ff:ff:ff:ff:ff:ff
     inet 192.168.0.157/24 brd 192.168.0.255 scope global dynamic eth0
        valid_lft 1439sec preferred_lft 1439sec
     inet6 fe80::dea6:32ff:fe06:8779/64 scope link
        valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group 
default qlen 1000
     link/ether dc:a6:32:06:87:7a brd ff:ff:ff:ff:ff:ff

Rowland





More information about the samba mailing list