• 1
  • 6
  • 7
  • 8(current)
  • 9
  • 10
  • 12
[AppleTV2] NFS on Apple TV 2?
darkscout Wrote:8.0 is out, why are people still on 0.7.2?

Plus 8.0 has ZFS.

0.7.2 also has ZFS.
8.0 is marketed more towards the commercial market. I.e. it doesn't (easily) allow for custom programs etc.
Comparison shows the differences. Mainly people are interested in the custom programs / bittorrent integration.
Reply
Question 
Hi guys,

I tried and followed all the indications I've found on this topic but I still can't get it worked.

I have a Synology NAS from which I want to stream via NFS to XBMC on my ATV2.

Here is my config inside sources.xml :

Quote:<video>
<default pathversion="1"></default>
<source>
<name>video</name>
<path pathversion="1">nfs://192.168.1.16/volume1/video/</path>
</source>
</video>

Files in my video folder have the following rights:
Quote:drwxrwsrwx 220 antho users 12288 Jun 22 00:33 movies

Finally my exports file is as following :
Quote:/volume1/video 192.168.1.27(rw,all_squash,insecure,async,anonuid=501,anongid=501)

My log file can be found here : http://pastebin.com/das6caPL

Where did I screw up ?

EDIT : 192.168.1.16 is my NAS' IP and 192.168.1.27 is ATV's IP
Reply
What is 'id antho'?
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
Reply
I've been trying to get NFS working with my QNAP TS-509 but failing miserably.

It seems that the QNAP only allows NFS access on privileged ports, and I'm not sure how to change that.

Here's the exports on my QNAP:
PHP Code:
"/share/NFS" *(no_subtree_check,no_root_squash,fsid=0)
"/share/MD0_DATA/Chris" 192.168.1.*(rw,async,no_root_squash)
"/share/NFS/Chris" 192.168.1.*(rw,nohide,async,no_root_squash)
"/share/MD0_DATA/Public" *(rw,async,no_root_squash)
"/share/NFS/Public" *(rw,nohide,async,no_root_squash)
"/share/MD0_DATA/Qdownload" 192.168.1.*(rw,async,no_root_squash)
"/share/NFS/Qdownload" 192.168.1.*(rw,nohide,async,no_root_squash)
"/share/MD0_DATA/Qmultimedia" 192.168.1.*(rw,async,no_root_squash)
"/share/NFS/Qmultimedia" 192.168.1.*(rw,nohide,async,no_root_squash

Here's my log output fail:

PHP Code:
02:54:45 T:101302272 M:105943040   DEBUGLoading: /var/stash/Applications/XBMC.frappliance/Frameworks/libnfs.1.0.0.dylib
02
:54:45 T:101302272 M:105582592   ERRORNFSFailed to mount nfs shareRPC errorMount failed with error MNT3ERR_ACCES(13Permission denied(13)
02:54:45 T:804429824 M:105582592   ERRORGetDirectory Error getting nfs://192.168.1.50/share/NFS/Qmultimedia/
02:54:45 T:804429824 M:105582592   ERRORCGUIMediaWindow::GetDirectory(nfs://192.168.1.50/share/NFS/Qmultimedia/) failed
02:54:45 T:804429824 M:105582592   DEBUGCGUIMediaWindow::GetDirectory (sources://video/) 

I've tried setting the source as:

nfs://192.168.1.50/share/NFS/Qmultimedia

nfs://192.168.1.50/share/MD0_DATA/Qmultimedia

Anyone out there have a QNAP (hint hint keith) and get NFS shares working with the ATV2 ?

If I have helped you in any way, please forgive me, it was entirely accidental.
Reply
Quote:It seems that the QNAP only allows NFS access on privileged ports, and I'm not sure how to change that.

Add "insecure" to the options for each share.
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
Reply
darkscout Wrote:Add "insecure" to the options for each share.

Hmm. I thought I tried that. I'll give it another go. Thanks darkscout.

*edit*

No go on that one darkscout. Still getting the same log permission denied errors.

I tried adding anonuid=501 as well. Added a user "mobile" with uid=501 on the QNAP as well. No good.

If I switch the NFS service off and back on via the QNAP gui it resets exports back to the original one I posted.

Where might I find the NFS configs on the NAS? Maybe I can allow non-privileged access there?

If I have helped you in any way, please forgive me, it was entirely accidental.
Reply
darkscout Wrote:What is 'id antho'?

Do you mean what's its UID ?

uid=1026(antho) gid=100(users) groups=100(users),101(administrators)
Reply
Anth0 Wrote:Hi guys,

I tried and followed all the indications I've found on this topic but I still can't get it worked.

I have a Synology NAS from which I want to stream via NFS to XBMC on my ATV2.

Here is my config inside sources.xml :



Files in my video folder have the following rights:


Finally my exports file is as following :


My log file can be found here : http://pastebin.com/das6caPL

Where did I screw up ?

EDIT : 192.168.1.16 is my NAS' IP and 192.168.1.27 is ATV's IP

This all looks good to me. It states it has no rights to connect to the share - dunno why. Is synology nas linux based or bsd based or something?
You could try to remove the ip restriction by exchanging the ip with an * in the exports file for beeing sure.
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
Anth0 Wrote:Do you mean what's its UID ?

uid=1026(antho) gid=100(users) groups=100(users),101(administrators)

Well if antho's UID is 1026, why are you mapping all access to 501? (Which is the 1st user if you're using OS X and iOS).

I also don't think it likes the space between anonuid= and 501.
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
Reply
darkscout Wrote:Well if antho's UID is 1026, why are you mapping all access to 501? (Which is the 1st user if you're using OS X and iOS).

"antho" is a user on my NAS and owns the folder but from what I've understood of the wiki ATV's user id is 501 that's why I used 501 to grant him the rights.

I'll try to put anonuid=1026 anongid=100 then to see if it solves the problem.

darkscout Wrote:I also don't think it likes the space between anonuid= and 501.
There is not space actually in the config, just a copy/paste glitch here.
Reply
Anth0 Wrote:"antho" is a user on my NAS and owns the folder but from what I've understood of the wiki ATV's user id is 501 that's why I used 501 to grant him the rights.

I'll try to put anonuid=1026 anongid=100 then to see if it solves the problem.

You've got it backwards. The UID that the anonuid uses is what is on the server side. You've been assigning all incoming requests to UID 501 on the server which probably doesn't exist.
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
Reply
Yeah - what darkscout said. But first it hasn't enought rights to mount/connect the share. And i think this hasn't to do anything with user rights at this point. It only could be due to ip restrictions or missing insecure option (don't know what else could prevent the mount/connect to fail)
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
I've just tried with
Quote:/volume1/video *(rw,all_squash,insecure,async,anonuid=1026,anongid=100)

but it still does not work. Same error as before. Also tried with
Quote:/volume1/video *(rw,all_squash,insecure)
but same thing...Sad

EDIT: I restarted my NAS and it's working just fine now with "/volume1/video *(rw,all_squash,insecure)". I don't know why I had to restart it to get this to work though.
EDIT 2 : Just in case some other Synology users have a NFS problem. To restart NFS server on Syno just do this :
Quote:/usr/syno/etc/rc.d/S83nfsd.sh stop
/usr/syno/etc/rc.d/S83nfsd.sh start

Thanks for your help.
Reply
Can you get at the syslogs for the server?
-
And a stupid question, you are restarting the NFS server after you make changes to the exports?
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
Reply
darkscout Wrote:And a stupid question, you are restarting the NFS server after you make changes to the exports?

Not so stupid actually. I did not know I had to restart something. I thought modifications were taken into account immediately.
Problem solved Smile Now XBMC is scanning my whole library!
Reply
  • 1
  • 6
  • 7
  • 8(current)
  • 9
  • 10
  • 12

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