<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">On Thu, 20 Sep 2018 at 15:01, Bill Meek <<a href="mailto:keemllib@gmail.com">keemllib@gmail.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 09/20/2018 07:36 AM, Edmund Na wrote:<br>
> The routine which copies Channel Icon images from Myth to Mythweb isn’t<br>
> working correctly.<br>
> <br>
> At all times when I view Channel Icons on a frontend or in mythtv-setup I<br>
> see what I expect, but recently a couple of images were updated and then<br>
> they didn’t display on Mythweb – they showed as missing/corrupted image<br>
> rather than no image.<br>
> <br>
> The icons are stored in /home/mythtv/.mythtv/channels/ and have user and<br>
> group permission mythtv, but they are readable by all.<br>
> <br>
> Mythweb seems to access the images from /var/cache/mythweb/image_cache and<br>
> most images here are correct. I understand that when a new icon is added or<br>
> used something copies it to the image_cache folder. In my case that process<br>
> is producing corrupted images; each is 44Bytes. It is an empty xml file.<br>
> This is the same for PNG and jpg.<br>
> <br>
> If I manually copy the icons from channels to image_cache I see the images<br>
> I expect on Mythweb, however I would like to see if I can understand what<br>
> is going wrong as this may indicate something else is wrong.<br>
> <br>
> I am running Myth 0.28.0+fixes.20160413 and Ubuntu 16.04.4 LTS<br>
<br>
Interesting. I don't have an image_cache directory anywhere on my 16.04 or<br>
18.04 boxes. apache2 is my web server.<br>
<br>
I'd expect the mythweb icons to be located in .../mythweb/data/tv_icons<br>
and that directory is writable by the user/group running the web server.<br>
Mine looks like:<br>
<br>
   $ ls -ld /var/www/mythweb/data/tv_icons/<br>
   drwxrwxr-x 2 mythtv www-data 4096 Aug 11 08:04 /var/www/mythweb/data/tv_icons/<br></blockquote><div><br></div><div>I'm not using a front-end, but I put my channel images in:</div><div><br></div><div> # ls -la /var/lib/mythtv/.mythtv/channels/<br>total 116<br>drwxr-xr-x 2 mythtv mythtv 4096 Jun 17 14:33 .<br>drwxr-xr-x 8 mythtv mythtv 4096 Jun 25 15:40 ..<br>-rw-r--r-- 1 root   root   5152 Jun 17 14:26 101.png<br>-rw-r--r-- 1 root   root   4659 Jun 17 14:26 102.png<br>-rw-r--r-- 1 root   root   4647 Jun 17 14:27 103.png<br>-rw-r--r-- 1 root   root   2279 Jun 17 14:27 104.png<br>-rw-r--r-- 1 root   root   4694 Jun 17 14:28 105.png<br>-rw-r--r-- 1 root   root   6104 Jun 17 14:28 111.png<br>-rw-r--r-- 1 root   root   3139 Jun 17 14:29 116.png<br>-rw-r--r-- 1 root   root   3035 Jun 17 14:29 118.png<br>-rw-r--r-- 1 root   root   3138 Jun 17 14:29 119.png<br>-rw-r--r-- 1 root   root   2948 Jun 17 14:30 120.png<br>-rw-r--r-- 1 root   root   3524 Jun 17 14:30 128.png<br>-rw-r--r-- 1 root   root   3071 Jun 17 14:31 131.png<br>-rw-r--r-- 1 root   root   3964 Jun 17 14:31 136.png<br>-rw-r--r-- 1 root   root   3846 Jun 17 14:31 137.png<br>-rw-r--r-- 1 root   root   4558 Jun 17 14:32 150.png<br>-rw-r--r-- 1 root   root   3923 Jun 17 14:33 159.png<br>-rw-r--r-- 1 root   root   2590 Jun 17 14:32 211.png<br>-rw-r--r-- 1 root   root   5042 Jun 17 14:32 503.png<br>-rw-r--r-- 1 root   root   4952 Jun 17 14:32 504.png<br></div><div><br></div><div>by hand.  These are then copied into:</div><div><br></div><div># ls -la /var/lib/mythtv/mythweb/data/tv_icons/<br>total 116<br>drwxr-xr-x 2 www-data www-data 4096 Jun 17 14:33 .<br>drwxr-xr-x 3 www-data www-data 4096 Jun 17 14:19 ..<br>-rw-r--r-- 1 www-data www-data 5152 Jun 17 14:32 101.png<br>-rw-r--r-- 1 www-data www-data 4659 Jun 17 14:32 102.png<br>-rw-r--r-- 1 www-data www-data 4647 Jun 17 14:32 103.png<br>-rw-r--r-- 1 www-data www-data 2279 Jun 17 14:32 104.png<br>-rw-r--r-- 1 www-data www-data 4694 Jun 17 14:32 105.png<br>-rw-r--r-- 1 www-data www-data 6104 Jun 17 14:32 111.png<br>-rw-r--r-- 1 www-data www-data 3139 Jun 17 14:32 116.png<br>-rw-r--r-- 1 www-data www-data 3035 Jun 17 14:32 118.png<br>-rw-r--r-- 1 www-data www-data 3138 Jun 17 14:32 119.png<br>-rw-r--r-- 1 www-data www-data 2948 Jun 17 14:32 120.png<br>-rw-r--r-- 1 www-data www-data 3524 Jun 17 14:32 128.png<br>-rw-r--r-- 1 www-data www-data 3071 Jun 17 14:32 131.png<br>-rw-r--r-- 1 www-data www-data 3964 Jun 17 14:32 136.png<br>-rw-r--r-- 1 www-data www-data 3846 Jun 17 14:32 137.png<br>-rw-r--r-- 1 www-data www-data 4558 Jun 17 14:32 150.png<br>-rw-r--r-- 1 www-data www-data 3923 Jun 17 14:33 159.png<br>-rw-r--r-- 1 www-data www-data 2590 Jun 17 14:32 211.png<br>-rw-r--r-- 1 www-data www-data 5042 Jun 17 14:33 503.png<br>-rw-r--r-- 1 www-data www-data 4952 Jun 17 14:33 504.png<br></div><div><br></div><div>after accessing MythWeb.</div><div><br></div><div>I have a /var/cache/mythweb/image_cache/ directory, but it's empty.</div><div><br></div><div>I'm using the Debian packaged 0.28.2-dmo1+deb9u1 from deb-multimedia.<br></div><div><br></div><div>Ian</div><div><br></div></div></div></div></div></div></div>