[mythtv-users] HELP: HD died will need to delete all recordings

Tom Dexter digitalaudiorock at gmail.com
Sun Oct 28 12:16:23 UTC 2018


On 10/27/18, Tom Dexter <digitalaudiorock at gmail.com> wrote:
> On 10/27/18, Stephen Worthington <stephen_agent at jsw.gen.nz> wrote:
>> On Sat, 27 Oct 2018 09:38:39 -0400, you wrote:
>>
>>>Thanks for that. Interestingly they were the same. Yea, for some
>>>reason I have some very odd breakage happening there, and it behaves
>>>differently running as root vs a non-root user. This is Gentoo running
>>>Python 2.7.15.
>>>
>>>Running it with python -v here's what I see failing when run as root:
>>>
>>># /usr/lib/python2.7/site-packages/MythTV/methodheap.pyc matches
>>>/usr/lib/python2.7/site-packages/MythTV/methodheap.py
>>>import MythTV.methodheap # precompiled from
>>>/usr/lib/python2.7/site-packages/MythTV/methodheap.pyc
>>>Traceback (most recent call last):
>>>  File "find_orphans.py", line 221, in <module>
>>>    DB = MythDB()
>>>  File "/usr/lib/python2.7/site-packages/MythTV/database.py", line
>>>1264, in __init__
>>>    for tmpconfig in dbconfig.test(self.log):
>>>  File "/usr/lib/python2.7/site-packages/MythTV/database.py", line 938,
>>> in
>>> test
>>>    for conn in XMLConnection.fromUPNP(5.0):
>>>  File "/usr/lib/python2.7/site-packages/MythTV/connections.py", line
>>>607, in fromUPNP
>>>    ip, port = reLOC.match(res['location']).group(1,2)
>>>AttributeError: 'NoneType' object has no attribute 'group'
>>>
>>>So it clearly doesn't like something in that methodheap.
>>>Interestingly, run an a non-root user it gets past that but segfaults
>>>later:
>>>
>>># /usr/lib/python2.7/site-packages/MythTV/methodheap.pyc matches
>>>/usr/lib/python2.7/site-packages/MythTV/methodheap.py
>>>import MythTV.methodheap # precompiled from
>>>/usr/lib/python2.7/site-packages/MythTV/methodheap.pyc
>>># /usr/lib/python2.7/site-packages/MySQLdb/connections.pyc matches
>>>/usr/lib/python2.7/site-packages/MySQLdb/connections.py
>>>import MySQLdb.connections # precompiled from
>>>/usr/lib/python2.7/site-packages/MySQLdb/connections.pyc
>>># /usr/lib/python2.7/site-packages/MySQLdb/constants/CLIENT.pyc
>>>matches /usr/lib/python2.7/site-packages/MySQLdb/constants/CLIENT.py
>>>import MySQLdb.constants.CLIENT # precompiled from
>>>/usr/lib/python2.7/site-packages/MySQLdb/constants/CLIENT.pyc
>>># /usr/lib/python2.7/site-packages/MySQLdb/converters.pyc matches
>>>/usr/lib/python2.7/site-packages/MySQLdb/converters.py
>>>import MySQLdb.converters # precompiled from
>>>/usr/lib/python2.7/site-packages/MySQLdb/converters.pyc
>>># /usr/lib/python2.7/site-packages/MySQLdb/constants/FLAG.pyc matches
>>>/usr/lib/python2.7/site-packages/MySQLdb/constants/FLAG.py
>>>import MySQLdb.constants.FLAG # precompiled from
>>>/usr/lib/python2.7/site-packages/MySQLdb/constants/FLAG.pyc
>>>Segmentation fault
>>>
>>>Really odd one. Again, not all that important to me now, but strange.
>>>Thanks again!
>>>
>>>Tom
>>
>> As root, the actual crash is happening in a module of the MythTV
>> Python bindings.  So do you have the correct version of that
>> installed?  Does it match your MythTV version?  Maybe it would be
>> worthwhile trying reinstalling that package.  In Ubuntu, the package
>> is libmyth-python.
>
> This is a Gentoo ebuild that gets all the python stuff out of the
> exact same git version as everything else, so there's no chance of
> that being incorrect.
>
> What I did notice, as per Bill's reply, root had no
> .mythtv/config.xml. However if I add that, then root segfaults in the
> same manner as a non-root user. Really odd.
>
> It's very doubtful that I have a core python issue. Python tends to be
> very solid in Gentoo, especially given that it's used for portage
> itself.
>
> Tom
>
> Tom
>

I figured this out. Re-compiling the dev-python/mysql-python fixed
this. There was a recent change in the ABI in dev-db/mysql-connector
and I was specifically supposed to rebuild that (and possibly others)
by running revdep-rebuild against libmysqlclient.so.18, which I missed

Tom


More information about the mythtv-users mailing list