[mythtv-users] Lookup Metadata Jobs Hang

Jay Foster jayf0ster at roadrunner.com
Wed May 4 17:09:29 UTC 2016


On 5/4/2016 9:32 AM, Bill Meek wrote:
> On 05/04/2016 09:27 AM, Jay Foster wrote:
>> For the past few weeks, I have been having problems where the backend 
>> job queue gets stuck.  It is always because of a hung Lookup Metadata
>> job.  This prevents commercial flagging jobs from running.
>> 1) Why does lookup metadata jobs hang?
>> 2) Why do they not error or time out?  This seems like a bug to me.
>
> I'd look at the mythmetadatalookup.log for hints.
>
>> 3) What is the metadata used for?  I never see any of it.
>
> https://www.mythtv.org/wiki/Enhancing_Recordings_with_Metadata_Lookup
>
>> 4) How can I disable metadata lookups?
>
> In mythtv-setup, see: "Allow metadata lookup jobs" and turn it off.
> Or, you can do it on a per-recording-rule basis too.
>
mythmetadatalookup.log contained the following for the hung lookup. 
Seems like there should be a timeout somewhere instead of a hang.

May  4 04:02:33 mythbox mythmetadatalookup: mythmetadatalookup[2314]: C 
thread_unknown mythcommandlineparser.cpp:2595 (ConfigureLogging) 
mythmetadatalookup version: fixes/0.27 [v0.27.6-18-gaba4858] www.mythtv.org
May  4 04:02:33 mythbox mythmetadatalookup: mythmetadatalookup[2314]: C 
thread_unknown mythcommandlineparser.cpp:2597 (ConfigureLogging) Qt 
version: compile: 4.8.6, runtime: 4.8.6
May  4 04:02:33 mythbox mythmetadatalookup: mythmetadatalookup[2314]: N 
thread_unknown mythcommandlineparser.cpp:2599 (ConfigureLogging) Enabled 
verbose msgs:  general
May  4 04:02:33 mythbox mythmetadatalookup: mythmetadatalookup[2314]: N 
thread_unknown logging.cpp:907 (logStart) Setting Log Level to LOG_INFO
May  4 04:02:33 mythbox mythmetadatalookup: mythmetadatalookup[2314]: I 
Logger logging.cpp:308 (run) Added logging to the console
May  4 04:02:33 mythbox mythmetadatalookup: mythmetadatalookup[2314]: I 
thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup 
Interrupt handler
May  4 04:02:33 mythbox mythmetadatalookup: mythmetadatalookup[2314]: I 
thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup 
Terminated handler
May  4 04:02:33 mythbox mythmetadatalookup: mythmetadatalookup[2314]: I 
thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup 
Segmentation fault handler
May  4 04:02:33 mythbox mythmetadatalookup: mythmetadatalookup[2314]: I 
thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Aborted 
handler
May  4 04:02:33 mythbox mythmetadatalookup: mythmetadatalookup[2314]: I 
thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Bus 
error handler
May  4 04:02:33 mythbox mythmetadatalookup: mythmetadatalookup[2314]: I 
thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Floating 
point exception handler
May  4 04:02:33 mythbox mythmetadatalookup: mythmetadatalookup[2314]: I 
thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Illegal 
instruction handler
May  4 04:02:33 mythbox mythmetadatalookup: mythmetadatalookup[2314]: I 
thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup 
Real-time signal 0 handler
May  4 04:02:33 mythbox mythmetadatalookup: mythmetadatalookup[2314]: I 
thread_unknown signalhandling.cpp:194 (SetHandlerPrivate) Setup Hangup 
handler
May  4 04:02:33 mythbox mythmetadatalookup: mythmetadatalookup[2314]: N 
thread_unknown mythdirs.cpp:55 (InitializeMythDirs) Using runtime prefix 
= /usr
May  4 04:02:33 mythbox mythmetadatalookup: mythmetadatalookup[2314]: N 
thread_unknown mythdirs.cpp:68 (InitializeMythDirs) Using configuration 
directory = /home/mythtv/.mythtv
May  4 04:02:33 mythbox mythmetadatalookup: mythmetadatalookup[2314]: I 
CoreContext mythcorecontext.cpp:257 (Init) Assumed character encoding: 
en_US.UTF-8
May  4 04:02:33 mythbox mythmetadatalookup: mythmetadatalookup[2314]: N 
CoreContext mythcontext.cpp:504 (LoadDatabaseSettings) Empty LocalHostName.
May  4 04:02:33 mythbox mythmetadatalookup: mythmetadatalookup[2314]: I 
CoreContext mythcontext.cpp:512 (LoadDatabaseSettings) Using localhost 
value of mythbox
May  4 04:02:33 mythbox mythmetadatalookup: mythmetadatalookup[2314]: N 
CoreContext mythcorecontext.cpp:1634 (InitLocale) Setting QT default 
locale to en_US
May  4 04:02:33 mythbox mythmetadatalookup: mythmetadatalookup[2314]: I 
CoreContext mythcorecontext.cpp:1667 (SaveLocaleDefaults) Current locale 
en_US
May  4 04:02:33 mythbox mythmetadatalookup: mythmetadatalookup[2314]: N 
CoreContext mythlocale.cpp:121 (LoadDefaultsFromXML) Reading locale 
defaults from /usr/share/mythtv//locales/en_us.xml
May  4 04:02:33 mythbox mythmetadatalookup: mythmetadatalookup[2314]: I 
CoreContext mythtranslation.cpp:65 (load) Loading en_us translation for 
module mythfrontend
May  4 04:02:33 mythbox mythmetadatalookup: mythmetadatalookup[2314]: I 
CoreContext main.cpp:129 (main) Testing grabbers and metadata sites for 
functionality...
May  4 04:02:33 mythbox mythmetadatalookup: mythmetadatalookup[2314]: I 
SystemManager mythsystemunix.cpp:275 (run) Starting process manager
May  4 04:02:33 mythbox mythmetadatalookup: mythmetadatalookup[2314]: I 
SystemSignalManager mythsystemunix.cpp:510 (run) Starting process signal 
handler
May  4 04:02:33 mythbox mythmetadatalookup: mythmetadatalookup[2314]: I 
SystemIOHandlerR mythsystemunix.cpp:91 (run) Starting IO manager (read)
May  4 04:02:33 mythbox mythmetadatalookup: mythmetadatalookup[2314]: I 
SystemIOHandlerW mythsystemunix.cpp:91 (run) Starting IO manager (write)
May  4 04:02:33 mythbox mythmetadatalookup: mythmetadatalookup[2314]: I 
LogForward loggingserver.cpp:1373 (forwardMessage) New Client:  (#1)
May  4 04:02:33 mythbox mythmetadatalookup: mythmetadatalookup[2314]: I 
LogForward loggingserver.cpp:295 (SyslogLogger) Added syslogging
May  4 04:02:36 mythbox mythmetadatalookup: mythmetadatalookup[2314]: I 
CoreContext main.cpp:136 (main) All grabbers tested and working.  
Continuing...
May  4 04:02:36 mythbox mythmetadatalookup: mythmetadatalookup[2314]: I 
CoreContext mythcorecontext.cpp:426 (ConnectCommandSocket) 
MythCoreContext: Connecting to backend server: 192.168.200.11:6543 (try 
1 of 1)
May  4 04:02:36 mythbox mythmetadatalookup: mythmetadatalookup[2314]: I 
CoreContext mythcorecontext.cpp:1547 (CheckProtoVersion) Using protocol 
version 77
May  4 04:02:36 mythbox mythmetadatalookup: mythmetadatalookup[2314]: I 
MetadataDownload metadatagrabber.cpp:455 (RunGrabber) Running Grabber: 
/usr/share/mythtv/metadata/Television/ttvdb.py -l en -a US -N Saving 
Hope The Other Side of Midnight

Jay


More information about the mythtv-users mailing list