[QNAP] NFS Guide now in Wiki
#46
Hello,

It is time to roll out big guns since i have no idea even how to further troubleshoot now.

Problem description:
For the setup posted hereunder i try to bind HTPC with NAS using NFS. I faced problem where NFS is seen on XBMC but the sub tree structure is not and have no further idea what to check or fix to make it work.
I've been following QNAP manuals as well as Procedure attached here (which, as told by QNAP support, are not valid anymore since all the settings are stored in nfssettings file).
Tried to change several settings and creating matching users on each machine.
Have been establishing session (Team Viewer) with QNAP official support and still no results - so maybe you can ashame them.


So you guys are my sort of last resort.

Equipment:
NAS: QNAP TS-412 (2x3T Seagate disks in RAID0) - Firmware version 3.7.3 Build 20120801
HTPC: Zotac Zbox AD02 - OS: Win7 Ultimate (WiFi Wireless N) - XBMC 11.0 Eden
ROUTER: ASUS RT-N16 with optware Firmware: DD-WRT v24-sp2 (06/08/12) mega


Some settings that may help.

[admin@Nas /]# cd /mnt/HDA_ROOT/.config/
[admin@Nas .config]# more nfssetting
"/share/NFS" *(no_subtree_check,no_root_squash,fsid=0)
"/share/MD0_DATA/Public" *(rw,async,no_root_squash)
"/share/NFS/Public" *(rw,nohide,async,no_root_squash)
[Access]
/share/MD0_DATA/Download = rw
/share/MD0_DATA/Multimedia = rw
/share/MD0_DATA/Network Recycle Bin = rw
/share/MD0_DATA/Public = rw
/share/MD0_DATA/Recordings = rw
/share/MD0_DATA/Usb = rw
/share/MD0_DATA/Web = rw
/share/MD0_DATA/share-gabi = rw
/share/MD0_DATA/MMedia = rw
[AllowIP]
/share/MD0_DATA/Download = *
/share/MD0_DATA/Multimedia = *
/share/MD0_DATA/Network Recycle Bin = *
/share/MD0_DATA/Public = *
/share/MD0_DATA/Recordings = *
/share/MD0_DATA/Usb = *
/share/MD0_DATA/Web = *
/share/MD0_DATA/share-gabi = *
/share/MD0_DATA/MMedia = *


Reply
#47
(2012-11-01, 10:23)grabhasz Wrote: Hello,

It is time to roll out big guns since i have no idea even how to further troubleshoot now.

Problem description:
For the setup posted hereunder i try to bind HTPC with NAS using NFS. I faced problem where NFS is seen on XBMC but the sub tree structure is not and have no further idea what to check or fix to make it work.
I've been following QNAP manuals as well as Procedure attached here (which, as told by QNAP support, are not valid anymore since all the settings are stored in nfssettings file).
Tried to change several settings and creating matching users on each machine.
Have been establishing session (Team Viewer) with QNAP official support and still no results - so maybe you can ashame them.


So you guys are my sort of last resort.

Equipment:
NAS: QNAP TS-412 (2x3T Seagate disks in RAID0) - Firmware version 3.7.3 Build 20120801
HTPC: Zotac Zbox AD02 - OS: Win7 Ultimate (WiFi Wireless N) - XBMC 11.0 Eden
ROUTER: ASUS RT-N16 with optware Firmware: DD-WRT v24-sp2 (06/08/12) mega


Some settings that may help.

[admin@Nas /]# cd /mnt/HDA_ROOT/.config/
[admin@Nas .config]# more nfssetting
"/share/NFS" *(no_subtree_check,no_root_squash,fsid=0)
"/share/MD0_DATA/Public" *(rw,async,no_root_squash)
"/share/NFS/Public" *(rw,nohide,async,no_root_squash)
[Access]
/share/MD0_DATA/Download = rw
/share/MD0_DATA/Multimedia = rw
/share/MD0_DATA/Network Recycle Bin = rw
/share/MD0_DATA/Public = rw
/share/MD0_DATA/Recordings = rw
/share/MD0_DATA/Usb = rw
/share/MD0_DATA/Web = rw
/share/MD0_DATA/share-gabi = rw
/share/MD0_DATA/MMedia = rw
[AllowIP]
/share/MD0_DATA/Download = *
/share/MD0_DATA/Multimedia = *
/share/MD0_DATA/Network Recycle Bin = *
/share/MD0_DATA/Public = *
/share/MD0_DATA/Recordings = *
/share/MD0_DATA/Usb = *
/share/MD0_DATA/Web = *
/share/MD0_DATA/share-gabi = *
/share/MD0_DATA/MMedia = *

Got to head out, but just quickly, try adding insecure after rw as in /share/MD0_DATA/Multimedia = rw,insecure and see if this helps.

Let me know how you go, I'll be back later.

If I have helped you in any way, please forgive me, it was entirely accidental.
Reply
#48
Checked and still no luck with case resolution.

- modified with VI (below config file)
- restarted nfsd (/etc/init.d/nfs restart | reexport | remountd)
nothing helped
- retsrated QNAP machine
- restarted XBMC and Win7

no results.

hint: if i put bare file directly on the root path (/share/MD0_DATA/Multimedia) i can see and play it but any deeper folder structure is not recognized.

modified nfssettings:
[admin@Nas .config]# cat /mnt/HDA_ROOT/.config/nfssetting
"/share/NFS" *(no_subtree_check,no_root_squash,fsid=0)
"/share/MD0_DATA/Public" *(rw,async,no_root_squash)
"/share/NFS/Public" *(rw,nohide,async,no_root_squash)
[Access]
/share/MD0_DATA/Download = rw
/share/MD0_DATA/Multimedia = rw,insecure
/share/MD0_DATA/Network Recycle Bin = rw
/share/MD0_DATA/Public = rw
/share/MD0_DATA/Recordings = rw
/share/MD0_DATA/Usb = rw
/share/MD0_DATA/Web = rw
/share/MD0_DATA/share-gabi = rw
/share/MD0_DATA/MMedia = rw,insecure
[AllowIP]
/share/MD0_DATA/Download = *
/share/MD0_DATA/Multimedia = *
/share/MD0_DATA/Network Recycle Bin = *
/share/MD0_DATA/Public = *
/share/MD0_DATA/Recordings = *
/share/MD0_DATA/Usb = *
/share/MD0_DATA/Web = *
/share/MD0_DATA/share-gabi = *
/share/MD0_DATA/MMedia = *
Reply
#49
(2012-11-01, 10:23)grabhasz Wrote: I've been following QNAP manuals as well as Procedure attached here (which, as told by QNAP support, are not valid anymore since all the settings are stored in nfssettings file).

Equipment:
NAS: QNAP TS-412 (2x3T Seagate disks in RAID0) - Firmware version 3.7.3 Build 20120801

I'm running firmware 3.7.3 on my TS-509, and my setup is as per the wiki (I wrote the QNAP guide in the wiki) and it's running perfectly. Not sure what they mean by everything being stored in the nfssettings file now, nothing has changed for me. I can look into that further though.

Have you tried following the guide exactly step for step and seeing if it works? You can try it for one share directory first to see if it works, that will save some typing.

I have to be up at 4am, it's 10pm here, so I'll assist more tomorrow when I get time. I hope I can help sort this for you.

If I have helped you in any way, please forgive me, it was entirely accidental.
Reply
#50
@Cranial,

Thank you for dedicated support.
I will neglect QNAP suggestions about these config files and will proceed exactly like in wiki guide.
Though i stopped last time on step#7 cause couldn't see exactly same output in /etc/exports (there was missing NFS lines),

Anyways let me do it and will share feedback.
Reply
#51
STEP#1-6
Done as shown on wiki.

STEP#7
before:
[admin@Nas .config]# cat /etc/exports
"/share/MD0_DATA/Download" *(rw,async,no_root_squash,insecure)
"/share/MD0_DATA/MMedia" *(rw,insecure,async,no_root_squash,insecure)
"/share/MD0_DATA/Multimedia" *(rw,insecure,async,no_root_squash,insecure)
"/share/MD0_DATA/Network Recycle Bin" *(rw,async,no_root_squash,insecure)
"/share/MD0_DATA/Public" *(rw,async,no_root_squash,insecure)
"/share/MD0_DATA/Recordings" *(rw,async,no_root_squash,insecure)
"/share/MD0_DATA/Usb" *(rw,async,no_root_squash,insecure)
"/share/MD0_DATA/Web" *(rw,async,no_root_squash,insecure)
"/share/MD0_DATA/share-gabi" *(rw,async,no_root_squash,insecure)


STEP#8
after:
("insecure" was already there but there was missing "nohide" so i added it.

[admin@Nas .config]# cat /etc/exports
"/share/MD0_DATA/Download" *(rw,async,no_root_squash,insecure,nohide)
"/share/MD0_DATA/MMedia" *(rw,insecure,async,no_root_squash,insecure,nohide)
"/share/MD0_DATA/Multimedia" *(rw,insecure,async,no_root_squash,insecure,nohide)
"/share/MD0_DATA/Network Recycle Bin" *(rw,async,no_root_squash,insecure,nohide)
"/share/MD0_DATA/Public" *(rw,async,no_root_squash,insecure,nohide)
"/share/MD0_DATA/Recordings" *(rw,async,no_root_squash,insecure,nohide)
"/share/MD0_DATA/Usb" *(rw,async,no_root_squash,insecure,nohide)
"/share/MD0_DATA/Web" *(rw,async,no_root_squash,insecure,nohide)
"/share/MD0_DATA/share-gabi" *(rw,async,no_root_squash,insecure,nohide)



STEP#9
[admin@Nas .config]# exportfs -ra
exportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "*:/share/MD0_DATA/Download".
Assuming default behaviour ('no_subtree_check').
NOTE: this default has changed since nfs-utils version 1.0.x

exportfs: /etc/exports [2]: Neither 'subtree_check' or 'no_subtree_check' specified for export "*:/share/MD0_DATA/MMedia".
Assuming default behaviour ('no_subtree_check').
NOTE: this default has changed since nfs-utils version 1.0.x

exportfs: /etc/exports [3]: Neither 'subtree_check' or 'no_subtree_check' specified for export "*:/share/MD0_DATA/Multimedia".
Assuming default behaviour ('no_subtree_check').
NOTE: this default has changed since nfs-utils version 1.0.x

exportfs: /etc/exports [4]: Neither 'subtree_check' or 'no_subtree_check' specified for export "*:/share/MD0_DATA/Network Recycle Bin".
Assuming default behaviour ('no_subtree_check').
NOTE: this default has changed since nfs-utils version 1.0.x

exportfs: /etc/exports [5]: Neither 'subtree_check' or 'no_subtree_check' specified for export "*:/share/MD0_DATA/Public".
Assuming default behaviour ('no_subtree_check').
NOTE: this default has changed since nfs-utils version 1.0.x

exportfs: /etc/exports [6]: Neither 'subtree_check' or 'no_subtree_check' specified for export "*:/share/MD0_DATA/Recordings".
Assuming default behaviour ('no_subtree_check').
NOTE: this default has changed since nfs-utils version 1.0.x

exportfs: /etc/exports [7]: Neither 'subtree_check' or 'no_subtree_check' specified for export "*:/share/MD0_DATA/Usb".
Assuming default behaviour ('no_subtree_check').
NOTE: this default has changed since nfs-utils version 1.0.x

exportfs: /etc/exports [8]: Neither 'subtree_check' or 'no_subtree_check' specified for export "*:/share/MD0_DATA/Web".
Assuming default behaviour ('no_subtree_check').
NOTE: this default has changed since nfs-utils version 1.0.x

exportfs: /etc/exports [9]: Neither 'subtree_check' or 'no_subtree_check' specified for export "*:/share/MD0_DATA/share-gabi".
Assuming default behaviour ('no_subtree_check').
NOTE: this default has changed since nfs-utils version 1.0.x

exportfs: Warning: /share/MD0_DATA/Network Recycle Bin does not support NFS export.




STEP#10:
before:
[admin@Nas .config]# cat /etc/config/nfssetting
"/share/NFS" *(no_subtree_check,no_root_squash,fsid=0)
"/share/MD0_DATA/Public" *(rw,async,no_root_squash)
"/share/NFS/Public" *(rw,nohide,async,no_root_squash)
[Access]
/share/MD0_DATA/Download = rw
/share/MD0_DATA/Multimedia = rw,insecure
/share/MD0_DATA/Network Recycle Bin = rw
/share/MD0_DATA/Public = rw
/share/MD0_DATA/Recordings = rw
/share/MD0_DATA/Usb = rw
/share/MD0_DATA/Web = rw
/share/MD0_DATA/share-gabi = rw
/share/MD0_DATA/MMedia = rw,insecure
[AllowIP]
/share/MD0_DATA/Download = *
/share/MD0_DATA/Multimedia = *
/share/MD0_DATA/Network Recycle Bin = *
/share/MD0_DATA/Public = *
/share/MD0_DATA/Recordings = *
/share/MD0_DATA/Usb = *
/share/MD0_DATA/Web = *
/share/MD0_DATA/share-gabi = *
/share/MD0_DATA/MMedia = *



STEP#11:
after:

[admin@Nas .config]# cat /etc/config/nfssetting
"/share/NFS" *(no_subtree_check,no_root_squash,fsid=0)
"/share/MD0_DATA/Public" *(rw,async,no_root_squash)
"/share/NFS/Public" *(rw,nohide,async,no_root_squash)
[Access]
/share/MD0_DATA/Download = rw,insecure
/share/MD0_DATA/Multimedia = rw,insecure
/share/MD0_DATA/Network Recycle Bin = rw
/share/MD0_DATA/Public = rw,insecure
/share/MD0_DATA/Recordings = rw,insecure
/share/MD0_DATA/Usb = rw,insecure
/share/MD0_DATA/Web = rw,insecure
/share/MD0_DATA/share-gabi = rw,insecure
/share/MD0_DATA/MMedia = rw,insecure
[AllowIP]
/share/MD0_DATA/Download = *
/share/MD0_DATA/Multimedia = *
/share/MD0_DATA/Network Recycle Bin = *
/share/MD0_DATA/Public = *
/share/MD0_DATA/Recordings = *
/share/MD0_DATA/Usb = *
/share/MD0_DATA/Web = *
/share/MD0_DATA/share-gabi = *
/share/MD0_DATA/MMedia = *


STEP#12
XBMC checks - nothing shown inside the structure again.


----------------
Since Step#9 was a bit suspicious to me - i thought this subtree parameter could be the case.
So i have modified nfssettings and exports.

[admin@Nas .config]# cat /etc/exports
"/share/MD0_DATA/Download" *(rw,async,no_root_squash,insecure,nohide,subtree_check)
"/share/MD0_DATA/MMedia" *(rw,insecure,async,no_root_squash,insecure,nohide,subtree_check)
"/share/MD0_DATA/Multimedia" *(rw,insecure,async,no_root_squash,insecure,nohide,subtree_check)
"/share/MD0_DATA/Network Recycle Bin" *(rw,async,no_root_squash,insecure,nohide,subtree_check)
"/share/MD0_DATA/Public" *(rw,async,no_root_squash,insecure,nohide,subtree_check)
"/share/MD0_DATA/Recordings" *(rw,async,no_root_squash,insecure,nohide,subtree_check)
"/share/MD0_DATA/Usb" *(rw,async,no_root_squash,insecure,nohide,subtree_check)
"/share/MD0_DATA/Web" *(rw,async,no_root_squash,insecure,nohide,subtree_check)
"/share/MD0_DATA/share-gabi" *(rw,async,no_root_squash,insecure,nohide,subtree_check)
[admin@Nas .config]# exportfs -ra
exportfs: Warning: /share/MD0_DATA/Network Recycle Bin does not support NFS export.

AND

[admin@Nas .config]# cat /etc/config/nfssetting
"/share/NFS" *(subtree_check,no_root_squash,fsid=0)
"/share/MD0_DATA/Public" *(rw,async,no_root_squash)
"/share/NFS/Public" *(rw,nohide,async,no_root_squash)
[Access]
/share/MD0_DATA/Download = rw,insecure
/share/MD0_DATA/Multimedia = rw,insecure
/share/MD0_DATA/Network Recycle Bin = rw
/share/MD0_DATA/Public = rw,insecure
/share/MD0_DATA/Recordings = rw,insecure
/share/MD0_DATA/Usb = rw,insecure
/share/MD0_DATA/Web = rw,insecure
/share/MD0_DATA/share-gabi = rw,insecure
/share/MD0_DATA/MMedia = rw,insecure
[AllowIP]
/share/MD0_DATA/Download = *
/share/MD0_DATA/Multimedia = *
/share/MD0_DATA/Network Recycle Bin = *
/share/MD0_DATA/Public = *
/share/MD0_DATA/Recordings = *
/share/MD0_DATA/Usb = *
/share/MD0_DATA/Web = *
/share/MD0_DATA/share-gabi = *
/share/MD0_DATA/MMedia = *

Repeated STEP#12
XBMC checks - nothing shown inside the structure again.

----------------


STEP#13 - 19
DONE


RESULTS:
:-(
Still not working.



I started believing the problem lies outside of QNAP.
Maybe DD-WRT is trying to put up some own configuration on the way. Doubtful?
Reply
#52
Post a debug log of xbmc trying to connect. If insecure flag is there and you still fail its most likly caused by wrong filesystem permissions.
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
#53
Below captured log.
For SMB i see some weird user/pass - anyidea where i can change it?

Due to post number of characters constraint I put only NFS related stuff.
If full log is needed let me know.
btw: there is no option to insert files in here.


Code:
156: 16:26:39 T:3576   DEBUG: SECTION:LoadDLL(special://xbmcbin/system/libnfs.dll)
176: 16:26:47 T:3576   DEBUG: NFS: Context for 10.154.1.110/Multimedia not open - get a new context.
177: 16:26:47 T:3576   DEBUG: NFS: Connected to server 10.154.1.110 and export /Multimedia
178: 16:26:47 T:3576   DEBUG: NFS: chunks: r/w 32768/32768
186: 16:26:49 T:2548   DEBUG: NFS: Context for 10.154.1.110/MMedia not open - get a new context.
187: 16:26:49 T:2548   DEBUG: NFS: Connected to server 10.154.1.110 and export /MMedia
188: 16:26:49 T:2548   DEBUG: NFS: chunks: r/w 32768/32768
220: 16:27:05 T:3796   DEBUG: CGUIMediaWindow::GetDirectory (nfs://10.154.1.110/MMedia/)


Code:
16:26:39 T:3576   DEBUG: SECTION:LoadDLL(special://xbmcbin/system/libnfs.dll)
16:26:40 T:3796   DEBUG: ------ Window Init (DialogBusy.xml) ------
16:26:44 T:2336   DEBUG: Trying to connect to \\NAS\Multimedia with username() and password(XXXX)
16:26:44 T:2336   ERROR: Couldn't connect to \\NAS\Multimedia, access denied
16:26:44 T:2336   ERROR: Couldn't connect to \\NAS\Multimedia, error code 86
16:26:44 T:2336   ERROR: XFILE::CDirectory::GetDirectory - Error getting smb://NAS/Multimedia/Video/Movies/(1981) Chariots Of Fire/
16:26:44 T:2336   DEBUG: VideoInfoScanner: Skipping dir 'smb://NAS/Multimedia/Video/Movies/(1981) Chariots Of Fire/' as it's empty or doesn't exist - adding to clean list
16:26:44 T:3796   DEBUG: ------ Window Deinit (DialogBusy.xml) ------



Quote:its most likly caused by wrong filesystem permissions

I have followed QNAP manual for NFS sharing - is there anything which is not included or should have been added/modified on HTPC/XBMC side?
Reply
#54
I'm at work all day, but I'll look into any changes I need to make in the wiki to accommodate the new firmware. My setup has rolled over from previous firmwares so there could be differences.

Can you ssh into the QNAP and try this:

cd /share

/sbin/set_volume_mode Qmultimedia

(Replace "Qmultimedia" with the name of your share)

Just try it on one share and see if Xbmc can then access. It's a built in script for resetting file permissions.

If I have helped you in any way, please forgive me, it was entirely accidental.
Reply
#55
I don't eat incomplete logs. Paste a full log to pastebin.com. Smile
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
#56
Posted by Cranial - Yesterday 20:05 Wrote:I'm at work all day, but I'll look into any changes I need to make in the wiki to accommodate the new firmware. My setup has rolled over from previous firmwares so there could be differences.
Can you ssh into the QNAP and try this:
cd /share
/sbin/set_volume_mode Qmultimedia
(Replace "Qmultimedia" with the name of your share)
Just try it on one share and see if Xbmc can then access. It's a built in script for resetting file permissions.

Still nothing - same result.

Code:
[admin@NAS share]# /sbin/set_volume_mode Multimedia
Volume: Multimedia
Path: /share/MD0_DATA/Multimedia
Set directory mode to 0777 and file mode to 0666(keep execute permission)

[admin@NAS share]# ls -ltrh Multimedia
lrwxrwxrwx    1 admin    administ       19 Nov  1 10:51 Multimedia -> MD0_DATA/Multimedia/
[admin@NAS share]# ls -ltrh MD0_DATA/Multimedia/
drwxrwxrwx    5 admin    administ     4.0k Oct 27 03:17 Video/
-rwxrwxrw-    1 admin    administ     5.5G Oct 27 06:26 Chariots.Of.Fire.1981.720p.BluRay.mkv*
drwxrwxrwx    2 admin    administ     4.0k Oct 28 13:28 test/
drwxrwxrwx    3 admin    administ     4.0k Oct 29 03:00 Samples/
drwxrwxrwx    8 admin    administ     4.0k Oct 29 03:00 Photos/
drwxrwxrwx    4 admin    administ     4.0k Oct 31 10:45 Music/



-------------------------------------------------------------------

Posted by Memphiz - Yesterday 21:34 Wrote:I don't eat incomplete logs. Paste a full log to pastebin.com.

complete XBMC debug log - link
Reply
#57
Are you kidding me? In that logfile you don't even try to access any nfs sources...

You try to connect via \\blahblah (samba?!?) with permission errors though.
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
#58
Let me brief you since i believe you miss the problem description.

There is no error reported but lack of sub-tree visibility.
Whilst connecting nfs via xbmc to qnap the root share is mapped but with void structure.
So connecting via nfs i can see only bare files but any folder structure.
Reply
#59
First, don't bother with Samba and the QNAP, the performance isn't there.

Let's get NFS going for you.

Pastebin for us:

sources.xml

a full debug log file from -> Starting xbmc, trying to access NFS shares.

The output of cat /etc/exports

The output of cat /etc/config/nfssetting

We'll go from there.




If I have helped you in any way, please forgive me, it was entirely accidental.
Reply
#60
Below link contains
- /etc/exports
- /etc/config/nfssetting
- /mnt/HDA_ROOT/.config/nfssetting
- XBMC debug log - operations conducted start/attach NFS Multimedia-NFS-TestDir/close
- sources.xml

Requested Symptoms.
Reply

Logout Mark Read Team Forum Stats Members Help
[QNAP] NFS Guide now in Wiki0