Android [Moved] FireTV generating 0kb thumbnails / not reading existing thumbnails
#1
I moved this to the Android forum because I am pretty sure its a FireTV issue, as my OpenElec client has no issues with the identical setup...

I am having some trouble with the following, all running Gotham.

I have a Windows Gotham install that hosts everything - videos, thumbnails, mysql database etc. This is the "primary" Kodi server and all maintenance, scraping etc. is done using this machine. Everything works well with this machine.

I also have a FireTV that I'd like to be a "dumb" client. Ideally it would just have read-only access to the mysql database, movie folders etc. This doesn't appear to be possible (and please correct me if I am wrong). Movies, Music etc. are all shared properly through MySQL and all Kodi machines play back movies fine.

The issue I have is with movie thumbnails. Using advancedsettings.xml pathsubstitution on the Windows machine, my thumbnails are generated to a shared folder. This machine has generated thumbnails that work fine on the Windows machine. On the FireTV, however, I am unable to view the generated thumbnails. I also use advancedsettings.xml pathsubstitution to point to a Samba share on the Windows machine. I have verified that the path substitution is working and looking at my logs (linked below) it is attempting to write and load the correct cached thumbnail. I do not, however, want this machine to write any Thumbnails because for some reason, it generates 0kb thumbnails for all files. So instead I'd just like it to read the existing thumbnail. In order to accomplish this, I set the permissions on the shared thumbnails folder to read-only for clients using the "kodi-client" user I created on the Windows machine. This seems to work as well (I tested the link generated by the FireTV xbmc.log file and its calling the right file and can view it). But despite this, its not displaying the Thumbnail (perhaps because its failing to write it?). The error is as follows:

Code:
22:27:58 T:1576661984   DEBUG: CSmbFile::Open - opened Movies/National Lampoon's Vegas Vacation (1997)/poster.jpg, fd=10001
22:27:58 T:1576666048   DEBUG: int CVideoDatabase::RunQuery(const CStdString&) took 425 ms for 10 items query: select * from movieview  ORDER BY dateAdded desc, idMovie desc LIMIT 10
22:27:58 T:1680871832   DEBUG: CSmbFile::Open - opened Movies/Anchorman (2004)/poster.jpg, fd=10000
22:27:58 T:1727732160   DEBUG: Caching image 'smb://192.168.1.7/Movies/Casino Royale (1967)/poster.jpg' to '5/59ad7d63.jpg':
22:27:58 T:1576661984   DEBUG: CSmbFile::Close closing fd 10001
22:27:58 T:1680871832   DEBUG: CSmbFile::Close closing fd 10000
22:27:58 T:1727732160   DEBUG: cached image 'special://masterprofile/Thumbnails/5/59ad7d63.jpg' size 320x480
22:27:58 T:1727732160 WARNING: FileSmb::OpenForWrite() called with overwriting enabled! - smb://kodi-client:[email protected]/XBMCThumbnails/5/59ad7d63.jpg
22:27:58 T:1727732160   ERROR: FileSmb->Open: Unable to open file : 'smb://kodi-client:[email protected]/XBMCThumbnails/5/59ad7d63.jpg'
                                            unix_err:'d' error : 'Permission denied'
22:27:58 T:1727732160    INFO: void XCURL::DllLibCurlGlobal::easy_aquire(const char*, const char*, XCURL::CURL_HANDLE**, XCURL::CURLM**) - Created session to http://image.tmdb.org
22:27:58 T:1680871832   DEBUG: Caching image 'smb://192.168.1.7/Movies/Anchorman (2004)/poster.jpg' to '9/998c79ac.jpg':
22:27:58 T:1576661984   DEBUG: Caching image 'smb://192.168.1.7/Movies/National Lampoon's Vegas Vacation (1997)/poster.jpg' to '7/73544811.jpg':

My full log is available here.

I also just discovered something new when I was testing the permissions. I changed the samba share permissions to allow write access for the kodi-clients. I rebooted the FireTV and the thumbnails were all there. I scrolled down through the movie list and all posters and fanart was displayed. BUT when I scrolled back up the list, the same movies were now showing blank posters and fanart. I looked at the files on the server and the thumbnails corresponding to the one I had scrolled through were now 0kb, Here is the log for that, but its simar to the above without the warnings about permissions.

Code:
22:54:26 T:1709607304   DEBUG: CSmbFile::Open - opened Movies/National Lampoon's Vegas Vacation (1997)/poster.jpg, fd=10001
22:54:26 T:1657612136   DEBUG: CSmbFile::Open - opened Movies/Casino Royale (1967)/poster.jpg, fd=10000
22:54:26 T:1657612136   DEBUG: CSmbFile::Close closing fd 10000
22:54:26 T:1560648432   DEBUG: CSmbFile::Open - opened Movies/Anchorman (2004)/poster.jpg, fd=10002
22:54:26 T:1560648432   DEBUG: CSmbFile::Close closing fd 10002
22:54:26 T:1657628416   DEBUG: CCurlFile::GetMimeType - http://image.tmdb.org/t/p/original/s54DchYWkSTCi9z7Is2IIX3qmvw.jpg -> image/jpeg
22:54:26 T:1657628416   DEBUG: CurlFile::Open(0x67bb93a8) http://image.tmdb.org/t/p/original/s54DchYWkSTCi9z7Is2IIX3qmvw.jpg
22:54:26 T:1657612136   DEBUG: Caching image 'smb://192.168.1.7/Movies/Casino Royale (1967)/poster.jpg' to '5/59ad7d63.jpg':
22:54:26 T:1709607304   DEBUG: CSmbFile::Close closing fd 10001
22:54:26 T:1560648432   DEBUG: Caching image 'smb://192.168.1.7/Movies/Anchorman (2004)/poster.jpg' to '9/998c79ac.jpg':
22:54:26 T:1657612136   DEBUG: cached image 'special://masterprofile/Thumbnails/5/59ad7d63.jpg' size 480x720
22:54:26 T:1657612136 WARNING: FileSmb::OpenForWrite() called with overwriting enabled! - smb://kodi-client:[email protected]/XBMCThumbnails/5/59ad7d63.jpg
22:54:26 T:1709607304   DEBUG: Caching image 'smb://192.168.1.7/Movies/National Lampoon's Vegas Vacation (1997)/poster.jpg' to '7/73544811.jpg':
22:54:26 T:1657612136   DEBUG: CSmbFile::Close closing fd 10001[/code]

I would think that a failure to write the file wouldn't cause a problem with reading it, but maybe not. So I guess I have two questions:
  1. Is there anyway to have a Kodi client just have the ability to read shared thubnails?
  2. If not, does anyone know why FireTV could be generating 0kb thumbnails when a Windows machine has no problems generating correct thumbnails?
Any help would be greatly appreciated...

**EDIT**: FWIW, I also have a Chromebox running OpenElec accessing the shared XBMCThumbnails with the kodi-client username (i.e, read-only access). I get the same permission denied error, but it does display the fanart/poster, so this must be a FireTV issue(?).
Code:
5:34:38 T:140352082147072 WARNING: FileSmb::OpenForWrite() called with overwriting enabled! - smb://kodi-client:[email protected]/XBMCThumbnails/d/db0ea8c2.jpg
05:34:38 T:140352082147072   ERROR: FileSmb->Open: Unable to open file : 'smb://kodi-client:[email protected]/XBMCThumbnails/d/db0ea8c2.jpg' unix_err:'d' error : 'Permission denied'
Reply
#2
i get the same errors with ouya, also android, and i tried EVERYTHING, my share is on a mac, but also tried to put the share on a pc and same error (permission denied)

i can browse to the share from kodi's explorer, but if i try to copy fx. advancedsettings.xml to the local userdata, i also get error that it could not copy - somehow the permissions from android has changed because long ago when i last tried xbmc on ouya it worked!

also have to add, i use the same advancedsettings.xml on several mac's, pc's and apple tv's and all works fine, getting thumbs from the share via pathsubstitution, it's ONLY the android box that denies

spend 2 days trying everything and searching for any clues and nothing.. Sad

-Deco
Reply
#3
I posted the exact same problem a few days ago. No solution to resolve the problem.

Windows-Clients and Openelec display the thumbs as normal but my Fire TVs overwrite the existing thumbs with 0kb files.

My solution: I removed the path-substition for thumbs on the Fire TVs.

But good to hear that I am not the only one with this problem. It seems to be an Android-Bug.
Reply

Logout Mark Read Team Forum Stats Members Help
[Moved] FireTV generating 0kb thumbnails / not reading existing thumbnails0