Unable to access NFS Share
#1
Can anyone tell if it is supposed to work?

to summarize  :  https://github.com/xbmc/xbmc/issues/23069
Reply
#2
Edit: nevermind, I misread the issue
Reply
#3
line 1230 NFS open starts

line 1235 NFS open fails after a 60 second timeout

it would indicate your NFS setup/settings have an issue


( referencing reposted log https://paste.kodi.tv/itizuqepom.kodi )
Reply
#4
(2023-03-28, 18:48)jepsizofye Wrote: it would indicate your NFS setup/settings have an issue

Yes, about that .. I posted my NFS config - and information that the NFS shares work fine for other Linux devices.
So any clue about what "issue" can prevent Kodi from using it?
Reply
#5
i think you need to try adding insecure to your exports the way its shown in the official wiki for nfs - https://kodi.wiki/view/NFS#NFS_sharing_from_Linux
Reply
#6
Same exact issue here. (Kodi 20.1 on NVidia Shield) NFS settings on share are correct.
Reply
#7
Browsing for an NFS share seems to not work in certain NFS client/server combinations. Streaming via an NFS share usually works.
One option is to manually add your NFS share(s) in the sources.xml file, and restart Kodi.
Reply
#8
So I added 
        <source>
            <name>nfs-episodes</name>
            <path>nfs://192.168.1.20/srv/Episodes/</path>
            <allowsharing>true</allowsharing>
        </source>

to the sources.xml

and my nfs looks like
/srv/Episodes    *(rw,all_squash,no_subtree_check,insecure)

clicking "nfs-episodes" causes same >1minute delay - still the same - any other suggestions?


loglines that contain "nfs" :
Code:
andre@Loke:~$ grep nfs kodi.log -i
2023-03-29 21:31:18.003 T:20964   error <general>: NFS: Failed to mount nfs share:  (nfs_service failed)
2023-03-29 21:33:57.747 T:21029   error <general>: NFS: Failed to mount nfs share:  (nfs_service failed)
2023-03-29 21:33:57.747 T:21029   error <general>: GetDirectory - Error getting nfs://192.168.1.20/srv/Episodes/
2023-03-29 21:33:57.760 T:20929   error <general>: CGUIMediaWindow::GetDirectory(nfs://192.168.1.20/srv/Episodes/) failed
2023-03-29 21:34:27.908 T:20929    info <general>: NFS is idle. Closing the remaining connections.
2023-03-29 21:35:09.203 T:20929   debug <general>: CGUIMediaWindow::GetDirectory (nfs://192.168.1.20/srv/Episodes/)
2023-03-29 21:35:39.266 T:21060   debug <general>: NFS: Context for 192.168.1.20 not open - get a new context.
2023-03-29 21:35:39.267 T:21060   debug <general>: NFS: version: 3
2023-03-29 21:37:49.171 T:21060   error <general>: NFS: Failed to mount nfs share:  (nfs_service failed)
2023-03-29 21:37:49.171 T:21060   error <general>: GetDirectory - Error getting nfs://192.168.1.20/srv/Episodes/
2023-03-29 21:37:49.177 T:20929   error <general>: CGUIMediaWindow::GetDirectory(nfs://192.168.1.20/srv/Episodes/) failed
2023-03-29 21:38:19.554 T:20929    info <general>: NFS is idle. Closing the remaining connections.
Reply
#9
Code:
nfs_service failed
Well, that doesn't help.

(2023-03-29, 21:32)AKjell Wrote: and my nfs looks like /srv/Episodes    *(rw,all_squash,no_subtree_check,insecure)
I'm using 192.168.1.0/24(rw,nohide,insecure,no_subtree_check,async,all_squash,anonuid=1000,anongid=1000) on a Linux machine.
Whether you use the user/group things, is up to you.
Reply
#10
Thanks, I tried "rw,nohide,insecure,no_subtree_check,async,all_squash,anonuid=1000,anongid=1000"  - with no success.

the "nfs_service failed"  is simply not true for the server side.

Please have in mind that I mount this share on my workstation (using "sudo mount 192.168.1.20:/srv/Episodes /nfs/episodes")  - and it "just works" perfectly fine, regardless of what Kodi says.
Reply
#11
For what it's worth, I was able to resolve this by enabling NFSv2/v3 on my QNAP NAS settings. I was only enabled with v4 and Kodi was not able to access.
https://www.qnap.com/en-us/how-to/faq/ar...connection
Reply
#12
If you've got nfs v4 turned on in Kodi, you probably have to drop the "/srv/" part of the network location, I think that'd indicate an NFS v3 path.

If you don't care about NFS V4, which at this point, is still relatively new to Kodi and probably doesn't offer much in the way of performance, switch to nfs v3, then rather than typing in your path, use the Zeroconf option in Kodi for adding a source.

If all that fails, then your permissions are wrong on the server side and might need to take a deep dive on NFS V4 options
Reply
#13
How can I turn on/off NFS v4 on KODI? I can't find any mention of it in the documentation.
Reply
#14
(2024-09-24, 02:30)aviyi Wrote: How can I turn on/off NFS v4 on KODI? I can't find any mention of it in the documentation.

Settings ,service then nfs client
Reply
#15
spotted! thanks!
Reply

Logout Mark Read Team Forum Stats Members Help
Unable to access NFS Share0