Kodi Community Forum

Full Version: Video / Music crashes several times when accessed through NFS
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys,

i have problems with my video playback from an NFS share of my Synology. It randomly stops during playback and I have to restart the video. Sometimes it's working for half an hour and sometimes it stops after 2 seconds... i don't know what i can do anymore.
Maybe someone of you have some hints? If this does not help, i have to create a bug though..

It always crashes with the same logs (full kodi logs see link below):

ffmpeg[0x4bab118X]: [mov,mp4,m4a,3gp,3g2,mj2] Protocol name not provided, cannot determine if input is local or a network protocol, buffers and access patterns cannot be configured optimally without knowing the protocol
Read - Error( -14, read call failed with "F" )
CFileCache:Tonguerocess - <nfs:....>> source read failed with -14!


Setup on my Raspberry PI 4:
bash:

Kodi (19.4). Platform: Linux ARM (Thumb) 32-bit
Using Release Kodi x32
Kodi compiled 2022-08-23 by GCC 10.2.1 for Linux ARM (Thumb) 32-bit version 5.10.78 (330318)
Running on BCM2835 with Open Source Media Center 2022.09-1, kernel: Linux ARM 32-bit version 5.10.78-7-osmc

For advancedsettings.xml and NFS shares, see kodi.log: https://paste.kodi.tv/rozabofobi.kodi

Exports on my Synology (followed guidelines from https://kodi.wiki/view/NFS):
bash:

/volumeUSB3/usbshare    192.168.0.xx(rw,async,no_wdelay,crossmnt,insecure,all_squash,insecure_locks,sec=sys,anonuid=1024,anongid=100)
/volumeUSB2/usbshare    192.168.0.xx(rw,async,no_wdelay,crossmnt,insecure,all_squash,insecure_locks,sec=sys,anonuid=1024,anongid=100)
/volumeUSB1/usbshare1-5 192.168.0.xx(rw,async,no_wdelay,crossmnt,insecure,all_squash,insecure_locks,sec=sys,anonuid=1024,anongid=100)
(2022-10-31, 12:34)Otua Wrote: [ -> ]It randomly stops during playback and I have to restart the video.

Is the RPi4 using a wifi connection or does it have a cabled connection? In case of cables, try a different cable and/or a different port on your switch or router. Is the Synology fully updated?

Why do you have both insecure and insecure_locks in the export settings?
Hi Klojum,

RPi4 is using a network cable and wifi is disabled.
Synology is on latest version DSM 7.1.1-42962 Update 1

According to https://wiki.ubuntuusers.de/NFS/ insecure and insecure_locks are not contradicting. I have not edited the exports file, the whole NFS config was done via Synology GUI.

If you think it is a hardware problem, i will try with another cable and another port...
I've searched for the error message and there are some hits.
Some posts suggest it just stopped happening, or went away with a (non-kodi) update.

With kodi you have two ways of using an nfs mount.
The built-in libnfs option (browse for nfs, or use nfs://server), or an OS nfs mount
(mount the nfs share before kodi runs, e.g. from /etc/fstab), then kodi just uses the mount directory as a normal directory.

I'd say the OS option is the superior option (you generally get better performance from an OS mount).

Looks like there is a guide for osmc here.
OK, i will also try the OS mount approach via fstab and give feedback if it works better!
OK, what i can say so far and what i have tried:
1. replace network cable from pi to network socket (not yet from patch panel to switch and from NAS to switch)
2. mounted nfs via fstab
3. replaced osmc with libreelec and worked with nfs via Unit definition https://wiki.libreelec.tv/how-to/mount_network_share

Problem not solved. Video keeps crashing sporadically. Never happens when accessing same files via TotalCommander (smb) on AndroidTV (also accessed via network cable). Further investigations required. Next thing i want to trace is the nfs part on the synology nas...
If anybody knows, what and where to look at, please let me know.
Problem seems to be gone.
Libreelec is running but no crashes anymore. I don't know the real cause, would assume issues with the Synology NAS. Several updates took place meanwhile.
Mmh. Just for the sake of newbies like me who are attempting to do exactly the same (shares on a Synology NAS exported via NFS to a Pi running Kodi), did you leave the NFS shares mounted at the OS level, or did you revert to your original configuration, mounting via Kodi?
replaced osmc with libreelec and worked with nfs via Unit definition https://wiki.libreelec.tv/how-to/mount_network_share