[mythtv-users] Mythweb Channel Icon problem

Ian Cameron mkbloke at gmail.com
Thu Sep 20 15:34:45 UTC 2018


On Thu, 20 Sep 2018 at 15:01, Bill Meek <keemllib at gmail.com> wrote:

> On 09/20/2018 07:36 AM, Edmund Na wrote:
> > The routine which copies Channel Icon images from Myth to Mythweb isn’t
> > working correctly.
> >
> > At all times when I view Channel Icons on a frontend or in mythtv-setup I
> > see what I expect, but recently a couple of images were updated and then
> > they didn’t display on Mythweb – they showed as missing/corrupted image
> > rather than no image.
> >
> > The icons are stored in /home/mythtv/.mythtv/channels/ and have user and
> > group permission mythtv, but they are readable by all.
> >
> > Mythweb seems to access the images from /var/cache/mythweb/image_cache
> and
> > most images here are correct. I understand that when a new icon is added
> or
> > used something copies it to the image_cache folder. In my case that
> process
> > is producing corrupted images; each is 44Bytes. It is an empty xml file.
> > This is the same for PNG and jpg.
> >
> > If I manually copy the icons from channels to image_cache I see the
> images
> > I expect on Mythweb, however I would like to see if I can understand what
> > is going wrong as this may indicate something else is wrong.
> >
> > I am running Myth 0.28.0+fixes.20160413 and Ubuntu 16.04.4 LTS
>
> Interesting. I don't have an image_cache directory anywhere on my 16.04 or
> 18.04 boxes. apache2 is my web server.
>
> I'd expect the mythweb icons to be located in .../mythweb/data/tv_icons
> and that directory is writable by the user/group running the web server.
> Mine looks like:
>
>    $ ls -ld /var/www/mythweb/data/tv_icons/
>    drwxrwxr-x 2 mythtv www-data 4096 Aug 11 08:04
> /var/www/mythweb/data/tv_icons/
>

I'm not using a front-end, but I put my channel images in:

# ls -la /var/lib/mythtv/.mythtv/channels/
total 116
drwxr-xr-x 2 mythtv mythtv 4096 Jun 17 14:33 .
drwxr-xr-x 8 mythtv mythtv 4096 Jun 25 15:40 ..
-rw-r--r-- 1 root   root   5152 Jun 17 14:26 101.png
-rw-r--r-- 1 root   root   4659 Jun 17 14:26 102.png
-rw-r--r-- 1 root   root   4647 Jun 17 14:27 103.png
-rw-r--r-- 1 root   root   2279 Jun 17 14:27 104.png
-rw-r--r-- 1 root   root   4694 Jun 17 14:28 105.png
-rw-r--r-- 1 root   root   6104 Jun 17 14:28 111.png
-rw-r--r-- 1 root   root   3139 Jun 17 14:29 116.png
-rw-r--r-- 1 root   root   3035 Jun 17 14:29 118.png
-rw-r--r-- 1 root   root   3138 Jun 17 14:29 119.png
-rw-r--r-- 1 root   root   2948 Jun 17 14:30 120.png
-rw-r--r-- 1 root   root   3524 Jun 17 14:30 128.png
-rw-r--r-- 1 root   root   3071 Jun 17 14:31 131.png
-rw-r--r-- 1 root   root   3964 Jun 17 14:31 136.png
-rw-r--r-- 1 root   root   3846 Jun 17 14:31 137.png
-rw-r--r-- 1 root   root   4558 Jun 17 14:32 150.png
-rw-r--r-- 1 root   root   3923 Jun 17 14:33 159.png
-rw-r--r-- 1 root   root   2590 Jun 17 14:32 211.png
-rw-r--r-- 1 root   root   5042 Jun 17 14:32 503.png
-rw-r--r-- 1 root   root   4952 Jun 17 14:32 504.png

by hand.  These are then copied into:

# ls -la /var/lib/mythtv/mythweb/data/tv_icons/
total 116
drwxr-xr-x 2 www-data www-data 4096 Jun 17 14:33 .
drwxr-xr-x 3 www-data www-data 4096 Jun 17 14:19 ..
-rw-r--r-- 1 www-data www-data 5152 Jun 17 14:32 101.png
-rw-r--r-- 1 www-data www-data 4659 Jun 17 14:32 102.png
-rw-r--r-- 1 www-data www-data 4647 Jun 17 14:32 103.png
-rw-r--r-- 1 www-data www-data 2279 Jun 17 14:32 104.png
-rw-r--r-- 1 www-data www-data 4694 Jun 17 14:32 105.png
-rw-r--r-- 1 www-data www-data 6104 Jun 17 14:32 111.png
-rw-r--r-- 1 www-data www-data 3139 Jun 17 14:32 116.png
-rw-r--r-- 1 www-data www-data 3035 Jun 17 14:32 118.png
-rw-r--r-- 1 www-data www-data 3138 Jun 17 14:32 119.png
-rw-r--r-- 1 www-data www-data 2948 Jun 17 14:32 120.png
-rw-r--r-- 1 www-data www-data 3524 Jun 17 14:32 128.png
-rw-r--r-- 1 www-data www-data 3071 Jun 17 14:32 131.png
-rw-r--r-- 1 www-data www-data 3964 Jun 17 14:32 136.png
-rw-r--r-- 1 www-data www-data 3846 Jun 17 14:32 137.png
-rw-r--r-- 1 www-data www-data 4558 Jun 17 14:32 150.png
-rw-r--r-- 1 www-data www-data 3923 Jun 17 14:33 159.png
-rw-r--r-- 1 www-data www-data 2590 Jun 17 14:32 211.png
-rw-r--r-- 1 www-data www-data 5042 Jun 17 14:33 503.png
-rw-r--r-- 1 www-data www-data 4952 Jun 17 14:33 504.png

after accessing MythWeb.

I have a /var/cache/mythweb/image_cache/ directory, but it's empty.

I'm using the Debian packaged 0.28.2-dmo1+deb9u1 from deb-multimedia.

Ian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20180920/95ccb991/attachment.html>


More information about the mythtv-users mailing list