Amazon Fire TV Path Substitution [PLEASE HELP]
#16
(2014-10-17, 02:54)Ned Scott Wrote: debug log (wiki)?

@misterimsogreat: well, where is it?
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
Reply
#17
(2014-10-17, 18:40)Milhouse Wrote:
(2014-10-17, 02:54)Ned Scott Wrote: debug log (wiki)?

@misterimsogreat: well, where is it?

I'm at work right now. I will upload it as soon as I get home.
Reply
#18
Running Kodi v14.2 on my Amazon Fire TV box with a shared MySQL Db for my library, I quickly began receiving low disk space messages after getting my skin fully configured, and libraries scrapped with metadata, fanart, artwork, thumbnails, etc., and performance started to become unbearable with 96% disk space usage.

To try and combat this, I began to reference the Kodi Wiki for reducing disk space (Wiki Link), and am interested in Path Substitution for Thumbnails.

I read through this thread, and also some others on the Kodi forums and Google searches, and I have performed the following:

  1. Shutdown Kodi
  2. Updated my advancedsettings.xml file to include:

    <pathsubstitution>
    <substitute>
    <from>/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/</from>
    <to>smb://USERTongue[email protected]/AmazonFireTV/Thumbnails/KodiMain/</to>
    </substitute>
    </pathsubstitution>

  3. Copied the entire contents of the ...\userdata\Thumbnails\ directory from the AFTV to a Shared directory on my Win 8.1 machine (referenced above)
  4. Confirmed the \userdata\Thumbnails\ directory no longer exists on the AFTV
  5. Deleted the Textures13.db file from ...\userdata\Databases\
  6. Rebooted the AFTV
  7. Launched Kodi

Prior to this attempt to leverage Path Substitution, all thumbnails,artwork and fanart were visible, as you can imagine. After the above changes, I am no longer able to see any artwork or fanart.

I've tried multiple combinations/variations of syntax for the "<from></from>" statement for the directory structure of the AFTV Kodi install (including those mentioned in post #10 of this thread). There was no change in populating images pulled from the SMB share.

I exported a copy of the kodi.log file to pastebin: LINK

I am open to any ideas, suggestions, and recomendations.

Thanks
Reply
#19
Assuming that the new thumbnails folder is empty, you just need to recache the images again. One way is to go into the userdata folder (wiki), and then into Databases, and delete the textures##.db files. Those keep track of what images have been cached, so if Kodi can't find them, it forces Kodi to recache all images. Or, you can run this script from your desktop computer that will also trigger images being recached: http://forum.kodi.tv/showthread.php?tid=158373
Reply
#20
(2015-03-03, 06:02)DruTheFu Wrote: [*]Copied the entire contents of the ...\userdata\Thumbnails\ directory from the AFTV to a Shared directory on my Win 8.1 machine (referenced above)
...
[*]Deleted the Textures13.db file from ...\userdata\Databases\

You shouldn't have done both, it's one or the other.

Now you've got a network share full of thumbnails that Kodi knows nothing about because you deleted Textures13.db, causing Kodi to complain when it has to overwrite artwork it's not expecting to find.

If you hadn't copied the artwork but retained Textures13.db, that would also cause problems as Kodi would think it had the artwork already cached but would find nothing to display.

You should have either copied the artwork and retained your existing Textures13.db, or not copied the artwork to the network folder while also deleting Textures13.db.

Now that you've deleted Textures13.db, you might as well finish the job and remove all files from your network thumbnails folder so that Kodi can get on with repopulating the cache without any further surprises.
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
Reply
#21
10-4 Milhouse

After further investigation and checking the log, I seem to have a bigger problem related to SMB write access, that has a direct root correlation to this issue.

Thanks for your input though
Reply
#22
Checking back in.

I haven't had much success...yet. Since my last post I've migrated away from using SMB sources, and now use NFS sources thanks to haneWIN NFS Server. I appear to be successful in writing to my sources now. Now having this ability, I've
  • Removed all SMB sources
  • Cleaned libraries (reflected by showing 0 Movies, 0 Episodes, 0 Songs)
  • Added sources via NFS (setting contect, but without scanning for content)
  • Updated the advancedsettings.xml file to reflect the path substitution to the NFS shared directory on my Win8.1 machine
  • Deleted all files/directories in the remote Thumbnails NFS share
  • Deleted the Textures13.db file from \userdata\Databases\ directory on the AFTV
  • Rebooted Kodi
  • Performed a video library to scan content

The above actions resulted in:
Code:
05:38:45 T:1513888408  NOTICE: No settings file to load (special://xbmc/system/advancedsettings.xml)
05:38:45 T:1513888408  NOTICE: Loaded settings file from special://profile/advancedsettings.xml
05:38:45 T:1513888408  NOTICE: Contents of special://profile/advancedsettings.xml are...
                                            <advancedsettings>
                                              <videodatabase>
                                                <type>mysql</type>
                                                <host>192.168.79.100</host>
                                                <port>3306</port>
                                                <user>kodi</user>
                                                <pass>kodi</pass>
                                              </videodatabase>
                                              <musicdatabase>
                                                <type>mysql</type>
                                                <host>192.168.79.100</host>
                                                <port>3306</port>
                                                <user>kodi</user>
                                                <pass>kodi</pass>
                                              </musicdatabase>
                                              <videolibrary>
                                                <importwatchedstate>true</importwatchedstate>
                                                <importresumepoint>true</importresumepoint>
                                              </videolibrary>
                                              <pathsubstitution>
                                                <substitute>
                                                  <from>/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/</from>
                                                  <to>nfs://192.168.79.100/AmazonFireTV/Thumbnails/KodiMain/</to>
                                                </substitute>
                                              </pathsubstitution>
                                            </advancedsettings>
05:38:45 T:1513888408   DEBUG: Configuring path substitutions
05:38:45 T:1513888408   DEBUG:   Registering substition pair:
05:38:45 T:1513888408   DEBUG:     From: [/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/]
05:38:45 T:1513888408   DEBUG:     To:   [nfs://192.168.79.100/AmazonFireTV/Thumbnails/KodiMain/]
05:38:45 T:1513888408 WARNING: VIDEO database configuration is experimental.
05:38:45 T:1513888408  NOTICE: Default DVD Player: dvdplayer
05:38:45 T:1513888408  NOTICE: Default Video Player: dvdplayer
05:38:45 T:1513888408  NOTICE: Default Audio Player: paplayer
05:38:45 T:1513888408  NOTICE: Disabled debug logging due to GUI setting. Level 0.
05:38:45 T:1513888408  NOTICE: Log level changed to "LOG_LEVEL_NORMAL"
05:38:45 T:1513888408  NOTICE: CMediaSourceSettings: loading media sources from special://masterprofile/sources.xml
05:38:45 T:1513888408  NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
05:38:45 T:1513888408  NOTICE: Loaded playercorefactory configuration
05:38:45 T:1513888408  NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
05:38:45 T:1513888408  NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
05:38:45 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails
05:38:45 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating special://masterprofile/Thumbnails
05:38:45 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/Video
05:38:45 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating special://masterprofile/Thumbnails/Video
05:38:45 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/Video/Bookmarks
05:38:45 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating special://masterprofile/Thumbnails/Video/Bookmarks
05:38:45 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/0
05:38:45 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating special://masterprofile/Thumbnails/0
05:38:45 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/1
05:38:45 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating special://masterprofile/Thumbnails/1
05:38:45 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/2
05:38:45 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating special://masterprofile/Thumbnails/2
05:38:45 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/3
05:38:45 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating special://masterprofile/Thumbnails/3
05:38:45 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/4
05:38:45 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating special://masterprofile/Thumbnails/4
05:38:45 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/5
05:38:45 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating special://masterprofile/Thumbnails/5
05:38:45 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/6
05:38:45 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating special://masterprofile/Thumbnails/6
05:38:46 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/7
05:38:46 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating special://masterprofile/Thumbnails/7
05:38:46 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/8
05:38:46 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating special://masterprofile/Thumbnails/8
05:38:46 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/9
05:38:46 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating special://masterprofile/Thumbnails/9
05:38:46 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/a
05:38:46 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating special://masterprofile/Thumbnails/a
05:38:46 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/b
05:38:46 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating special://masterprofile/Thumbnails/b
05:38:46 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/c
05:38:46 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating special://masterprofile/Thumbnails/c
05:38:46 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/d
05:38:46 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating special://masterprofile/Thumbnails/d
05:38:46 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/e
05:38:46 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating special://masterprofile/Thumbnails/e
05:38:46 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/f
05:38:46 T:1513888408   ERROR: static bool XFILE::CDirectory::Create(const CURL&) - Error creating special://masterprofile/Thumbnails/f

In haneWIN NFS Server, I believe I have used the correct syntax for creating the NFS Share
Quote:"E:\Documents\AmazonFireTV" -range 192.168.79.1 192.168.79.254 -name:AmazonFireTV -alldirs

I've checked the sharing security and permissions in Windows 8.1 for this specific directory, and "Everyone" has Read/Write Share access to the directory, as well as Full Control permissions for file/folder security.

Looking in the NFS share \AmazonFireTV\Thumbnails\KodiMain\ within Windows, I see that Kodi has created the folder structure (0-9, a-f, Video), and even 'created'/populated .jpg and .png files within these directories, but they all show 0KB, and when trying to open, it claims to be an empty file.


Any next steps you would recommend?

Thanks again
Reply
#23
You know...

I ran into this every time to set up a new system.

What happens is that you need to fake the system out.

From within the KODI application, you need to set up one drive mapping that then asks you for the user name and password for that remote resource.

Once that's done, then * BAM * everything plays.


(WHY: Because KODI stores the Username and Password in a hidden file.)
Reply
#24
Hi,
Is there any solution to this issue?
I'm using Kodi version 18.8 with MySQL DB v5.6.48.0
I'm getting the same errors with my Thumbnails folder shared via SMB.
There is no error on Windows 10, but only on Firestick 4K running android.
Existing thumbnail folder are loading but new ones not creating.

My SMB path share code is:

  <pathsubstitution>
  <substitute>
    <from>special://profile/Thumbnails/</from>
    <to>smb://[email protected]/Thumbnails/</to>
  </substitute>
  </pathsubstitution>

Here is my log:

2020-10-15 02:30:16.733 T:24090  NOTICE: CMediaSourceSettings: loading media sources from special://masterprofile/sources.xml
2020-10-15 02:30:16.807 T:24090   ERROR: Create - Error( Invalid argument )
2020-10-15 02:30:16.807 T:24090   ERROR: Create - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails
2020-10-15 02:30:16.807 T:24090   ERROR: Create - Error creating special://masterprofile/Thumbnails
2020-10-15 02:30:16.814 T:24090   ERROR: Create - Error( Invalid argument )
2020-10-15 02:30:16.814 T:24090   ERROR: Create - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/Video
2020-10-15 02:30:16.814 T:24090   ERROR: Create - Error creating special://masterprofile/Thumbnails/Video
2020-10-15 02:30:16.823 T:24090   ERROR: Create - Error( Invalid argument )
2020-10-15 02:30:16.824 T:24090   ERROR: Create - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/Video/Bookmarks
2020-10-15 02:30:16.824 T:24090   ERROR: Create - Error creating special://masterprofile/Thumbnails/Video/Bookmarks
2020-10-15 02:30:16.828 T:24090   ERROR: Create - Error( Invalid argument )
2020-10-15 02:30:16.828 T:24090   ERROR: Create - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/0
2020-10-15 02:30:16.829 T:24090   ERROR: Create - Error creating special://masterprofile/Thumbnails/0
2020-10-15 02:30:16.832 T:24090   ERROR: Create - Error( Invalid argument )
2020-10-15 02:30:16.833 T:24090   ERROR: Create - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/1
2020-10-15 02:30:16.833 T:24090   ERROR: Create - Error creating special://masterprofile/Thumbnails/1
2020-10-15 02:30:16.836 T:24090   ERROR: Create - Error( Invalid argument )
2020-10-15 02:30:16.837 T:24090   ERROR: Create - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/2
2020-10-15 02:30:16.837 T:24090   ERROR: Create - Error creating special://masterprofile/Thumbnails/2
2020-10-15 02:30:16.841 T:24090   ERROR: Create - Error( Invalid argument )
2020-10-15 02:30:16.841 T:24090   ERROR: Create - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/3
2020-10-15 02:30:16.841 T:24090   ERROR: Create - Error creating special://masterprofile/Thumbnails/3
2020-10-15 02:30:16.846 T:24090   ERROR: Create - Error( Invalid argument )
2020-10-15 02:30:16.846 T:24090   ERROR: Create - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/4
2020-10-15 02:30:16.846 T:24090   ERROR: Create - Error creating special://masterprofile/Thumbnails/4
2020-10-15 02:30:16.850 T:24090   ERROR: Create - Error( Invalid argument )
2020-10-15 02:30:16.850 T:24090   ERROR: Create - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/5
2020-10-15 02:30:16.850 T:24090   ERROR: Create - Error creating special://masterprofile/Thumbnails/5
2020-10-15 02:30:16.854 T:24090   ERROR: Create - Error( Invalid argument )
2020-10-15 02:30:16.854 T:24090   ERROR: Create - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/6
2020-10-15 02:30:16.854 T:24090   ERROR: Create - Error creating special://masterprofile/Thumbnails/6
2020-10-15 02:30:16.860 T:24090   ERROR: Create - Error( Invalid argument )
2020-10-15 02:30:16.860 T:24090   ERROR: Create - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/7
2020-10-15 02:30:16.860 T:24090   ERROR: Create - Error creating special://masterprofile/Thumbnails/7
2020-10-15 02:30:16.864 T:24090   ERROR: Create - Error( Invalid argument )
2020-10-15 02:30:16.865 T:24090   ERROR: Create - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/8
2020-10-15 02:30:16.865 T:24090   ERROR: Create - Error creating special://masterprofile/Thumbnails/8
2020-10-15 02:30:16.868 T:24090   ERROR: Create - Error( Invalid argument )
2020-10-15 02:30:16.869 T:24090   ERROR: Create - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/9
2020-10-15 02:30:16.869 T:24090   ERROR: Create - Error creating special://masterprofile/Thumbnails/9
2020-10-15 02:30:16.872 T:24090   ERROR: Create - Error( Invalid argument )
2020-10-15 02:30:16.872 T:24090   ERROR: Create - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/a
2020-10-15 02:30:16.872 T:24090   ERROR: Create - Error creating special://masterprofile/Thumbnails/a
2020-10-15 02:30:16.876 T:24090   ERROR: Create - Error( Invalid argument )
2020-10-15 02:30:16.876 T:24090   ERROR: Create - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/b
2020-10-15 02:30:16.876 T:24090   ERROR: Create - Error creating special://masterprofile/Thumbnails/b
2020-10-15 02:30:16.880 T:24090   ERROR: Create - Error( Invalid argument )
2020-10-15 02:30:16.880 T:24090   ERROR: Create - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/c
2020-10-15 02:30:16.880 T:24090   ERROR: Create - Error creating special://masterprofile/Thumbnails/c
2020-10-15 02:30:16.885 T:24090   ERROR: Create - Error( Invalid argument )
2020-10-15 02:30:16.885 T:24090   ERROR: Create - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/d
2020-10-15 02:30:16.886 T:24090   ERROR: Create - Error creating special://masterprofile/Thumbnails/d
2020-10-15 02:30:16.889 T:24090   ERROR: Create - Error( Invalid argument )
2020-10-15 02:30:16.891 T:24090   ERROR: Create - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/e
2020-10-15 02:30:16.893 T:24090   ERROR: Create - Error creating special://masterprofile/Thumbnails/e
2020-10-15 02:30:16.898 T:24090   ERROR: Create - Error( Invalid argument )
2020-10-15 02:30:16.898 T:24090   ERROR: Create - Error creating /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/Thumbnails/f
2020-10-15 02:30:16.898 T:24090   ERROR: Create - Error creating special://masterprofile/Thumbnails/f
Reply

Logout Mark Read Team Forum Stats Members Help
Amazon Fire TV Path Substitution [PLEASE HELP]1