since the last upgrade from few days ago i started face an issue while playing over SMB.
after the streaming was working with no issues, however now i’ve noticed few issues:
i’ve the shares mounted by FSTAB and they’re reachable
When i play a movie after around 20 seconds aproximately the stream get freeze, if i ping the raspberry during this time i get no response.
From the logs i see the following:
20:18:13.817 T:1905259264 NOTICE: Finding audio codec for: 86019
20:18:13.818 T:1905259264 NOTICE: Creating audio thread
20:18:13.818 T:1673646848 NOTICE: running thread: CVideoPlayerAudio::Process()
20:18:13.818 T:1905259264 NOTICE: Opening stream: 2 source: 256
20:18:13.829 T:1673646848 NOTICE: Creating audio stream (codec id: 86019, channels: 6, sample rate: 48000, no pass-through)
20:18:48.799 T:1673646848 NOTICE: CVideoPlayerAudio::Process - stream stalled
20:19:19.323 T:1925437952 NOTICE: Samba is idle. Closing the remaining connections
20:19:30.022 T:1664733952 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
i even tried different shares over different computer and even OS but seems issue it’s on SMB on the Kodi probably… any idea ?
I’m not sure if its related but there have been various reports on the forums for users using smb kodi shares (rather than fstab) , having a similar issue; if the smb max protocal isn’t set to 1 or 3.
Does the samba server support smb3? If not (Just for testing) try removing the version tag or setting it to version 1.
I believe Kodi is currently looking into samba issues for kodi 17.6.
I was added recently after read around that recent version could have issues while determine which SMB version should use.
My server is a W2016 i enabled for testing purposes SMB 1, also removing the vers= from my FSTAB config and result was the same.
Also for testing i enabled “Enable NetBIOS Over TCP/IP”.
I’m still doing test around but from my point of view looks like if something has changed either on Windows side or Kodi
I would be surprised if W2016 doesn’t support smbv3 (linux server guy here), I need to pointout I use nfs shares so a lot of this guess work; but you try changing vers=2.0 to vers=3.0 in the fstab entry.
Another thing you could try (for testing) is kodi smb shares, and change the smb max protocal to smbv3; this is under settings, services, smbclient.
indeed SMBv3 is fully supported on W2016, regarding the smb.conf settings i’ve the following:
[global]
preferred master = no
local master = no
domain master = no
# client lanman auth = yes
# lanman auth = yes
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
lock directory = /home/osmc/.smb/
# client use spnego = no
client use spnego principal = no
client ntlmv2 auth = no
client min protocol = SMB2
client max protocol = SMB3
name resolve order = bcast host
sec = ntlmv2
I commented the lanman auth lines for testing, currently what i’ve noticed is that the resource don’t get auto mounted but i need to run mount -a and then it get recognized,. did i miss something on the FSTAB parameters?
EDIT:
one strange thing is if i run smbstatus -b or either Get-SmbSession from windows to see the sessions i don’t see any coming from OSMC… seems weird or it’s normal?
Like I said nfs guy, please advise are these settings on client or server?
x-systemd.automount - This flag means its gets mounted on access not boot. Are you saying if you try to access it kodi, it doesn’t work unless you issue “mount -a” first?
Not sure about this one, will ask another moderator for there thoughts on this one.
Those settings are from client (kodi) smb.conf
From windows i’ve kept enabled SMBv1 as well for testing, but currently Kodi should be using SMBv2 for the connection
Apologies, i did a typo while creating another entry at FSTAB and forgot to add the automount, i corrected it and get mounted with success.
Right now i will do some test… but somehow i would say situation improved since before any modification / test stopped right after start to play almost.
currently i’m using a usb wifi adapter plugged to the raspberry pi (signal is good, not even 1 meter from the router)
in fact after testing and modification of the fstab as Tom suggested seems there is an improvement, i just got a coulple of buffer issue or streaming stopped directly, maybe due buffering (?)