[mythtv-users] hostname problem in MythArchive

John Pilkington J.Pilk at tesco.net
Fri Aug 31 19:23:02 UTC 2012


On 31/08/12 18:51, Michael T. Dean wrote:
> On 08/31/2012 12:56 PM, Mike Perkins wrote:
>> On 31/08/12 15:27, Michael T. Dean wrote:
>>> On 08/31/2012 10:04 AM, Mike Perkins wrote:
>>>> On 31/08/12 14:21, Michael T. Dean wrote:
>>>>> On 08/31/2012 06:17 AM, John Pilkington wrote:
>>>>>> On 28/08/12 17:19, John Pilkington wrote:
>>>>>>> On 27/08/12 23:53, John Pilkington wrote:
>>>>>>>> Since installing 0.25-fixes on my main box I've had problems with
>>>>>>>> MythArchive.  I think this may be because the config settings are
>>>>>>>> defined by the frontend but are being read using the hostname of
>>>>>>>> the
>>>>>>>> backend.  The lines in the mythburn.py script read
>>>>>>>>
>>>>>>>> DB = MythTV.MythDB()
>>>>>>>> configHostname = DB.gethostname()
>>>>>>>>
>>>>>>>> I've tried a direct hack in mythburn.py that looked hopeful.
>>>>>>>> What would
>>>>>>>> be the way of getting the frontend's 'Custom Identifier' from
>>>>>>>> the DB
>>>>>>>> instead?
>>>>>>>>
>>>>>>>
>>>>>>> OK, it works for me (in creation of a playable DVD) if the 'Custom
>>>>>>> identifier' from Frontend Setup > General > page 2 is used as
>>>>>>> configHostname.
>>>>>>>
>>>>>>> If defined it's LocalHostName in ~/.mythtv/mysql.txt.  Isn't that
>>>>>>> the
>>>>>>> file that's being phased out?  config.xml doesn't have it and I
>>>>>>> haven't
>>>>>>> found it in the DB.
>>>>>>
>>>>>> I opened Ticket #11059 on this but it's been closed as fixed in 0.26
>>>>>>
>>>>>> My guess is that before then the easiest fix is to edit
>>>>>>  ~/.mythtv/config.xml like this:
>>>>>>
>>>>>> <MythFrontend>
>>>>>> <DefaultBackend>
>>>>>> <DBHostName>localhost</DBHostName>
>>>>>> <DBUserName>mythtv</DBUserName>
>>>>>> <DBPassword>mythtv</DBPassword>
>>>>>> <DBName>mythconverg</DBName>
>>>>>> <DBPort>3306</DBPort>
>>>>>> </DefaultBackend>
>>>>>> <DBHostName>what_your_frontend_is_called</DBHostName> ## This line
>>>>>> </MythFrontend>
>>>>>>
>>>>>> ... but I suppose this could screw something else up.  I haven't
>>>>>> tried it, but
>>>>>> it would be easier than editing mythburn.py, which is quite large
>>>>>> and belongs
>>>>>> to root.
>>>>>
>>>>> There is no DBHostName.
>>>>>
>>>>> https://github.com/MythTV/mythtv/blob/fixes/0.25/mythtv/contrib/config_files/config.xml
>>>>>
>>>>>
>>>>>
>>>> In the example in the link, it clearly uses 'DBHostName' - despite
>>>> the comment.
>>>>
>>>
>>> It's not an example.  It's a comment saying to /add/ LocalHostName.
>>>
>>> DBHostName is to say where the DB is located, not to change what they
>>> said needs
>>> changing.
>>>
>> Ah. I would have expected to see a commented-out example, as you often
>> find in other config files.
>>
>
>
> We couldn't use a commented-out example because the Perl bindings don't
> use a real XML parser to read it, and so they used the commented-out
> example (thus the comment in the most-recent commit message shown on
> that page :).
>
> Mike

So does this mean that I ought to try

  <DBLocalHostName>what_your_frontend_is_called</DBLocalHostName>

in the frontend section where I suggested making the change above?  Or 
would that, at present, be even more than usual not covered by the 
non-guarantee?  Really this means 'do the python bindings, at present, 
support both DBHostName and DBLocalHostName and make the appropriate 
connections without changes to the python script?'.

As I have it now it seems that the 'Success' message isn't getting into 
the DB - or maybe it just isn't accessible by other components - and the 
'Play Created DVD' doesn't play; an .iso file is created and I can play 
it as a video, and burn it as I usually do with k3b, but it might not 
burn within MythArchive.

TIA,

John





More information about the mythtv-users mailing list