Linux - NFS with both Frodo and Beta3

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
kempy1000 Offline
Junior Member
Posts: 15
Joined: Feb 2012
Reputation: 0
Post: #1
Hello,

I've had an issue with NFS in both Frodo and Gotham Beta3.
When I select a video file thats shared over NFS from a playlist it plays. However if I browse the sources nothing happens, the shares are shown from the nfs server and when I select them nothing. This happened in Frodo so I updated to Gotham beta3 in hope it was a bug thats maybe fixed but I get the same issue. I've attached a full log however I guess this is the key part.

Code:
01:56:16 T:139966390323200   DEBUG: CGUIMediaWindow::GetDirectory (nfs://192.168.1.251/srv/nfs4/TV2/)
01:56:16 T:139966390323200   DEBUG:   ParentPath = [sources://video/]
01:56:16 T:139965325371136   DEBUG: NFS: Context for 192.168.1.251/srv/nfs4/TV2 not open - get a new context.
01:56:16 T:139965325371136   DEBUG: NFS: Connected to server 192.168.1.251 and export /srv/nfs4/TV2
01:56:16 T:139965325371136   DEBUG: NFS: chunks: r/w 524288/524288
01:56:16 T:139965325371136   ERROR: Failed to open(//) nfs_opendir_async failed
01:56:16 T:139966390323200   ERROR: GetDirectory - Error getting nfs://192.168.1.251/srv/nfs4/TV2/
01:56:16 T:139966390323200   ERROR: CGUIMediaWindow::GetDirectory(nfs://192.168.1.251/srv/nfs4/TV2/) failed

Full log: http://pastebin.com/nkLmBH4p

/etc/exports
Code:
/srv/nfs4/ 192.168.1.0/24(rw,async,all_squash,anonuid=1002,anongid=1003,subtree_check,no_wdelay,insecur​e)
/srv/nfs4/Movies 192.168.1.0/24(rw,async,all_squash,anonuid=1002,anongid=1003,subtree_check,no_wdelay,insecur​e)
/srv/nfs4/TV 192.168.1.0/24(rw,async,all_squash,anonuid=1002,anongid=1003,subtree_check,no_wdelay,insecur​e)
/srv/nfs4/TV2 192.168.1.0/24(rw,async,all_squash,anonuid=1002,anongid=1003,subtree_check,no_wdelay,insecur​e)

Ive tried a few combinations of options in the exports all to no avail.
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 10,827
Joined: Feb 2011
Reputation: 113
Location: germany
Post: #2
Can you try Gotham beta1 please?

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
kempy1000 Offline
Junior Member
Posts: 15
Joined: Feb 2012
Reputation: 0
Post: #3
Yes Ill happily try it however I may need a bit of advice on how to install beta1 over beta 3.

Im on Arch Linux and use the xbmc-beta package from the AUR that provides the latest beta. There is no beta1 package and I'm a bit of a novice when it comes to using git.

EDIT: Figured it. Sorry. Building now and will post back in a hour or so.
(This post was last modified: 2014-04-10 16:42 by kempy1000.)
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 10,827
Joined: Feb 2011
Reputation: 113
Location: germany
Post: #4
Sry - i got confused somehow - i thought you are using windows for some strange reason (maybe because i digged into a windows nfs issue in that moment). So i am sorry to tell you that beta1 won'T change anything for you (only for windows users Wink ).

The problem is your exports file. you are exporting nfs4 and then exporting subdirs ... this is not supported in xbmc. either remove the nfs4 export or remove all other exports.(you don't need the single exports if you are exporting its parent dir anyway ...),

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
kempy1000 Offline
Junior Member
Posts: 15
Joined: Feb 2012
Reputation: 0
Post: #5
Thats fine! Was taking a while to build anyway. I have changed my exports to this:

Code:
/srv/nfs4/ 192.168.1.0/24(rw,async,all_squash,anonuid=1002,anongid=1003,subtree_check,no_wdelay,insecur​‚Äče)

And when selecting the /srv/nfs4 thats shown under NFS in the add files view the log still shows this.
Code:
19:46:25 T:140509102995456   DEBUG: OnKey: 167 (0xa7) pressed, action is Down
19:46:25 T:140509102995456   DEBUG: LIRC: Update - NEW at 96680:000000037ff07bdd 00 OK mceusb (OK)
19:46:25 T:140509102995456   DEBUG: OnKey: 11 (0x0b) pressed, action is Select
19:46:25 T:140507606923008   ERROR: Failed to open(//) nfs_opendir_async failed
19:46:25 T:140509102995456   ERROR: GetDirectory - Error getting nfs://192.168.1.251/srv/nfs4/
19:46:25 T:140509102995456   ERROR: CGUIDialogFileBrowser::GetDirectory(nfs://192.168.1.251/srv/nfs4/) failed
19:46:51 T:140509102995456   DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/ImageLib-x86_64-linux.so)
19:46:51 T:140509102995456   DEBUG: Unloading: ImageLib-x86_64-linux.so
find quote
Aenima99x Offline
Donor
Posts: 1,128
Joined: Aug 2007
Reputation: 8
Location: California
Post: #6
Try changing the export to no_subtree_check instead
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 10,827
Joined: Feb 2011
Reputation: 113
Location: germany
Post: #7
Post ls -al /srv/nfs4 to pastebin.com and put the link into here.

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
kempy1000 Offline
Junior Member
Posts: 15
Joined: Feb 2012
Reputation: 0
Post: #8
No subtree check didn't help.

Here as requested.

http://pastebin.com/2viBJTqn
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 10,827
Joined: Feb 2011
Reputation: 113
Location: germany
Post: #9
chown -R 1002 /srv/nfs4

should do it - this would change the owner of all Exported dirs and Files to your given anonuid (i guess id 1002 is your "xbmc" user?)

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
kempy1000 Offline
Junior Member
Posts: 15
Joined: Feb 2012
Reputation: 0
Post: #10
Embarrassing but 1003 is actually my xbmc user... I used 1003 instead and my exports now looks like this but still the exact same error.

http://pastebin.com/wPTU5mVv
find quote
Aenima99x Offline
Donor
Posts: 1,128
Joined: Aug 2007
Reputation: 8
Location: California
Post: #11
Did you do exportfs -ra after making the changes?

Also, try removing the all_squash and see if that works.
(This post was last modified: 2014-04-13 06:17 by Aenima99x.)
find quote
kempy1000 Offline
Junior Member
Posts: 15
Joined: Feb 2012
Reputation: 0
Post: #12
Yep I exported them after editing.

All_squash removal didnt help.

I remembered the last time thats NFS worked was definitely in xbmc 12.2-9 so I downgraded to that version and using the exports from my last post it works (after downgrading libnfs). Heres the output of the debug log.
Well it lets me open the NFS4 serve (/srv/nfs4) which I couldn't before but none of the subfolders are shown.

http://pastebin.com/VLPMT803

EDIT: More research.

xbmc 12.2-9 with libnfs 1.7.0-2 works fine
xbmc 12.3-14 with libnfs 1.9.3-1 broken (Requires libnfs 1.9 though or else I just get an error cant find shared object)
(This post was last modified: 2014-04-13 12:51 by kempy1000.)
find quote
kempy1000 Offline
Junior Member
Posts: 15
Joined: Feb 2012
Reputation: 0
Post: #13
Trying out more versions. With xbmc 12.2-9 with libnfs-1.8.0-1 and my exports as this:

http://pastebin.com/Eivrk2hT

Everything works perfectly.

Openelec beta with gotham comes with libnfs.1.0.8 and works fine. Starting to think this is libnfs now.

When I upgrade xbmc to xbmc 12.3-14 with libnfs-1.8.0-1 I get this error (Which I expected)
Code:
Unable to load libnfs.so.4, reason: libnfs.so.4: cannot open shared object file: No such file or directory

It seems this issue is also present here:
https://bbs.archlinux.org/viewtopic.php?pid=1404162
(This post was last modified: 2014-04-14 16:08 by kempy1000.)
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 10,827
Joined: Feb 2011
Reputation: 113
Location: germany
Post: #14
/srv/nfs4/ 192.168.1.0/24(rw,all_squash,no_subtree_check,no_wdelay,insecure) <- wrong ... need to set anonuid = 1003 (or whatever you chowned your exportpath too - ensure that the nfs4 dir itself is also owned by 1003 - not only its subdirs!) ... also you should use the libnfs version we are supporting - which is libnfs 1.6 *grrr* - stupid freedom of linux distributions ...

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
kempy1000 Offline
Junior Member
Posts: 15
Joined: Feb 2012
Reputation: 0
Post: #15
If I do this as my exports it doesn't show the subdirs though?

http://pastebin.com/sMh4peAc

and Ive ran so permissions are correct.
Code:
chown -R 1003:1002 /srv/nfs4

http://pastebin.com/eAJ1i6jJ

Currently compiling the beta and I've symlinked libnfs.4 -> libnfs.1.0.8 with libnfs 1.8 installed (I don't have the option to install 1.6) to see if that will work.
(This post was last modified: 2014-04-14 18:37 by kempy1000.)
find quote
Post Reply