NFS Setup Assistance with Synology NAS

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
barrmy Offline
Junior Member
Posts: 39
Joined: Jun 2011
Reputation: 0
Post: #1
I'm getting the following error in the logs when trying to setup LAN NFS sharing from my Synology (running DSM 3.1) to a ATV2 on the 9/3 nightly.
Code:
ERROR: GetDirectory - Error getting nfs://192.168.1.23/Movies/
sharing

SMB sharing works, but hiccups with a few mkvs so I wanted to test out NFS. I looked at the wiki here and I have:
- shares for /Movies and /TV on the Synology
- a user 501 on the Synology with access to those two shares
- enabled ssh

I tried to run cat /etc/exports in ssh but nothing is returned by the command

In the ATV2, if I try to create a source, I can see my NAS on 192.168.1.23 but when I click through nothing happens:
Code:
11:20:22 T:67420160   ERROR: GetDirectory - Error getting nfs://192.168.1.23
11:20:22 T:67420160   ERROR: CGUIDialogFileBrowser::GetDirectory(nfs://192.168.1.23) failed

I'm sure I missed something, and appreciate any assistance

*edit*
I found NFS Privileges under Shares, which I set for:
- Client * (tried 192.168.1.* as well)
- Privilege: Read Only
- Root Squash: No Mapping
- Asynchronous: Yes (tried no as well)

I can now see my two mounts...volume1/Movies and volume1/TV when I browse under NFS, but can't click past that
In the logs it's showing permission denied
[CODE]13:29:56 T:112070656 ERROR: NFS: Failed to mount nfs share: /volume1/Movies (mount/mnt call failed with "RPC error: Mount failed with error MNT3ERR_ACCES(13) Permission denied(13)")
13:29:56 T:110727168 ERROR: GetDirectory - Error getting nfs://192.168.1.23/volume1/Movies/
13:29:56 T:110727168 ERROR: CGUIDialogFileBrowser::GetDirectory(nfs://192.168.1.23/volume1/Movies/) failed
13:29:58 T:112070656 ERROR: NFS: Failed to mount nfs share: /volume1/Movies (mount/mnt call failed with "RPC error: Mount failed with error MNT3ERR_ACCES(13) Permission denied(13)")
13:29:58 T:110727168 ERROR: GetDirectory - Error getting nfs://192.168.1.23/volume1/Movies/
13:29:58 T:110727168 ERROR: CGUIDialogFileBrowser::GetDirectory(nfs://192.168.1.23/volume1/Movies/) failed
13:29:58 T:112070656 ERROR: NFS: Failed to mount nfs share: /volume1/Movies (mount/mnt call failed with "RPC error: Mount failed with error MNT3ERR_ACCES(13) Permission denied(13)")
13:29:58 T:110727168 ERROR: GetDirectory - Error getting nfs://192.168.1.23/volume1/Movies/
13:29:58 T:110727168 ERROR: CGUIDialogFileBrowser::GetDirectory(nfs://192.168.1.23/volume1/Movies/) failed[CODE]
(This post was last modified: 2011-09-04 20:33 by barrmy.)
find quote
Memphiz Offline
Team-XBMC Developer
Posts: 10,149
Joined: Feb 2011
Reputation: 109
Location: germany
Post: #2
http://wiki.xbmc.org/index.php?title=Net...gy_or_QNAP

that is your problem ... hopefully someone who git it working could jump in here. In the future the wiki might have the needed instructions for common nas boxes.

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
canadave Offline
Fan
Posts: 687
Joined: Jul 2011
Reputation: 16
Location: Nova Scotia, Canada
Post: #3
Memphiz Wrote:http://wiki.xbmc.org/index.php?title=Net...gy_or_QNAP

that is your problem ... hopefully someone who git it working could jump in here. In the future the wiki might have the needed instructions for common nas boxes.

Memphiz posted the link with the proper fix. You need to have the "insecure" option enabled in /etc/exports.

BTW you don't need any special "501" user or anything like that set up in the Synology.

- ATV2 4.4.4 (iOS 5.0.1) build 9A406a, running Frodo (final version)
- Macbook Pro, running OSX Mountain Lion
- Skin: reFocus
- Connecting to MySQL database on Synology DS411+ NAS via NFS.
find quote
barrmy Offline
Junior Member
Posts: 39
Joined: Jun 2011
Reputation: 0
Post: #4
Memphiz, Canadave

Thanks, I was able to finally get it (the settings are slightly different and I was trying too hard)

So for others looking at this thread, here's a how-to
1. Login to your Synology GUI
2. Enable SSH (if not enabled already) Control Panel-->Terminal-->Enable SSH service
3. Enable NFS under Control Panel-->Win/MAC/NFS-->NFS Services-->Enable NFS
4. Under Control Panel-->Shared Folder, create a NFS Privileges entry for the folders you want to share
Hostname: either specific ip address of XBMC or *
Privlege: Read Only
Root Squash: No Mapping
5. Exit GUI, go to a terminal and SSH into your Synology
Code:
ssh root@<<SYNOLOGY IP ADDRESS>>
6. Type in cat /etc/exports to see if you get entries, mine were:
Code:
DiskStation> cat /etc/exports
/volume1/Movies *(ro,async,no_wdelay,no_root_squash,insecure_locks,anonuid=0,anongid=0)
/volume1/TV    *(ro,async,no_wdelay,no_root_squash,insecure_locks,anonuid=0,anongid=0)
7. Edit using vi:
Type vi /etc/exports
[If you don't know vi, press INS[SERT], use arrows to go to the line to edit, and delete/edit the line. Then press ESC, and :x to 'save&exit']
8. change the entries to:
Code:
/volume1/Movies    *(ro,async,no_wdelay,no_root_squash,insecure,anonuid=0,anongid=0)
/volume1/TV    *(ro,async,no_wdelay,no_root_squash,insecure,anonuid=0,anongid=0)
9. Do cat /etc/exports to see if it took
10. Enter "exportfs -ra" into console
11. You can now Browse NFS and get to your subfolders in XBMC
(This post was last modified: 2011-09-05 04:06 by barrmy.)
find quote
Memphiz Offline
Team-XBMC Developer
Posts: 10,149
Joined: Feb 2011
Reputation: 109
Location: germany
Post: #5
thx for your nice howto ... this will end up in the wiki then Smile great!

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
canadave Offline
Fan
Posts: 687
Joined: Jul 2011
Reputation: 16
Location: Nova Scotia, Canada
Post: #6
Memphiz Wrote:thx for your nice howto ... this will end up in the wiki then Smile

You betcha Smile Will try to get to this today.

*** EDIT: Done! Thanks. ***

- ATV2 4.4.4 (iOS 5.0.1) build 9A406a, running Frodo (final version)
- Macbook Pro, running OSX Mountain Lion
- Skin: reFocus
- Connecting to MySQL database on Synology DS411+ NAS via NFS.
(This post was last modified: 2011-09-05 13:37 by canadave.)
find quote
Memphiz Offline
Team-XBMC Developer
Posts: 10,149
Joined: Feb 2011
Reputation: 109
Location: germany
Post: #7
nice - thx canadave

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
activate Offline
Fan
Posts: 593
Joined: Feb 2011
Reputation: 1
Post: #8
Guys, thanks for this, I have followed the instructions as mentioned to remove the locks using terminal. Will try browse nfs later on

Macmini Server 2011 i7 Quad Core, OS 10.8.2, Amp Onkyo TX-SR308 USB WD drives 3x2TB TV Samsung Plasma 720p EyeTV Integration
There are only 10 kinds of people in this world, those who understand binary, and those who don't.



find quote
Twerft Offline
Junior Member
Posts: 2
Joined: Feb 2012
Reputation: 0
Post: #9
This is an old thread, but I googled around and was lead here. This thread reflects excactly what I'm trying to do right now.

I'm following the steps from Memphiz' link to the xbmc wiki. But when I do step 6 - "cat /etc/exports"

the response is "cat: can't open '/etc/exports': Permission denied"

I've more than double checked all the previous steps to make sure everything is done properly, but I haven't found any mistakes there. Also, I'm not that familiar with linux so if there's something basic that I've missed - please do tell Smile

// Twerft
find quote
Maetrik Offline
Donor
Posts: 401
Joined: Jan 2011
Reputation: 1
Location: Berlin, Germany
Post: #10
I guess you ssh'd in as admin? Try root instead and you should be fine.
find quote
Twerft Offline
Junior Member
Posts: 2
Joined: Feb 2012
Reputation: 0
Post: #11
Quote:I guess you ssh'd in as admin? Try root instead and you should be fine.

That was it. Thx.

// Twerft
find quote
mclog Offline
Senior Member
Posts: 260
Joined: Apr 2011
Reputation: 7
Post: #12
What kind of read speeds are you getting? My NFS speeds are horrible with the Synology NAS, about a quarter of my FTP or WebDav.
find quote
Maetrik Offline
Donor
Posts: 401
Joined: Jan 2011
Reputation: 1
Location: Berlin, Germany
Post: #13
.
(This post was last modified: 2012-02-05 20:24 by Maetrik.)
find quote
johnm109r Offline
Junior Member
Posts: 21
Joined: Jan 2012
Reputation: 0
Post: #14
Hey guys just a Question Which Synology Model are most ppl using on this forum ?
find quote
civicguy Offline
Junior Member
Posts: 32
Joined: May 2006
Reputation: 0
Post: #15
johnm109r Wrote:Hey guys just a Question Which Synology Model are most ppl using on this forum ?

I am using DS1511+
find quote
Post Reply