Suddendly, the samba daemon fails to start and I cannot reach my shares anymore.
My setup is the latest OSMC on a Raspberry Pi 3, with two USB disks mounted under /disks, that were shared using the OSMC app store samba.
Everything worked fine for a couple of years, but since yesterday the samba service is not working.
I really don’t know what to check, it stopped working and now I cannot access my media library anymore.
Also, Kodi seems to have been reset and forgot all my customization and my whole media library. I have a MySQL setup, and my movie and tv series library is now empty. The files are still on the filesystem, saved on the two external disks.
I am really confused.
Is your MySQL library and files on the same Pi? That’s what it looks like to me. If so, your settings are a bit odd. Like your media sources being accessed via SMB on the Pi they are connected to?
Might be a stupid suggestion, I’m sure you’ve checked it; but have you confirmed pi IP addresses have not changed? It has happened to me before and was pulling my hair out for ages. Kicked myself when I realised I’d missed it.
The ip is still the same, it is assigned by static DHCP by the router. For example, I can access the Transmission web interface running on that Pi without issues.
Well, before you reinstall the whole system, try a partial installation of samba first. I understood your situation that way that your samba service is still not starting anymore
backup /etc/samba/smb.conf, /etc/samba/smb-local.conf, /etc/samba/smb-shares.conf and /etc/samba/smb.conf.distributed somewhere and delete these files