NFS Path Substitution - Need Help!
#1
This is happening on my Linux systems, and my ATV2 systems, and it's driving me nuts.

For some reason they're having no problem aliasing one of my NFS shares via subsitution, but refusing to do the other.

This is all shared out by a FreeNAS box.

First, here's a snippet of the sources.xml I'm sharing across all the boxes:

Quote:<source>
<name>TV-1</name>
<path pathversion="1">/Volumes/tv</path>
</source>
<source>
<name>TV-2</name>
<path pathversion="1">/Volumes/tv2</path>
</source>

Next, here's a snippet of advancedsettings.xml on the linux box where this is not working:

Quote:<pathsubstitution>
<substitute>
<from>/Volumes/tv</from>
<to>/storage/tv</to>
</substitute>

<substitute>
<from>/Volumes/tv2</from>
<to>/storage/tv2</to>
</substitute>
</pathsubstitution>

So, the reason I do this is that my main MySQL DB is run by a server, where the indexed content is mounted (and stored in the DB) at /Volumes/xxxxx. Therefore, I use the path substitution in XBMC at startup to tell XBMC that anywhere it encounters "/Volumes/tv" when loading a file, to alias that to the local "/storage/tv" and anywhere it sees "/Volumes/tv2" to alias that to the local "/storage/tv2". Seems logical. If neither were working, I'd at least think I was totally off base here, but the problem is one works great, and the other refuses to work!

Even more maddening, my ATV2 boxes are behaving in a similar way, but only with the one source. I made sure that permissions matched up as well.

Above, the first substitute works great...The second one, no dice. If I try and browse to "TV-2" in the files view I get a "Path Not Found or Invalid" error. "TV-1" is working great.

If I browse the file system, both /storage/tv and /storage/tv2 have files in them and mounted correctly via autoexec.sh, like this:

Quote:mount -t nfs 192.168.1.199:/mnt/tv/shows /storage/tv -o tcp,timeo=6000,nolock
mount -t nfs 192.168.1.199:/mnt/tv2/shows /storage/tv2 -o tcp,timeo=6000,nolock

So what gives? I've been struggling with this for WEEKS to no avail...Can anyone help me? Anything I can try? Anything I can look at in the logs to get detail on the error that XBMC is throwing?

Please help save my weekend!
Reply
#2
Debug log:

Success:

15:27:46 T:139724625319744 DEBUG: LIRC: Update - NEW at 1389762:160 0 KEY_OK devinput (KEY_OK)
15:27:46 T:139724625319744 DEBUG: OnKey: 11 (0b) pressed, action is Select
15:27:46 T:139724625319744 DEBUG: CGUIMediaWindow::GetDirectory (/Volumes/tv/)
15:27:46 T:139724625319744 DEBUG: ParentPath = [sources://video/]
15:27:47 T:139724359550720 NOTICE: Thread Background Loader start, auto delete: false

Fail:

15:27:51 T:139724625319744 DEBUG: LIRC: Update - NEW at 1394378:160 0 KEY_OK devinput (KEY_OK)
15:27:51 T:139724625319744 DEBUG: OnKey: 11 (0b) pressed, action is Select
15:27:51 T:139724625319744 DEBUG: CGUIMediaWindow::GetDirectory (/Volumes/tv2/)
15:27:51 T:139724625319744 DEBUG: ParentPath = [sources://video/]
15:27:51 T:139724625319744 ERROR: GetDirectory - Error getting /Volumes/tv2/
15:27:51 T:139724625319744 ERROR: CGUIMediaWindow::GetDirectory(/Volumes/tv2/) failed
15:27:51 T:139724625319744 DEBUG: CGUIMediaWindow::GetDirectory (sources://video/)
15:27:51 T:139724625319744 DEBUG: ParentPath = []
Reply
#3
Post a full debug log please.
Reply
#4
Sorry, should know better and have done that to begin with.

For now, I've created a new NFS source that I am sharing and is working, however the previous source stated above still fails and it's set up identical to the ones that are working. This may be more of a FreeNAS bug than a XBMC one, and it may be tough to reproduce, but if others are having the issue, or the mods/admins want to see it in the hopes of uncovering a bug, I'd be happy to post the log as I do still have the faulty source in the config (just don't use it anymore, but I left it there anyway).
Reply
#5
I've got the same issue as this. Frodo on OS-X hosting the DB and NFS shares, Apple TV2 failing to access anything on the second NFS share.

Not got access just now to get the logs but will post them up when I get a chance.
Reply
#6
(2013-03-27, 23:21)suhawk14 Wrote: I've got the same issue as this. Frodo on OS-X hosting the DB and NFS shares, Apple TV2 failing to access anything on the second NFS share.

Not got access just now to get the logs but will post them up when I get a chance.

Just realised that this thread is in the Linux forum. Given that I've been having the same issue with OS-X, I posted a new thread in the general forum: http://forum.xbmc.org/showthread.php?tid=160745
Reply

Logout Mark Read Team Forum Stats Members Help
NFS Path Substitution - Need Help!0