<br><br><div class="gmail_quote">On Fri, Jan 20, 2012 at 11:35 AM, Jan Johansson <span dir="ltr"><<a href="mailto:j2@mupp.net">j2@mupp.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="SV" link="blue" vlink="purple">
<div>
<p class="MsoNormal">Hello!<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span lang="EN-US">My trunk has started a weird behavior lately.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Sometimes mythmetadatalookup locks up, without writing anything to the log file.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">When I got home from work I found the system idle with mythwelcome showing “Running or pending jobs” a ps showed two mythmetadatalookup processes running, started last night (unfortunately I did not copy the complete
command lines, I just remembered the PIDs 3314 3315. And that it was an episode of 2 ½ men.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I saw no log files for these processes.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">So, I killed 3314 and 3315<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">-rw-r--r-- 1 mythtv mythtv 5578 <a href="tel:2012-01-20%2006" value="+12012012006" target="_blank">2012-01-20 06</a>:21 mythmetadatalookup.20120119200001.3315.log<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">But looking in the file I see (showing only the last lines)<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><a href="tel:2012-01-19%2020" value="+12012011920" target="_blank">2012-01-19 20</a>:00:03.759638 I [3315/3347] MetadataDownload metadatadownload.cpp:222 (runGrabber) - Running Grabber: /usr/local/share/mythtv/metadata/Television/ttvdb.py -l sv -N 72227 Don't Worry, Speed Racer<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><a href="tel:2012-01-20%2003" value="+12012012003" target="_blank">2012-01-20 03</a>:36:40.041693 I [3315/3346] Socket mythcorecontext.cpp:1023 (readyRead) - Received remote 'Clear Cache' request<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><a href="tel:2012-01-20%2006" value="+12012012006" target="_blank">2012-01-20 06</a>:21:28.026475 I [3315/3346] Socket mythcorecontext.cpp:1023 (readyRead) - Received remote 'Clear Cache' request<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">The log doesn’t seem to indicate what the problem might be, so:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p><u></u><span lang="EN-US"><span>1.<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span lang="EN-US">Can I somehow increase logging?</span></p></div></div></blockquote><div>Not in any way that will help.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="SV" link="blue" vlink="purple"><div><p><span lang="EN-US"><u></u><u></u></span></p>
<p><u></u><span lang="EN-US"><span>2.<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span lang="EN-US">Does someone have any idea on what might be going on here?</span></p></div></div></blockquote><div>TheTVDB.com is not responding and the script isn't returning any sort of error/failure.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="SV" link="blue" vlink="purple"><div><p><span lang="EN-US"><u></u><u></u></span></p>
<p><u></u><span lang="EN-US"><span>3.<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span lang="EN-US">Would it be possible to implement some sort of timeout on metadatalookup, to have it retry later?</span></p></div></div></blockquote><div>Sure, lots of things are possible-- but it's the script not returning that's holding things up. Either the script or metadata lookup could have a timeout implemented. Since this issue only tends to come up in MythVideo when the sources go down (usually TVDB) it's extremely transient. Also, since we test connectivity to the sites at the beginning of the metadata lookup run, the instances of a problem are very, very few and far between. It may be that a local mirror of TVDB to you is actually having a problem and thus the issue is causing you trouble more often.</div>
<div><br></div><div><br></div><div>Robert</div></div>