[mythtv-users] Video metadata lookups are stalling

Jan Ceuleers jan.ceuleers at gmail.com
Mon Dec 24 09:33:26 UTC 2018


On 24/12/2018 09:45, Jan Ceuleers wrote:
> On 23/12/2018 22:54, Andy Smith wrote:
>>> If I then go onto filling in "tmdb3.py_284053" in the inetref field
>>> using the frontend (running on the master backend) and attempt
>>> retrieving all details, the log says that it is running
>>> "/usr/share/mythtv/metadata/Movie/tmdb3.py -l en -a GB -D 284053" but
>>> nothing happens.
>>>
>>> If I try and run this command myself, adding "--debug" I see that it
>>> stalls on the following line:
>>>
>>> loading
>>> http://api.themoviedb.org/3/movie/284053/casts?api_key=c27cb71cff5bd76e1a7a009380562c62
>>>
>>> Any ideas?
>>>
>>> Thanks, Jan
>>
>> Sorry to say, all I can add is 'me too', this was working up till
>> 2018-12-19, interesting I seem to have installed
>> 2:29.1+fixes.20181210.362f382~ubuntu18.04.1 and there is
>> 2:29.1+fixes.20181217.979fc68~ubuntu18.04.1 available, I will try an
>> upgrade after tonights's recording are finished.
> 
> If I kill all tmdb3.py instances things start working again. It seems
> that the code serialises requests (i.e. it avoids issuing multiple
> parallel requests), apparently without there being timeouts. So if a
> request stalls that's the end of metadata queries until the box is
> rebooted (or at least until the stalled tmdb3.py instance is killed).
> 

I have fixed this using the attached patch.

Raymond, I would file a bug but trac won't let me register as a new
user. I'm cc-ing you because the comments in tmdb3.py indicate that you
are its author.

What the patch does is error out after a 30-second timeout, so that
tmdb3.py processes don't stall indefinitely.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tmdb3_timeout.patch
Type: text/x-patch
Size: 1238 bytes
Desc: not available
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20181224/4febd550/attachment.bin>


More information about the mythtv-users mailing list