[mythtv] GetPreviewImage returns 404 not found
Gordon McLellan
gordonthree at gmail.com
Mon May 5 13:56:56 UTC 2008
Mike,
I'm still getting the 404 error. I double checked doing it manually,
and put in the missing "Myth" in the url, I also deleted
/mnt/video/*png and /var/www/html/mythweb/data/cache/*png. The png
files in /mnt/video get recreated and are proper png files, despite
the 404 errors in the log, but the png's in the mythweb cache are
still 0 byte. I seem to think this is a mythweb problem and not a
mythtv problem. However, when I search for this problem, the only
solution offered is "make sure upnp is turned on". I don't see
anywhere I can turn upnp on, just a command line option to turn it off
- is that correct?
Running getpreviewimage on a recording from this morning:
[root at mythserver ~]# wget
'http://localhost:6544/Myth/GetPreviewImage?ChanId=2130&StartTime=2008-05-05T09:00:00&Height=0&Width=100&SecsIn=64'
-O test.png
--09:48:48-- http://localhost:6544/Myth/GetPreviewImage?ChanId=2130&StartTime=2008-05-05T09:00:00&Height=0&Width=100&SecsIn=64
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:6544... connected.
HTTP request sent, awaiting response... 404 Not Found
09:48:48 ERROR 404: Not Found.
2008-05-05 09:48:48.298 MythXML::ProcessRequest: GetPreviewImage : GET
/Myth/GetPreviewImage?ChanId=2130&StartTime=2008-05-05T09:00:00&Height=0&Width=100&SecsIn=64
HTTP/1.0
2008-05-05 09:48:48.300 HTTPRequest::SendResponse(xml/html) () :404
Not Found -> 127.0.0.1: 2
Gordon
On Fri, May 2, 2008 at 11:22 AM, Michael T. Dean
<mtdean at thirdcontact.com> wrote:
> On 05/02/2008 09:57 AM, Gordon McLellan wrote:
> > I'm trying to troubleshoot a thumbnail generation problem, and have
> > been running the backend with different verbosities looking for clues.
> >
> > I've stumbled across my best lead yet ... a http 404 response is sent
> > whenever mythweb calls /Myth/GetPreviewImage
> >
>
> Perhaps your PHP is misconfigured and it's a DST issue. Try setting the
> timezone in /etc/php.ini .
>
>
> > logs:
> >
> > 2008-05-02 09:38:35.733 MythXML::ProcessRequest: GetPreviewImage : GET
> > /Myth/GetPreviewImage?ChanId=1059&StartTime=2008-05-02T09:00:00&Height=260&Width=320&SecsIn=64
> > HTTP/1.0
> >
>
> Notice the URI. /Myth/GetPreviewImage...
>
>
> > I have tried manually calling GetPreviewImage, but I cannot find the
> > right syntax, or perhaps, the right port number. I thought it was
> > 6544, but that does not result in the same error in the logs:
> >
> > # wget 'http://localhost:6544/getPreviewImage?ChanId=1059&StartTime=2008-05-02T09:00:00&Height=260&Width=320&SecsIn=64'
> > -O test.png
> >
>
> Notice the missing /Myth...
ok, big mistake there ... I reran the command with a url matching a
known available recording ... a proper PNG was created in /mnt/video
(the myth storage directory), and 0 byte file was created in
/var/www/html/mythweb/data/cache
>
>
> > and in the log, perhaps this is a cached response?
> >
> > 2008-05-02 09:46:40.759 Preview: Grabbed preview
> > '/mnt/video/1059_20080502093800.mpg' 320x480 at 64s
> >
>
> That's a different recording. It started at 09:38 versus 09:00.
>
> Is that the only recording missing a preview? Was it a show that
> started at 09:00, but you started recording at 09:38? MythWeb is using
> the proper time (recstartts) so that shouldn't be the issue.
>
>
> > All other aspects of myth seem to be working well... it's just this
> > nagging problem of no thumbnails in mythweb.
> >
> > I have a master backend with no tuners, and a combination
> > slave/frontend with a pvr-500 in it. The two seem to be talking
> > properly. Both servers share a exported network path for storage of
> > the video and preview images. Both systems have the full mythtv suite
> > installed.
> >
> > Any thoughts?
> >
>
> Try to remove all the png images from your MythWeb data/cache directory
> and all the png images from your recordings directory(ies). Be patient
> when requesting the MythWeb Recorded Programs page as it will take a
> while (could be tens of minutes if you have hundreds of recordings) to
> regenerate the previews.
>
> Mike
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>
More information about the mythtv-dev
mailing list