Kodi Community Forum

Full Version: Thumbnail Redirection (pathsubstitution) ignored in Eden Beta1?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I just upgraded all of my systems (Linux Ubuntu server, Windows XP, AppleTV2) to the Eden Beta. I deleted the whole installation, including databases and thumbs, and decided to try again making all of the systems centralized. I followed the following wiki entry http://wiki.xbmc.org/index.php?title=HOW..._libraries

None of my thumbnails show up. No files are created in the network share. XBMC crashes often, and the log file shows lots of:

Code:
12:45:19 T:140213292619520   ERROR: FileSmb->Open: Unable to open file : 'smb://172%2e16%2e0%2e11/bigdisk/videos/thumbnails/Video/e/efc6ed3c%2etbn'
                                            unix_err:'d' error : 'Permission denied'
12:45:19 T:140213292619520   ERROR: CacheImage Unable to create new image special://masterprofile/Thumbnails/Video/e/efc6ed3c.tbn from image http://thetvdb.com/banners/episodes/76932/220546.jpg
12:45:19 T:140213292619520   ERROR: Delete - Error( Permission denied )

The begining of the log file also shows lines such as:
Code:
12:42:24 T:140213791004544   ERROR: Create - Error( Permission denied )
12:42:24 T:140213791004544   ERROR: Create - Error creating /home/ebolam/.xbmc/userdata/Thumbnails/Music
12:42:24 T:140213791004544   ERROR: Create - Error creating special://masterprofile/Thumbnails/Music
which implies that XBMC is not honoring the pathsubstitution.

Here's my advancedsettings.xml file:
Code:
<advancedsettings>
                                              <videodatabase>
                                                <type>mysql</type>
                                                <host>172.16.0.11</host>
                                                <name>xbmc_video</name>
                                                <user>xbmc</user>
                                                <pass>PASSWORD</pass>
                                              </videodatabase>
                                              <musicdatabase>
                                                <type>mysql</type>
                                                <host>172.16.0.11</host>
                                                <name>xbmc_music</name>
                                                <user>xbmc</user>
                                                <pass>PASSWORD</pass>
                                              </musicdatabase>
                                              <pathsubstitution>
                                                <substitute>
                                                  <from>special://masterprofile/Thumbnails/</from>
                                                  <to>smb://USER:[email protected]/bigdisk/videos/thumbnails/</to>
                                                </substitute>
                                              </pathsubstitution>
                                              <gui>
                                                <algorithmdirtyregions>1</algorithmdirtyregions>
                                              </gui>
                                            </advancedsettings>
with USER and PASSWORD replaced Smile

Any help would be appreciated.
I'm not sure if this is needed but you should try on each of your devices to add an SMB share from the share folder. You don't need to actually add the folder but what you want is the pop up that asks you to save the SMB credentials. Once you successfully log in and can view the shared files (with the credentials saved) try again to do what you're doing.
All of my sources already go to that machine and work correctly. They do not use the IP address however. I tried changing the pathsubstitution to use the machine name instead of the IP address (man that seams wrong...). Same result.

I can't for the life of me figure out what's wrong. I'm doing the same thing as many others have, but it just doesn't work... I must be doing SOMETHING wrong. I get the same error when I use the masterprofile and/or profile thumbnail substitution on a windows XP box and an Ubuntu 11.10 box.

Debug log (level 3 to see if I could find anything else...):
Code:
10:20:13 T:70529024  NOTICE: -----------------------------------------------------------------------
10:20:13 T:70529024  NOTICE: Starting XBMC, Platform: Darwin iOS (11.0.0 AppleTV2,1, Version 4.3 (Build 8F455)). Built on Dec 24 2011 (Git:20111222-22ad8e4)
----CUT-----
10:20:14 T:70529024  NOTICE: No settings file to load to load (special://xbmc/system/advancedsettings.xml)
10:20:14 T:70529024  NOTICE: Loaded settings file from special://profile/advancedsettings.xml
10:20:14 T:70529024  NOTICE: Contents of special://profile/advancedsettings.xml are...
                                            <advancedsettings>
                                              <videodatabase>
                                                <type>mysql</type>
                                                <host>172.16.0.11</host>
                                                <name>xbmc_video</name>
                                                <user>xbmc</user>
                                                <pass>DBPASSWORD</pass>
                                              </videodatabase>
                                              <musicdatabase>
                                                <type>mysql</type>
                                                <host>172.16.0.11</host>
                                                <name>xbmc_music</name>
                                                <user>xbmc</user>
                                                <pass>DBPASSWORD</pass>
                                              </musicdatabase>
                                              <pathsubstitution>
                                                <substitute>
                                                  <from>special://masterprofile/Thumbnails</from>
                                                  <to>smb://USERNAME:PASSWORD@KASUMI/bigdisk/videos/thumbnails/</to>
                                                </substitute>
                                                <substitute>
                                                  <from>special://profile/Thumbnails</from>
                                                  <to>smb://USERNAME:PASSWORD@KASUMI/bigdisk/videos/thumbnails/</to>
                                                </substitute>
                                                <substitute>
                                                  <from>/var/mobile/Library/Preferences/XBMC/userdata/Thumbnails</from>
                                                  <to>smb://USERNAME:PASSWORD@KASUMI/bigdisk/videos/thumbnails/</to>
                                                </substitute>
                                              </pathsubstitution>
                                              <gui>
                                                <algorithmdirtyregions>2</algorithmdirtyregions>
                                              </gui>
                                              <loglevel hide="true">3</loglevel>
                                            </advancedsettings>
10:20:14 T:70529024  NOTICE: Log level changed to 3
10:20:14 T:70529024   DEBUG: Configuring path substitutions
10:20:14 T:70529024   DEBUG:   Registering substition pair:
10:20:14 T:70529024   DEBUG:     From: [/var/mobile/Library/Preferences/XBMC/userdata/Thumbnails]
10:20:14 T:70529024   DEBUG:     To:   [smb://USERNAME:PASSWORD@KASUMI/bigdisk/videos/thumbnails/]
10:20:14 T:70529024   DEBUG:   Registering substition pair:
10:20:14 T:70529024   DEBUG:     From: [/var/mobile/Library/Preferences/XBMC/userdata/Thumbnails]
10:20:14 T:70529024   DEBUG:     To:   [smb://USERNAME:PASSWORD@KASUMI/bigdisk/videos/thumbnails/]
10:20:14 T:70529024   DEBUG:   Registering substition pair:
10:20:14 T:70529024   DEBUG:     From: [/var/mobile/Library/Preferences/XBMC/userdata/Thumbnails]
10:20:14 T:70529024   DEBUG:     To:   [smb://USERNAME:PASSWORD@KASUMI/bigdisk/videos/thumbnails/]
10:20:14 T:70529024 WARNING: VIDEO database configuration is experimental.
10:20:14 T:70529024  NOTICE: Getting hardware information now...
10:20:14 T:70529024    INFO: Using digital output
10:20:14 T:70529024    INFO: AC3 pass through is disabled
10:20:14 T:70529024    INFO: DTS pass through is disabled
10:20:14 T:70529024    INFO: AAC pass through is disabled
10:20:14 T:70529024    INFO: MP1 pass through is disabled
10:20:14 T:70529024    INFO: MP2 pass through is disabled
10:20:14 T:70529024    INFO: MP3 pass through is disabled
10:20:14 T:70529024   DEBUG: Error: Requested setting (videoscreen.screenmode) was not found.  It must be case-sensitive
10:20:14 T:70529024  NOTICE: Checking resolution 12
10:20:14 T:70529024  NOTICE: Default DVD Player: dvdplayer
10:20:14 T:70529024  NOTICE: Default Video Player: dvdplayer
10:20:14 T:70529024  NOTICE: Default Audio Player: paplayer
10:20:14 T:70529024  NOTICE: Disabled debug logging due to GUI setting. Level 1.
10:20:14 T:70529024  NOTICE: Log level changed to 1
10:20:14 T:70529024  NOTICE: Loading media sources from special://masterprofile/sources.xml
10:20:14 T:70529024    INFO: creating subdirectories
10:20:14 T:70529024    INFO: userdata folder: special://masterprofile/
10:20:14 T:70529024    INFO: recording folder:
10:20:14 T:70529024    INFO: screenshots folder:
10:20:14 T:70529024   ERROR: Create - Error( No such file or directory )
10:20:14 T:70529024   ERROR: Create - Error creating /var/mobile/Library/Preferences/XBMC/userdata/Thumbnails
10:20:14 T:70529024   ERROR: Create - Error creating special://masterprofile/Thumbnails
10:20:14 T:70529024   ERROR: Create - Error( No such file or directory )
10:20:14 T:70529024   ERROR: Create - Error creating /var/mobile/Library/Preferences/XBMC/userdata/Thumbnails/Music
10:20:14 T:70529024   ERROR: Create - Error creating special://masterprofile/Thumbnails/Music
10:20:14 T:70529024   ERROR: Create - Error( No such file or directory )
10:20:14 T:70529024   ERROR: Create - Error creating /var/mobile/Library/Preferences/XBMC/userdata/Thumbnails/Music/Artists
10:20:14 T:70529024   ERROR: Create - Error creating special://masterprofile/Thumbnails/Music/Artists
10:20:14 T:70529024   ERROR: Create - Error( No such file or directory )
10:20:14 T:70529024   ERROR: Create - Error creating /var/mobile/Library/Preferences/XBMC/userdata/Thumbnails/Music/LastFM
10:20:14 T:70529024   ERROR: Create - Error creating special://masterprofile/Thumbnails/Music/LastFM
10:20:14 T:70529024   ERROR: Create - Error( No such file or directory )
10:20:14 T:70529024   ERROR: Create - Error creating /var/mobile/Library/Preferences/XBMC/userdata/Thumbnails/Video
10:20:14 T:70529024   ERROR: Create - Error creating special://masterprofile/Thumbnails/Video
10:20:14 T:70529024   ERROR: Create - Error( No such file or directory )
10:20:14 T:70529024   ERROR: Create - Error creating /var/mobile/Library/Preferences/XBMC/userdata/Thumbnails/Video/Fanart
10:20:14 T:70529024   ERROR: Create - Error creating special://masterprofile/Thumbnails/Video/Fanart
10:20:14 T:70529024   ERROR: Create - Error( No such file or directory )
10:20:14 T:70529024   ERROR: Create - Error creating /var/mobile/Library/Preferences/XBMC/userdata/Thumbnails/Music/Fanart
10:20:14 T:70529024   ERROR: Create - Error creating special://masterprofile/Thumbnails/Music/Fanart
10:20:14 T:70529024   ERROR: Create - Error( No such file or directory )
10:20:14 T:70529024   ERROR: Create - Error creating /var/mobile/Library/Preferences/XBMC/userdata/Thumbnails/Video/Bookmarks
10:20:14 T:70529024   ERROR: Create - Error creating special://masterprofile/Thumbnails/Video/Bookmarks
10:20:14 T:70529024   ERROR: Create - Error( No such file or directory )
10:20:14 T:70529024   ERROR: Create - Error creating /var/mobile/Library/Preferences/XBMC/userdata/Thumbnails/generated
10:20:14 T:70529024   ERROR: Create - Error creating special://masterprofile/Thumbnails/generated
10:20:14 T:70529024    INFO: thumbnails folder: special://masterprofile/Thumbnails
10:20:14 T:70529024   ERROR: Create - Error( No such file or directory )
10:20:14 T:70529024   ERROR: Create - Error creating /var/mobile/Library/Preferences/XBMC/userdata/Thumbnails/Music/0
10:20:14 T:70529024   ERROR: Create - Error creating special://masterprofile/Thumbnails/Music/0
10:20:14 T:70529024   ERROR: Create - Error( No such file or directory )
10:20:14 T:70529024   ERROR: Create - Error creating /var/mobile/Library/Preferences/XBMC/userdata/Thumbnails/Video/0
10:20:14 T:70529024   ERROR: Create - Error creating special://masterprofile/Thumbnails/Video/0
10:20:14 T:70529024   ERROR: Create - Error( No such file or directory )
10:20:14 T:70529024   ERROR: Create - Error creating /var/mobile/Library/Preferences/XBMC/userdata/Thumbnails/0
10:20:14 T:70529024   ERROR: Create - Error creating special://masterprofile/Thumbnails/0
10:20:14 T:70529024   ERROR: Create - Error( No such file or directory )
10:20:14 T:70529024   ERROR: Create - Error creating /var/mobile/Library/Preferences/XBMC/userdata/Thumbnails/generated/0
10:20:14 T:70529024   ERROR: Create - Error creating special://masterprofile/Thumbnails/generated/0
Well, finally figured it out. I'm using the Ubuntu server for the Samba share. I had the share setup with full access to the user that was supposed to be connecting, but guest accounts were not allowed. I had to create a new share that was WIDE OPEN. That fixed the issue.
I'm having an issue with <pathsubstitution> code in advancedsetting.xml.

Running Beta2 Eden on both machines. Host in Win7, client is XP

Ive followed instructions to the letter and the library is updating from MySQL it appears, but I can't watch anything. It seems that the client XBMC is still looking for the old paths from my host computer and says that the file is not available when I try to watch....

What am I doing wrong?

Any help would be greatly appreciated.

I've pasted the code below.

<pathsubstitution>

<substitute>
<from>E:\TV\</from>
<to>SMB://HOST/TV/</to>
</substitute>
<substitute>
<from>F:\Movies A-Q\</from>
<to>SMB://HOST/Movies A-Q/</to>
</substitute>
<substitute>
<from>G:\Movies R-Z\</from>
<to>SMB://HOST/Movies R-Z/<to>
</substitute>
<substitute>
<from>special://masterprofile/Thumbnails/</from>
<to>SMB://HOST/Users/Andrew/AppData/Roaming/XBMC/userdata/Thumbnails/</to>
</substitute>

</pathsubstitution>
I just went through this same issue with Beta 3, and I had to remove the <substitute> tags around each .xml:

Code:
<pathsubstitution>
    <substitute>
      <from>special://masterprofile/RssFeeds.xml</from>
      <to>smb://fileserver/XBMC/userdata/RssFeeds.xml</to>
      <from>special://masterprofile/sources.xml</from>
      <to>smb://fileserver/XBMC/userdata/sources.xml</to>
    </substitute>
  </pathsubstitution>

Now everything works properly, not sure why - the xml definitely seems wrong to me.
(2012-02-11, 21:46)bonesmcguire Wrote: [ -> ]I just went through this same issue with Beta 3, and I had to remove the <substitute> tags around each .xml:

Code:
<pathsubstitution>
    <substitute>
      <from>special://masterprofile/RssFeeds.xml</from>
      <to>smb://fileserver/XBMC/userdata/RssFeeds.xml</to>
      <from>special://masterprofile/sources.xml</from>
      <to>smb://fileserver/XBMC/userdata/sources.xml</to>
    </substitute>
  </pathsubstitution>

Now everything works properly, not sure why - the xml definitely seems wrong to me.

This is the only thing that worked for me too. I'm using the xbmc from the debian apt (xbmc 3:11.0-0.1)
Thanks. A bug ...