Page MenuHomeSolus

Update to samba 4.7.8 breaks browsing and samba.service
Closed, ResolvedPublic

Description

With samba 4.7.8, I can't browse my windows network anymore in Nautilus : I get an empty folder. When I try to go directly to a samba share in Nautilus using a saved shotcut (smb://some_ip/some_share), I get an error "software connexion abandoned". Nothing is logged in journalctl.

Also, when trying to start samba.service, with default config, I get :

Status: "daemon failed to start: Samba detected misconfigured 'server role' and exited. Check logs for details".
Error: 22 (Argument invalide)
jui 14 09:59:12 dell-laptop systemd[1]: Starting Samba AD Daemon...
jui 14 09:59:12 dell-laptop samba[3881]: Global parameter load printers found in service section!
jui 14 09:59:12 dell-laptop samba[3881]: Global parameter printcap name found in service section!
jui 14 09:59:12 dell-laptop samba[3881]: Global parameter disable spoolss found in service section!
jui 14 09:59:12 dell-laptop systemd[1]: samba.service: Main process exited, code=exited, status=1/FAILURE
jui 14 09:59:12 dell-laptop systemd[1]: samba.service: Failed with result 'exit-code'.
jui 14 09:59:12 dell-laptop systemd[1]: Failed to start Samba AD Daemon.

According to samba wiki, server role should be "standalone" not "standalone server".

I tried to change this setting in /usr/share/defaults/samba/smb.conf but I still have the error (note. I don't have a user defined smb.conf).

Event Timeline

I made browsing work again by creating /etc/samba/smb.conf and adding those lines:

client ipc min protocol = NT1
client ipc max protocol = SMB3
client min protocol = NT1
client max protocol = SMB3

Now I still can't start the samba daemon with the default config...

Have you tried giving the Help Center Samba documentation a quick look?

Also, what is your use case? Why are you attempting to start samba.service (which is the Active Directory daemon)?

My mistake : I confused the samba service and the smb service :(

Still, should the error "Samba detected misconfigured 'server role'" for the samba service be checked?

sudo testparm doesn't throw an error for the server role = standalone server configuration parameter?

$ sudo testparm
Load smb config files from /usr/share/defaults/samba/smb.conf
rlimit_max: increasing rlimit_max (10000) to minimum Windows limit (16384)
Processing section "[homes]"
Loaded services file OK.
Server role: ROLE_STANDALONE

Press enter to see a dump of your service definitions

But sure, we can land it in unstable for the next sync. It won't change the fact that smbd will still be configured to run as Server role: ROLE_STANDALONE, though (I checked).

In fact, the samba (AD) service complains exactly because the config is standalone. For samba.service to even work, the server role needs to be set to e.g. server role = active directory domain controller per sudo systemctl status samba.service output.

ermo changed the task status from Open to In Progress.Jul 17 2018, 2:34 PM
ermo triaged this task as Low priority.
ermo edited projects, added Software; removed Lacks Project.
ermo removed a subscriber: Triage Team.