No more NFS connections
#1
Hi,

I was accessing my Music, Videos, ... on my Rapsberry Pi running Kodi 17 (2017-08.1) from my server (running Mageia6) through NFS mounts.
I say "I was accessing ..." because this does not work any more. I don't know if this issue can be due to some Mageia or Kodi update (or both).
I can't enter in any of my Videos, Music subfolders (a pop-up open with : impossible to connect to the network server (translated from french)). If I try to re-create the NFS mount, I get no answer from Kodi.

But :
1) I can connect to another NFS server (running Mageia as well).
2) I can connect manually the folder from the server from the command line after I connect to kodi through ssh (mkdir /Music ; mount 192.168.0.14:/Music /Music). This is the workaround I use to bypass this issue. But using the Kodi menus, this is not possible.
I can add the needed entries in the /etc/fstab file.

Here is my /etc/exports from the Linux server :
/export1 192.168.0.0/8(async,secure,no_subtree_check,rw)
/export2 192.168.0.0/8(async,secure,no_subtree_check,rw)
/export3 192.168.0.0/8(async,secure,no_subtree_check,rw)

This is the same on the PC I can connect on its NFS shares.

Here is my log file : https://paste.ubuntu.com/25572730/

Working export (192.168.0.13 : ordi3) :

Code:
/home/xuo 79 # ls -al !$
ls -al /home
total 72
drwxr-xr-x 13 root     root      4096 févr. 11  2016 .
drwxr-xr-x 23 root     root      4096 sept.  4 21:03 ..
drwxr-xr-x 30 cad      users     4096 sept. 17 16:11 cad
drwxr-xr-x 52 eric     users    12288 sept. 19 13:38 xuo
drwxr-x--x  2 root     root     16384 mai   26  2012 lost+found
drwxr-xr-x  2 eric     users     4096 avril 24 18:15 VirtualBox

Non working export (192.168.0.14 : ordi4) :

Code:
@ordi4 /home/xuo 101 # ls -al /export2
total 84
drwxrwxr-x  16 root   root    4096 sept.  2 08:27 .
drwxr-xr-x  26 root   adm     4096 sept.  4 21:10 ..
drwxr-xr-x   5 eric   users   4096 déc.  28  2013 FTP
drwx------   2 root   root   16384 mars   7  2017 lost+found
drwxrwxr-t 191 eric   users  12288 août  19 21:08 Musique
ddrwxr-xr-t 108 eric   users   4096 août  19 21:08 Photos
drwxrwxr-t   5 eric   users   4096 août  19 21:08 Videos
lrwxrwxrwx   1 root   root       6 févr.  5  2012 Vidéos -> Videos

Any help will be wellcome.

Regards.

Xuo.
Reply
#2
1. that working export is your home directory which is not even exported.
1.a. The log only shows connection attemps to the /home export and especially to /home/pascale which is not shown in your directory listing at all
2. the file permissions of your export2 are all over the place
3. also i am confused - i thought i have talked to you already somewhere else and now your exports are missing that wonky no_all_squash flag that is invalid.
4. basically your export file now routes through the user id from the nfs client and uses that user id for checking the file system permissions. This means - in case your Kodi runs as root user (id 0) it uses root rights for accessing the filesystem too. As it looks like your export2 stuff is owned by the user "eric" - it might be better to map any nfs access to this user instead.

All in all you should read and understamd the authentication principle of nfs (link in my signature is a good start). Beside that - it all doesn't really match together and its rather tiring to support those cases.
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

Logout Mark Read Team Forum Stats Members Help
No more NFS connections0