Samba Failure on fresh install

Hi,

I have today done a fresh install of OSMC and am having some issues with Samba. I installed from the app store but was having difficulty connecting to OSMC from other devices. I checked the status and it did not load.

osmc@osmc:~$ sudo systemctl status samba
● samba.service - Samba Server
Loaded: loaded (/lib/systemd/system/samba.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2018-12-04 11:20:28 GMT; 10min ago
Process: 4182 ExecStart=/etc/init.d/samba.distributed start (code=exited, status=1/FAILURE)
Main PID: 4182 (code=exited, status=1/FAILURE)

Dec 04 11:20:27 osmc systemd[1]: Starting Samba Server…
Dec 04 11:20:27 osmc samba.distributed[4182]: Starting nmbd (via systemctl): nmbd.service.
Dec 04 11:20:28 osmc samba.distributed[4182]: Starting smbd (via systemctl): smbd.serviceJob for smbd.service failed because the control process exited with error code.
Dec 04 11:20:28 osmc samba.distributed[4182]: See “systemctl status smbd.service” and “journalctl -xe” for details.
Dec 04 11:20:28 osmc samba.distributed[4182]: failed!
Dec 04 11:20:28 osmc systemd[1]: samba.service: Main process exited, code=exited, status=1/FAILURE
Dec 04 11:20:28 osmc systemd[1]: Failed to start Samba Server.
Dec 04 11:20:28 osmc systemd[1]: samba.service: Unit entered failed state.
Dec 04 11:20:28 osmc systemd[1]: samba.service: Failed with result ‘exit-code’.

I uninstalled via command line and reinstalled and I have the same issues with the following errors:

osmc@osmc:~$ journalctl -xe
Dec 04 11:20:21 osmc systemd[1]: apt-daily.timer: Adding 3h 30min 2.025802s random time.
Dec 04 11:20:21 osmc systemd[1]: apt-daily-upgrade.timer: Adding 24min 46.826930s random time.
Dec 04 11:20:21 osmc avahi-daemon[228]: Service “Samba Shares on osmc” (/services/samba.service) successfully established.
Dec 04 11:20:21 osmc systemd[1]: Reloading.
Dec 04 11:20:22 osmc systemd[1]: apt-daily.timer: Adding 6h 2min 40.904546s random time.
Dec 04 11:20:22 osmc systemd[1]: apt-daily-upgrade.timer: Adding 38min 25.951145s random time.
Dec 04 11:20:22 osmc systemd[1]: Reloading.
Dec 04 11:20:23 osmc systemd[1]: apt-daily.timer: Adding 7h 23min 106.453ms random time.
Dec 04 11:20:23 osmc systemd[1]: apt-daily-upgrade.timer: Adding 9min 43.002488s random time.
Dec 04 11:20:23 osmc systemd[1]: Reloading.
Dec 04 11:20:23 osmc systemd[1]: apt-daily-upgrade.timer: Adding 15min 54.231042s random time.
Dec 04 11:20:23 osmc systemd[1]: apt-daily.timer: Adding 6h 3min 38.950876s random time.
Dec 04 11:20:24 osmc systemd[1]: Reloading.
Dec 04 11:20:24 osmc systemd[1]: apt-daily-upgrade.timer: Adding 22min 36.041196s random time.
Dec 04 11:20:24 osmc systemd[1]: apt-daily.timer: Adding 5h 29min 14.746046s random time.
Dec 04 11:20:24 osmc systemd[1]: Reloading.
Dec 04 11:20:25 osmc systemd[1]: apt-daily-upgrade.timer: Adding 31min 28.502928s random time.
Dec 04 11:20:25 osmc systemd[1]: apt-daily.timer: Adding 10h 15min 1.527056s random time.
Dec 04 11:20:25 osmc systemd[1]: Reloading.
Dec 04 11:20:25 osmc systemd[1]: apt-daily-upgrade.timer: Adding 41min 5.030165s random time.
Dec 04 11:20:25 osmc systemd[1]: apt-daily.timer: Adding 1h 48.844469s random time.
Dec 04 11:20:25 osmc systemd[1]: Reloading.
Dec 04 11:20:26 osmc systemd[1]: apt-daily.timer: Adding 42min 38.847636s random time.
Dec 04 11:20:26 osmc systemd[1]: apt-daily-upgrade.timer: Adding 13min 51.140892s random time.
Dec 04 11:20:26 osmc systemd[1]: Reloading.
Dec 04 11:20:26 osmc systemd[1]: apt-daily-upgrade.timer: Adding 11min 14.252372s random time.
Dec 04 11:20:26 osmc systemd[1]: apt-daily.timer: Adding 5h 56min 26.842953s random time.
Dec 04 11:20:26 osmc systemd[1]: Reloading.
Dec 04 11:20:27 osmc systemd[1]: apt-daily-upgrade.timer: Adding 41min 22.093437s random time.
Dec 04 11:20:27 osmc systemd[1]: apt-daily.timer: Adding 6h 44min 29.056161s random time.
Dec 04 11:20:27 osmc systemd[1]: Starting Samba Server…
– Subject: Unit samba.service has begun start-up
– Defined-By: systemd
– Support: Debian -- Support

– Unit samba.service has begun starting up.
Dec 04 11:20:27 osmc systemd[1]: Starting Samba NMB Daemon…
– Subject: Unit nmbd.service has begun start-up
– Defined-By: systemd
– Support: Debian -- Support

– Unit nmbd.service has begun starting up.
Dec 04 11:20:27 osmc systemd[1]: nmbd.service: Supervising process 4191 which is not our child. We’ll most likely not notice when it exits.
Dec 04 11:20:27 osmc nmbd[4191]: [2018/12/04 11:20:27.851480, 0] …/lib/util/become_daemon.c:124(daemon_ready)
Dec 04 11:20:27 osmc nmbd[4191]: STATUS=daemon ‘nmbd’ finished starting up and ready to serve connections
Dec 04 11:20:27 osmc systemd[1]: Started Samba NMB Daemon.
– Subject: Unit nmbd.service has finished start-up
– Defined-By: systemd
– Support: Debian -- Support

– Unit nmbd.service has finished starting up.

– The start-up result is done.
Dec 04 11:20:27 osmc samba.distributed[4182]: Starting nmbd (via systemctl): nmbd.service.
Dec 04 11:20:28 osmc systemd[1]: Starting Samba SMB Daemon…
– Subject: Unit smbd.service has begun start-up
– Defined-By: systemd
– Support: Debian -- Support

– Unit smbd.service has begun starting up.
Dec 04 11:20:28 osmc smbd[4199]: [2018/12/04 11:20:28.642401, 0] …/source3/param/loadparm.c:2305(lp_include)
Dec 04 11:20:28 osmc smbd[4199]: Error: Maximum include depth (100) exceeded!
Dec 04 11:20:28 osmc systemd[1]: smbd.service: Main process exited, code=exited, status=1/FAILURE
Dec 04 11:20:28 osmc systemd[1]: Failed to start Samba SMB Daemon.
– Subject: Unit smbd.service has failed
– Defined-By: systemd
– Support: Debian -- Support

– Unit smbd.service has failed.

– The result is failed.
Dec 04 11:20:28 osmc systemd[1]: smbd.service: Unit entered failed state.
Dec 04 11:20:28 osmc systemd[1]: smbd.service: Failed with result ‘exit-code’.
Dec 04 11:20:28 osmc samba.distributed[4182]: Starting smbd (via systemctl): smbd.serviceJob for smbd.service failed because the control process exited with error code.
Dec 04 11:20:28 osmc samba.distributed[4182]: See “systemctl status smbd.service” and “journalctl -xe” for details.
Dec 04 11:20:28 osmc samba.distributed[4182]: failed!
Dec 04 11:20:28 osmc systemd[1]: samba.service: Main process exited, code=exited, status=1/FAILURE
Dec 04 11:20:28 osmc systemd[1]: Failed to start Samba Server.
– Subject: Unit samba.service has failed
– Defined-By: systemd
– Support: Debian -- Support

– Unit samba.service has failed.

– The result is failed.
Dec 04 11:20:28 osmc systemd[1]: samba.service: Unit entered failed state.
Dec 04 11:20:28 osmc systemd[1]: samba.service: Failed with result ‘exit-code’.
Dec 04 11:20:30 osmc sudo[3803]: pam_unix(sudo:session): session closed for user root

I have uninstalled and reinstalled a couple of times with the same problems.

At a loss and any guidance would be greatly appreciated!

Thanks!

Ping @dbmandrake

Were you using Samba successfully on a previous installation before reinstalling ?

Trying to get an idea here whether only new installations are affected.

Hi,

Yes all fine on previous installations.

Are you getting the same error Error: Maximum include depth (100) exceeded! calling

testparm ?

Did you change anything in /etc/samba/smb.conf ?

Can you please upload some logs so we can look at this in more detail?

Sam

Hi Jim,

ran testparm

osmc@osmc:~$ testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section “[osmc]”
Processing section “[automount template]”
Processing section “[osmc]”
Processing section “[video]”
Processing section “[automount template]”
Processing section “[osmc]”
Processing section “[video]”
Processing section “[automount template]”

which reminded me I made a duplicate of the smb.conf at smb-shares.conf

I deleted that and restarted Samba service and it is all loaded A OK!

Thank you all for your assistance :slight_smile: