Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
NFS browsing not working
#16
I'm confused, though. Libnfs is a nfs client library. Why would it be required on the server side? Or does the Windows version of xbmc also use a port of libnfs?

Edit: nvm. I see that it does.
Reply
#17
I am sorry to resurrect this thread, but it still seems to be relevant. Same issue: I can access my NFS share from within Kodi as long as I know IP and path, but discovering is not possible.

When selecting "Network File System (NFS)" as the type of media share, i just see a spinning circle for a few seconds and that's it. This is the debug log:
Quote:16:54:40.921 T:139948518770432   DEBUG: SECTION:LoadDLL(libnfs.so.12)
16:54:40.921 T:139948518770432   DEBUG: Loading: libnfs.so.12
16:54:41.421 T:139949381940736   DEBUG: ------ Window Init (DialogBusy.xml) ------
16:54:43.953 T:139949381940736   ERROR: GetDirectory - Error getting nfs://
16:54:43.953 T:139949381940736   ERROR: CGUIDialogFileBrowser::GetDirectory(nfs://) failed
16:54:43.953 T:139949381940736   DEBUG: Keyboard: scancode: 0x24, sym: 0x000d, unicode: 0x0000, modifier: 0x0
16:54:44.204 T:139949381940736   DEBUG: ------ Window Deinit (DialogBusy.xml) ------

I am very curious what mechanism Kodi is using to discover NFS shares. To the very best of my knowledge there is no magic discovery mechanism for the NFS protocol. The next best thing would be Zeroconf (Avahi), but announcing my NFS share via Avahi does not help when selecting "Network File System (NFS)" inside Kodi (but I can see the share when selecting "Zeroconf browser", as expected).

By the way, the NFS server is an Arch Linux machine. The configuration seems to be correct, as Kodi can access the share just fine when manually providing IP and path.

Does someone know how this NFS discovery of Kodi is expected to work theoretically?
Reply
#18
Turns out, there is some kind of "magical NFS discovery mechanism", at least when using libnfs.

libnfs provides a function called "nfs_find_local_servers" that Kodi uses: https://github.com/sahlberg/libnfs/blob/...nc.c#L2083

Now I will try to find out why this fails. It should be noted that the implementation of "nfs_find_local_servers" differs between Linux and Windows.
Reply
#19
Curious about this as well. Using smb because I couldn't get nfs to work in Kodi despite being able to mount the share off my root file system on the same computer.
Reply
#20
After some debugging I've created an issue for this: https://github.com/sahlberg/libnfs/issues/270
Reply
#21
Just for the people who discover this thread by googling:

The issue appears when using Linux and having the new version of rpcbind installed on the system. Starting with version 1.2.5, rpcbind disabled a feature that was enabled by default in previous versions.

For reference:
* https://sourceforge.net/p/libtirpc/mailm.../36377232/
* https://github.com/sahlberg/libnfs/issues/270
* https://bugs.archlinux.org/task/60295
Reply
#22
Nice catch
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#23
(2018-10-03, 22:06)DerEineDa Wrote: Just for the people who discover this thread by googling:

The issue appears when using Linux and having the new version of rpcbind installed on the system. Starting with version 1.2.5, rpcbind disabled a feature that was enabled by default in previous versions.

For reference:
* https://sourceforge.net/p/libtirpc/mailm.../36377232/
* https://github.com/sahlberg/libnfs/issues/270
* https://bugs.archlinux.org/task/60295

Thank you for posting this info, i was struggling, but this information helped me track down the needed use flag for my gentoo install to get nfs discovery working again!
Reply

Logout Mark Read Team Forum Stats Members Help
NFS browsing not working0