•   
  • 1
  • 2
  • 3(current)
  • 4
  • 5
  • 12
  •   
[AppleTV2] NFS on Apple TV 2?
#31
Memphiz Wrote:I think i see your problem now ... access rights ... as it states in the log file ...:

Code:
drwxrwxr-- 1 tenny plugdev 57344 2011-06-19 08:25 HDMovies
drwxrwxr-- 1 tenny plugdev  4096 2011-06-19 08:48 Media

As i mentioned earlier in this thread - when u use all_sqash - all accesses are done as user nobody ... so you should give user nobody the needed rights. You have tenny - as owner, plugdev as group - and world has no rights. Nobody would be treated as world in that case ... so nobody has no rights *cool hrhr* ...

thats the prob

Or you could just use the anonuid/anonguid commands.

Code:
(rw,async,all_squash,anonuid=150,anongid=150)

Where 150 is the uid/gid of tenny or plugdev.
Image
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
Reply
#32
good point ... damn i wish i would get some time for bringing something in the wiki for nfs stuff...
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
#33
nm.. i think i got it... Ssh'ed into my synology box... learned about vi and shiff-z-z- I feel like a programmer virgin.
----------
Newbie question:

Is the etc/exports a txt file in the Exportpath containing the code or something else?

Any input?
Reply
#34
/etc/exports is the configuration file for your nfs server (should be found on your synology box when you ssh in). It configures which pathes you want to access via nfs and which ip is allowed to connect to that directory via nfs and some things more ...
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
#35
Memphiz Wrote:/etc/exports is the configuration file for your nfs server (should be found on your synology box when you ssh in). It configures which pathes you want to access via nfs and which ip is allowed to connect to that directory via nfs and some things more ...

Thanks... I did actually get it to work once (not sure how). However now i all the time get the following:
------
20:28:15 T:101105664 M:115671040 NOTICE: VideoInfoScanner: Starting scan ..
20:28:15 T:101105664 M:115605504 ERROR: NFS: Failed to mount nfs share: RPC error: Mount failed with error MNT3ERR_ACCES(13) Permission denied(13)
20:28:15 T:101105664 M:115605504 ERROR: Previous line repeats 1 times.
20:28:15 T:101105664 M:115605504 ERROR: GetDirectory - Error getting nfs://192.168.0.14/Downloads/
20:28:15 T:101105664 M:115605504 DEBUG: VideoInfoScanner: Skipping dir 'nfs://192.168.0.14/Downloads/' due to no change
-------
It seems like it must be something with permissions. However i have played around with all kinds of settings. So my question is this "nobody" user how can I check the permissions on that? Can i somehow see all the permissions when SSH'ing into the synology? (i just play with user settings using the synology web interface).
Reply
#36
1) Do you have another *nix machine in the house (OS X, Ubuntu, etc)?
2) What is your /etc/exports file? (Not sure if it's available on the web interface)
3) What does "ls -la /Downloads" show from the synology box?
4) What 'user' does the synology run as?
Image
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
Reply
#37
I've started to work on the WIKI for NFS:

http://wiki.xbmc.org/index.php?title=Net..._%28NFS%29
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
#38
As it seems this is the place for debugging on NFS issues, I'll append my question/problem to this thread rather than start yet another.

My setup consists of a FreeNAS server serving some NFS shares.
I'm trying to connect to these via the ATV2 (iOS 4.3, XBMC PRE-11.0 Git:20110706-c4f6527).

I'm getting the following error:
Code:
03:07:43 T:805228544 M:130572288   DEBUG: SECTION:LoadDLL(libnfs.1.0.0.dylib)
03:07:43 T:805228544 M:130572288   DEBUG: Loading: /var/stash/Applications/XBMC.frappliance/Frameworks/libnfs.1.0.0.dylib
03:07:43 T:805228544 M:130514944   ERROR: NFS: Failed to mount nfs share: (null)
03:07:43 T:805228544 M:130514944   ERROR: GetDirectory - Error getting nfs://192.168.1.200/mnt/BigDisk/Movies/
(A full debug log can be provided, but this is the important bit)

I've tried both via the "add network location" option under "Browse", and manually.
I have the same share mounted on a linux box. So I would think the problem is at the ATV2 box.

Does XBMC assume something about these shares? I see a lot of talk about all_squash etc..
My exports on the FreeNAS box all appear as follows:
Code:
/mnt/BigDisk/Music -mapall=root -network 192.168.1.0 -mask 255.255.255.0

/mnt/BigDisk/TV -mapall=root -network 192.168.1.0 -mask 255.255.255.0

/mnt/BigDisk/Movies -mapall=root -network 192.168.1.0 -mask 255.255.255.0

/mnt/BigDisk -alldirs,quiet -mapall=root -network 192.168.1.0 -mask 255.255.255.0

I would think the -mapall option should take care of any permission problems.
Reply
#39
Do you have another unix machine to do a 'showmount -e' from?
Image
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
Reply
#40
Yes you seem to miss something in the log. Please provide the full log per pastebin.com.

Also please could you provide the content of /etc/exports on your FreeNAS box (login via ssh and issue "cat /etc/exports" -> paste output to pastebin.com).

bye

Memphiz

PS: i think you could have missed the "insecure" option - but only a rough guess...
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
#41
Actually looks a bit different for BSD style NFS:
http://lists.freebsd.org/pipermail/freeb...80973.html

Can you dump us:
Code:
rpcinfo -p 192.168.1.200

Can be done from any Unixish box.
Image
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
Reply
#42
Smile 
i am trying allegro NFS on my windows 7 box since SMB does not report netbios to windows and SMB shares freak out. anyone had any experience with this?
Reply
#43
I created an Ubuntu 11.04 VM and mounted as well as performed requested commands.

The included pastebin also contains a full debug log. I removed the userdata dir, started xbmc, added the Movies share from the NFS server, attempted to enter the Movies share afterwards, and exit XBMC.

http://pastebin.com/uvDtTNRy
Reply
#44
showmount -e [server ip/hostname] is how you do a remote host.
-
It looks like mountd is running on privileged ports.
Image
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
Reply
#45
darkscout Wrote:showmount -e [server ip/hostname] is how you do a remote host.
-
It looks like mountd is running on privileged ports.

Code:
[email protected]:~$ showmount -e 192.168.1.200
Export list for 192.168.1.200:
/mnt/BigDisk 192.168.1.0


It's funny you should mention it. From the FreeNAS log:
mountd[3041]: mount request from 192.168.1.86 from unprivileged port

.86 is the apple Tv..
Reply
  •   
  • 1
  • 2
  • 3(current)
  • 4
  • 5
  • 12
  •   
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
[AppleTV2] NFS on Apple TV 2?00