I have a samba server (with my movies). My Raspberry Pi connects to it to read movies. It was working like this for the past 3 years.
But yesterday I updated OSMC on my Pi and now I can’t access my samba server. In Videos > Files, I choose a share folder (that was working previously) and enter the password. I press “OK” but nothing happens. Then I press “Cancel” and see this message: couldn’t connect to network server
I tried from another computer (Windows10) to access the samba server and it is working as expected. So I believe the problem comes from OSMC.
I ran apt-get update and apt-get dist-upgrade but there is no new packages to install.
I tried smbv1 and also smbv2 but that didn’t solve the issue.
To solve the problem I created ~/.kodi/.smb/user.conf:
[global]
lock directory = /home/osmc/.kodi/.smb/
client max protocol = SMB2
name resolve order = bcast host
client use spnego = no
client ntlmv2 auth = no
Then I restarted the Pi and now it is working. Thank you for your help!