KODI can't sccess any share (NFS or SMB) on opensuse.

This has been puzzling me for some time.

I’ve always used KODI in an openSUSE box with shares mounted on the box filesystem, so that for KODI the shared folders are seen as local. The server is another openSUSE box, serving both NFS and SMB shares.

Now, I’ve tried KODI 17 and 18 (32 bit Android) in a Fire TV stick, but KODI only see the parent folder of the NFS shares, and nothing at all of a SMB share in the same server.

At first I thought it was a problem with the stick, but I installed KODI on another openSUSE box the can mount the shares without problem, but still KODI won’t see the shares. And different from the fire TV stick, not even the parent folders.

Relevant part of KODI log is, after trying NFS and SMB:

2020-06-13 20:45:07.300 T:139760302135872  NOTICE: starting zeroconf publishing
2020-06-13 20:45:07.303 T:139758059628288  NOTICE: ES: Starting UDP Event server on port 9777
2020-06-13 20:45:07.303 T:139758059628288  NOTICE: UDP: Listening on port 9777 (ipv6 : false)
2020-06-13 20:45:19.103 T:139760302135872   ERROR: GetDirectory - **Error getting nfs://**
2020-06-13 20:45:19.103 T:139760302135872   ERROR: CGUIDialogFileBrowser::GetDirectory(nfs://) failed
2020-06-13 20:45:25.758 T:139760302135872   ERROR: SMBDirectory->GetDirectory: **Unable to open directory : 'smb://' unix_err:'2' error : 'No such file or directory'**
2020-06-13 20:45:28.294 T:139760302135872 WARNING: CGUIWindowManager - HandleAction - ignoring action 107, because topmost modal dialog closing animation is running
2020-06-13 20:45:28.460 T:139760302135872 WARNING: Previous line repeats 1 times.
2020-06-13 20:45:28.460 T:139760302135872   ERROR: GetDirectory - **Error getting smb://**
2020-06-13 20:45:28.460 T:139760302135872   ERROR: CGUIDialogFileBrowser::GetDirectory(smb://) failed
2020-06-13 20:45:39.898 T:139760302135872  NOTICE: Stopping player
2020-06-13 20:45:39.898 T:139760302135872  NOTICE: Storing total System Uptime
2020-06-13 20:45:39.898 T:139760302135872  NOTICE: Saving settings
2020-06-13 20:45:39.900 T:139760302135872  NOTICE: Saving skin settings
2020-06-13 20:45:39.901 T:139760302135872  NOTICE: Stopping all

However, I have KODI 16 in a W10 box, and it can access the NFS share without issues, although not the SMB due, I think, to authorization (but I’m not concerned about SMB ATM).
Some posts say it’s a problem with version 18, and 17 should be OK, so I tried both version 17 and 18 on W10 and they also work. Both version on the stick, however, didn’t work.

The SMB shares are accessible OK from VLC on android tablets and smartphones, as well as on the fire TV stick.

I’ve also temporarily tried the insecure mount option from https://forum.odroid.com/viewtopic.php?t=19359#p129286 but to no avail.
Shares have these parameters in etc/exports:

/home/blimmer/Gravados    *(ro,root_squash,sync,no_subtree_check)

Most similar problems are related to NAS when switching routers with DHCP, but all devices here use fixed IP addresses, and all can ping each other and access the internet.

So, summarizing:

KODI 16/17/18 can access NFS shares from Windows.
KODI 18 can’t access NFS shares from openSUSE (this is from packman package, there is no earlier version).
KODI 17/18 can’t access NFS nor SMB shares from the stick (32 bit android packages).
KODI shows the parent directories in the stick, but not in openSUSE.

Any ideas on how the access NFS from KODI?

Thanks,

Bruno

Also of note is that KODI 18.5 on an android phone also can’t access NFS or SMB shares, while VLC can access SMB. VLC doesn’t support NFS AFAIK.

I just tried from one client openSUSE box with both the client and server firewalls disabled, but no change.

I’d think this was a problem specific to my setup, given that there are no hundreds of complaints in KODI fora and elsewhere, if it wasn’t for the fact that the SMB can be accessed by VLC but not by KODI.

I’m totally lost here :\

OBS: NFSv4 is not enabled in Yast>NFS Server, as apparently it is not yet supported by KODI.

SOLVED!

  1. NFS share need insecure parameter. I’m using:
rw,root_squash,sync,no_subtree_check,insecure
  1. SMB and NFS discovery DO NOT work in linux/android recent KODI, SMB apparently due to KODI dropping SMBv1, don’t know why NFS also doesn’t.
    It is necessary to add the video sources manually, like:
nfs://<SERVER NAME OR IP>/<FULL EXPORTED PATH>

or

smb://<SERVER NAME OR IP>/<SHARE NAME>

For SMB it is necessary to set the samba username and password in KODI setup.
Note: min protocol = SMB2 is set in samba.conf [Global] section.

Three weeks messing with this, and as usual it is a (more or less) trivial solution…