[mythtv-users] "missing cover" mythweb problem

Mike Millner mike at mikeshome.com
Sat Jan 3 16:26:46 UTC 2009


On Sat, Jan 3, 2009 at 7:55 AM, <jarpublic at gmail.com> wrote:

> On Sat, Jan 3, 2009 at 1:58 AM, Mike Millner <mike at mikeshome.com> wrote:
>
>> Please help before i jump :)
>>
>> I am able to see my movies listed when I click on the video icon from
>> mythweb, however I can not for the life of get the an icon to show up. I've
>> been trying with this movie "The Pursuit of Happyness". There is a .jpg and
>> a .png in the /home/mythtv/.mythtv/MythVideo directory. Does it have to be a
>> .jpg or .png? I also have a sub dir in this path with name of movie and
>> files in their..owned by mythtv..no love
>>
>>
>> I have the sym links setup
>>
>> I tried to chown the symlinks to mythtv:mythtv but I guess the need to be
>> root? and I can see the listing of videos so I guess thats right..also imdb
>> works
>>
>> /var/www/mythweb/data
>>
>> lrwxrwxrwx 1 root root   22 2008-12-31 06:54 video ->
>> /var/lib/mythtv/videos
>> lrwxrwxrwx 1 root root   31 2009-01-02 19:12 video_covers ->
>> /home/mythtv/.mythtv/MythVideo/
>>
>> The actual dirs are owned by mythtv.
>>
>> /var/lib/mythtv
>> drwxr-xr-x  3 mythtv mythtv  4096 2009-01-02 09:46 video_covers
>> drwxrwxr-x 21 mythtv mythtv  4096 2009-01-02 17:45 videos
>>
>>
>>
>> I keep telling myself this isn't important and I should let it go but its
>> making me crazy :)
>>
>> Below is from my apache access log. So it seems to me this is some kind of
>> permission issue? I have no entries in the myth frontend or backend logs
>> regarding these images.
>>
>> Have searched around and found some things to try but to no avail. Any
>> help wwould be greatly appreciated.
>>
>
> The video_covers directory needs to have read write permissions for the
> apache webserver. Mythweb operates has the permissions of the apache web
> server not mythtv. I just gave read/write priveledges to everybody for the
> video cover directory and that fixed it. Also changing the permissions on a
> symlink won't really do anything. The symlink will have the permissions of
> the target directory. You have to change the permissions of the actual
> directory not the symlink.
>
> You say that /var/www/mythweb/data/video_covers links to
> /home/mythtv/.mythtv/MythVideo but then you also say you have a directory
> for covers in /var/lib/mythtv/video_covers. You need to decide which folder
> you want your covers in. Then you need to make sure
> /var/www/mythweb/data/video_covers links to that directory. I would put it
> somewhere close to where the actual videos are. This makes it easier if you
> are going to move your data to another system or drive. You don't have to go
> looking around for directories spread all over your system. Then you need to
> go to the actual directory and make sure the web server has write
> permissions in that directory. The easiest way is to just give read/write to
> everyone.
>

Thanks for the reply!

I changed the owner to be the user that runs apache(www-data) and the
permissions on the video_covers dir to 777..probably to high but wanted to
be sure this isn't the problem.

I changed the symlink to point to the original video_covers at the same
level as the videos dir.

In the mythweb>settings>video>VideoArtworkDir: I have tried changing the
path   to /var/www/mythweb/data/video_covers instead of
/var/lib/mythtv/video_covers

I rebooted just to make sure things are still ok after all the playing
around. Everything seems to be fine but no change in the behavior of the
video covers.

Sorry for being dense ...I'm sure I'm missing something stupid

Any further guidance would be greatly appreciated.

Thanks!
Mike

>
>
> mike at myth:/var/lib/mythtv$ ls -l
> total 28
> drwxrwsr-x  6 mythtv   mythtv    4096 2008-12-26 20:54 music
> drwxrwxr-x 11 mythtv   mythtv    4096 2008-11-13 17:42 pictures
> drwxrwsr-x  2 mythtv   mythtv   12288 2009-01-03 08:51 recordings
> drwxrwxrwx  3 www-data www-data  4096 2009-01-03 08:09 video_covers
> drwxrwxr-x 22 mythtv   mythtv    4096 2009-01-03 00:01 videos
>
> mike at myth:/var/www/mythweb/data$ ls -l
> total 0
> lrwxrwxrwx 1 root root 30 2008-09-27 09:55 cache ->
> /var/cache/mythweb/image_cache
> lrwxrwxrwx 1 root root 21 2008-09-27 09:55 music -> /var/lib/mythtv/music
> lrwxrwxrwx 1 root root 26 2008-09-27 09:55 recordings ->
> /var/lib/mythtv/recordings
> lrwxrwxrwx 1 root root 30 2008-09-27 09:55 tv_icons ->
> /var/cache/mythweb/image_cache
> lrwxrwxrwx 1 root root 22 2008-12-31 06:54 video -> /var/lib/mythtv/videos
> lrwxrwxrwx 1 root root 29 2009-01-03 08:07 video_covers ->
> /var/lib/mythtv/video_covers/



This is what is actually in the video_covers dir:

mike at myth:/var/lib/mythtv/video_covers/The Pursuit Of Happyness$ ls -l
total 44
-rw-r--r-- 1 www-data www-data 41788 2009-01-02 07:56 happyness.jpg
mike at myth:/var/lib/mythtv/video_covers/The Pursuit Of Happyness$ cd ..
mike at myth:/var/lib/mythtv/video_covers$ ls -l
total 48
-rw-r--r-- 1 www-data www-data 41788 2009-01-03 08:09 happyness.jpg
drwxr-xr-x 2 www-data www-data  4096 2009-01-02 09:46 The Pursuit Of
Happyness


 <snip> /var/log/apace2/access.log
10.5.1.172 - - [03/Jan/2009:09:06:49 -0700] "GET
/mythweb/video?path=%2Fvar%2Flib%2Fmythtv%2Fvideos%2FThe+Pursuit+Of+Happyness%2F
HTTP/1.1" 200 22136 "
http://myth/mythweb/video?path=%2Fvar%2Flib%2Fmythtv%2Fvideos%2FThe+Pursuit+Of+Happyness%2F"
"Mozilla/5.0 (X11; U; Linux i686;en-US; rv:1.9.0.5) Gecko/2008121622
Ubuntu/8.10 (intrepid) Firefox/3.0.5"
10.5.1.172 - - [03/Jan/2009:09:06:49 -0700] "GET /mythweb/dcss/video.css.php
HTTP/1.1" 200 2302 "
http://myth/mythweb/video?path=%2Fvar%2Flib%2Fmythtv%2Fvideos%2FThe+Pursuit+Of+Happyness%2F"
"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.5) Gecko/2008121622
Ubuntu/8.10 (intrepid) Firefox/3.0.5"

>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20090103/eff59d78/attachment.htm 


More information about the mythtv-users mailing list