[mythtv-users] Mytharchive error on 0.26
Mark Greenwood
fatgerman at gmail.com
Sun Oct 28 12:20:59 UTC 2012
On 28 Oct 2012, at 11:53, John Pilkington wrote:
> On 28/10/12 11:11, Mike Perkins wrote:
>> On 28/10/12 11:01, Jos Hoekstra wrote:
>>>
>>> Hmmmm, you're on to something here, they do differ(excluding my own
>>> edits) and I
>>> read further down that by default these are linked to
>>> /etc/mythtv/config.xml.
>>> However, both differ quite a lot from /etc/mythtv/config.xml and it
>>> seems that
>>> they're supposed to be different, added the LocalHostName to all and
>>> will have
>>> to see how that goes.
>>> After reboot it doesn't seem to improve the double filename-issue.
>>> Here's my edited ~/.mythtv/config.xml:
>>> <Configuration>
>>> <UPnP>
>>> <UDN>
>>> <MediaRenderer>obscured</MediaRenderer>
>>> </UDN>
>>> </UPnP>
>>> <LocalHostName>frontend</LocalHostName>
>>> <Database>
>>> <PingHost>1</PingHost>
>>> <Host>192.168.1.5</Host>
>>> <UserName>mythtv</UserName>
>>> <Password>passwd</Password>
>>> <DatabaseName>mythconverg</DatabaseName>
>>> <Port>3306</Port>
>>> </Database>
>>> <WakeOnLAN>
>>> <Enabled>0</Enabled>
>>> <SQLReconnectWaitTime>0</SQLReconnectWaitTime>
>>> <SQLConnectRetry>5</SQLConnectRetry>
>>> <Command>echo 'WOLsqlServerCommand not set'</Command>
>>> </WakeOnLAN>
>>> </Configuration>
>>>
>>> and /etc/mythtv/config.xml:
>>> <Configuration>
>>> <UPnP>
>>> <MythFrontend>
>>> <DefaultBackend>
>>> <!--
>>> Set the <LocalHostName> hostname override below only if you want to use
>>> something other than the machine's real hostname for identifying settings
>>> in the database. This is useful if your hostname changes often, as
>>> otherwise you'll need to reconfigure mythtv every time.
>>>
>>> NO TWO HOSTS MAY USE THE SAME VALUE
>>> -->
>>> <LocalHostName>frontend</LocalHostName>
>>> <DBHostName>192.168.1.5</DBHostName>
>>> <DBUserName>mythtv</DBUserName>
>>> <DBPassword>password</DBPassword>
>>> <DBName>mythconverg</DBName>
>>> <DBPort>3306</DBPort>
>>> </DefaultBackend>
>>> </MythFrontend>
>>> </UPnP>
>>> </Configuration>
>>>
>>> If anyone sees anything wrong here, I'd like to know ;)
>>>
>> In the first one, the UPnP section stands alone. In the second, the UPnP
>> section wraps the database section. This might mean it *never* gets
>> parsed properly where it is needed.
>>
>> This may be your problem. You also mention above:
>>
>> "However, both differ quite a lot from /etc/mythtv/config.xml and it
>> seems that
>> they're supposed to be different"
>>
>> No, I don't think they are. These describe the *machine* to the backend.
>> The only time you would ever want these to be different is when you are
>> doing some special testing and need another host identifier or database
>> username/password. Make all ~/.mythtv be links to /etc/mythtv and this
>> will ensure that your config is consistent wherever you run from.
>>
>
> But the LocalHostName has to be just that, and just where the comment is.
>
> Does *buntu have separate users, eg Jos and mythtv? I would suppose they are both on the same frontend and should share the same config.xml, but on another frontend that would be different?
The mythbuntu setup is a bit strange. It creates a mythtv user, who has a config.xml, but logs you in as (e.g.) Jos and Jos has his own config.xml. So the frontend runs as Jos but anything kicked off by the backend runs as mythtv. It's daft.
My 'solution' to this has always been to symlink /home/mythtv/.mythtv to /home/<my user>/.mythtv and make everything read/writeable by the mythtv group. I do the same for /home/mythtv/.xmltv as well and this seems to work for me - I do this as the very first thing I do after installation, before any configuration, and it saves a lot of confusion.
Mark
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
More information about the mythtv-users
mailing list