You are not logged in.

#1 2014-04-13 13:02:27

seal20
Member
Registered: 2010-02-13
Posts: 36

xbmc and nfs, would appreciate a little help

Hi guys,

I am trying to set up xbmc on my laptop running arch reading media and using a MySQL database on a debian server. I already use the same server from an openelec raspberry pi and it is working. However I can't get xbmc to mount the nfs share on archlinux. I've been trying a lot of different option in exports on the server with no success and the xbmc log is not very useful. The revelant informations are the following:

The server: 192.168.11.200
the openelec: 192.168.11.12
the arch xbmc: 192.168.11.7

On the server:

cat /etc/exports
# /etc/exports: the access control list for filesystems which may be exported
#               to NFS clients.  See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes       hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4        gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes  gss/krb5i(rw,sync,no_subtree_check)
#

/media/SEAL-HDD/        192.168.11.12(rw,async,no_wdelay,no_root_squash,insecure,anonuid=0,anongid=0)
/media/SEAL-HDD/        192.168.11.7(rw,insecure,no_wdelay,all_squash,async,anonuid=1000,anongid=1000)

/media/SEAL-HDD which contains all the medias is owned by the user seal20 with the uid=1000 and gid=1000:

$ls -al /media/SEAL-HDD/
total 12
drwxrwxr--  8 seal20              users   93 Mar  9 14:56 .
drwxr-xr-x  3 root                root  4096 Mar  8 07:35 ..
drwxrwxr-x  4 debian-transmission root   155 Apr  8 17:01 Downloads
drwxrwxr-x 35 seal20              users 4096 Mar 26 12:39 Music
drwxrwxr-x 17 seal20              users 4096 Mar 10 03:51 Photos
drwxrwxr-x  3 root                root    20 Jan 22 21:00 Research
drwxrwxr-x  4 seal20              users   34 Mar 11 13:02 Videos
seal20@debian:~$ id
uid=1000(seal20) gid=1000(seal20) groups=1000(seal20)

On the client (arch)
xbmc.log

12:47:20 T:139907595384576   ERROR: Failed to open(//) nfs_opendir_async failed
12:47:20 T:139908139726784   ERROR: GetDirectory - Error getting nfs://192.168.11.200/media/SEAL-HDD/
12:47:20 T:139908139726784   ERROR: CGUIDialogFileBrowser::GetDirectory(nfs://192.168.11.200/media/SEAL-HDD/) failed
$ showmount -e 192.168.11.200
Export list for 192.168.11.200:
/media/SEAL-HDD 192.168.11.7,192.168.11.12

and xbmc is run by the user sylvain :

[sylvain@hitode ~]$ id
uid=1000(sylvain) gid=100(users) groups=100(users),3(sys),7(lp),10(wheel)

And I can mount it directly but I cannot browse the share through xbmc:

$sudo mount -t nfs 192.168.11.200:/media/SEAL-HDD /mnt/nfs/

$ ls -al /mnt/nfs/
total 11
drwxrwxr--  8 nobody users   93 Mar  9 23:56 .
drwxr-xr-x  5 root   root  4096 Apr 13 21:59 ..
drwxrwxr-x  4 nobody root   155 Apr  9 02:01 Downloads
drwxrwxr-x 35 nobody users 4096 Mar 26 21:39 Music
drwxrwxr-x 17 nobody users 4096 Mar 10 12:51 Photos
drwxrwxr-x  3 root   root    20 Jan 23 06:00 Research
drwxrwxr-x  4 nobody users   34 Mar 11 22:02 Videos

Am I doing something wrong? I can't understand and an advice will be great.

Offline

#2 2014-04-13 13:16:54

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: xbmc and nfs, would appreciate a little help

It seems you made quite an interesting mess of users and groups in both your exports and filesystem. A simple guess; your seal20 user on the server doesn't have uid 1000? Also; do you even have a group with guid=1000 as specified by anongid=1000? Also; it might help to allow o+rx on /media/SEAL-HDD/; making debugging a lot easier

Offline

#3 2014-04-13 13:28:59

seal20
Member
Registered: 2010-02-13
Posts: 36

Re: xbmc and nfs, would appreciate a little help

thanks Spider.007,

Yes it would be good to adjust all the uid and gid. I have to learn how to do it...

I tried to allow rwx to others on the server but I get the same result... The user seal20 on the server has the uid and gid 1000 and own most of the file on the share. Because the user sylvain who run xbmc has the uid and gid 100 I am trying to map the uid to 1000 with all_squash and anonid. Do I understand well?

Offline

#4 2014-04-14 09:56:00

ck3mp
Member
Registered: 2010-06-08
Posts: 20

Re: xbmc and nfs, would appreciate a little help

Just found this thread. It seems we are both experiencing the same issue.

http://forum.xbmc.org/showthread.php?tid=191872

Offline

#5 2014-04-14 10:14:35

seal20
Member
Registered: 2010-02-13
Posts: 36

Re: xbmc and nfs, would appreciate a little help

Yeap looks the same. My exportfs works with openelec 4 beta which include xbmc-13-ca6c289 which includes libnfs 1.8, I think... Of course because openelec runs xbmc as root the anon ids are set to 0 but it should be the same...I will try to downgrade libnfs to 1.8 to test using abs? I didn't have much time to work on it this weekend but I should be able to test it today or tomorrow. Did you already test with version 1.8?

Offline

#6 2014-04-14 10:17:37

ck3mp
Member
Registered: 2010-06-08
Posts: 20

Re: xbmc and nfs, would appreciate a little help

I haven't tested with 1.8 as I've been a little busy but I can give it a try today. I haven't actually tested my openelec I'll do that today too.

Offline

#7 2014-04-14 10:43:08

ck3mp
Member
Registered: 2010-06-08
Posts: 20

Re: xbmc and nfs, would appreciate a little help

Tested with xbmc 12.2-9 with libnfs-1.8.0-1 and all works perfectly.

Offline

#8 2014-04-14 11:55:54

seal20
Member
Registered: 2010-02-13
Posts: 36

Re: xbmc and nfs, would appreciate a little help

That's nice! I will confirm it asap but I am still at job. At least we have a work around...
It maybe a bug introduce in 1.9. I will try to downgrade only libnfs and symlink the libnfs.so.4 so that it may be possible to run the xbmc 12.3 from the repo..

Offline

#9 2014-04-14 14:07:02

ck3mp
Member
Registered: 2010-06-08
Posts: 20

Re: xbmc and nfs, would appreciate a little help

Few more tests.

Openelec beta works fine with gotham and the libnfs file is libnfs.1.0.8 where as on my none working gotham beta 3 arch install libnfs is libnfs.4.0.0.

Thinking this is a libnfs issue not so much xbmc?

Offline

#10 2014-04-14 18:06:42

ck3mp
Member
Registered: 2010-06-08
Posts: 20

Re: xbmc and nfs, would appreciate a little help

Your theory worked. I compiled Beta 3 this afternoon, install libnfs 1.8 and symlinked /usr/lib/libnfs.4 to /usr/lib/libnfs1.0.8 and all is back to working.

Offline

#11 2014-04-15 14:20:30

seal20
Member
Registered: 2010-02-13
Posts: 36

Re: xbmc and nfs, would appreciate a little help

I can confirm that it is working until libnfs-1.9.2 but not with libnfs-1.9.3, I tried with all version from 1.8.0
There is a big chance it is a bug in libnfs. We should open a bug and try with the last git version.
If you don't do it before I will do it tomorrow.

Offline

#12 2014-04-15 15:11:51

ck3mp
Member
Registered: 2010-06-08
Posts: 20

Re: xbmc and nfs, would appreciate a little help

Ill let you raise it as i've never done anything like that before. Cheers for the help in tracking this down!

Offline

#13 2014-05-21 01:30:07

EvanPurkhiser
Member
From: San Francisco
Registered: 2010-08-17
Posts: 225
Website

Re: xbmc and nfs, would appreciate a little help

Do you guys know if this was fixed? I'm seeing this same issue in XBMC 13.0-3 with libnfs 1.9.3.

Offline

#14 2014-05-21 07:51:24

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: xbmc and nfs, would appreciate a little help

EvanPurkhiser wrote:

Do you guys know if this was fixed? I'm seeing this same issue in XBMC 13.0-3 with libnfs 1.9.3.

Do you have exactly the same issue as described here? Because you probably don't so a new thread is appreciated, so you can post your actual exports, permissions, versions and logs

Offline

#15 2014-05-29 22:26:37

EvanPurkhiser
Member
From: San Francisco
Registered: 2010-08-17
Posts: 225
Website

Re: xbmc and nfs, would appreciate a little help

Spider.007 wrote:

Do you have exactly the same issue as described here? Because you probably don't

Turns out I did have the same problem wink I did end up creating a new thread though, here's a link to it for posterity. It's still not solved, but a poster in the thread came to the same conclusion as here.

Last edited by EvanPurkhiser (2014-05-29 22:44:26)

Offline

Board footer

Powered by FluxBB