[mythtv-users] Video metadata lookups are stalling
Bill Meek
keemllib at gmail.com
Thu May 30 21:25:53 UTC 2019
On 12/24/18 3:33 AM, Jan Ceuleers wrote:
> 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.
Pushed to master just now: https://github.com/MythTV/mythtv/commit/98f4fc8
--
Bill
More information about the mythtv-users
mailing list