[mythtv] [mythtv-commits] mythtv branch master updated by pbennett. v29-pre-305-gef7e594

Peter Bennett pgbennett at comcast.net
Fri Feb 10 19:57:32 UTC 2017



On 02/10/2017 12:57 PM, Piotr Oniszczuk wrote:
> Peter,
> I think empty field in setup screen should mean standard port. This is IIRC stated in help text on setup screen (leave blank is standard port is used).
> It looks like new setup screen don’t touches port if port=0.
> I suspect old setup screen puts port=0 when field is blank.
> For new setup screen it is logical to not touch port if config.xml has it non-empty - but for smooth migrations from old to new I would add condition like:
> if port=0 then port=3306
>   
> I do test with deleting config.xml and restarting FE.
> Result: when there is no config.xml - FE starts with country/language screen.
> Selecting country/language and pressing save gives country/language screen again.
Hi Piotr

I know it will not work with blank port or port zero. That is an easy 
fix to default to 3306. I will fix that.

I tried your test and I do not get the same result. I built MythTV on 
raspberry pi. I copied your config.xml and changed the servers to match 
mine, see below.

As long as my database and backend are running the front end starts up 
immediately.

I tried removing the config.xml, then it uses UPNP to find the backend. 
I have a PIN set on my backend and it put up the selection for backends 
and asked for the pin. After entering that the frontend started.

I did not see the country prompt at all. I think that will only come if 
either something is wrong in config.xml or it cannot reach the backend 
when there is no config.xml.

Can you check that your database is accessible from your frontend. I use 
this command:

pi at tardis ~ $ nc -zv 192.168.0.188 3306
Connection to 192.168.0.188 3306 port [tcp/mysql] succeeded!

My config.xml copied from yours with changes -

<Configuration>
   <UPnP>
     <MythFrontend>
       <DefaultBackend>
         <LocalHostName>FE-Livingroom</LocalHostName>
       </DefaultBackend>
     </MythFrontend>
     <UDN>
<MediaRenderer>5957aaab-8079-46dd-8828-26b3068306ed</MediaRenderer>
     </UDN>
   </UPnP>
<LocalHostName>my-unique-identifier-goes-here</LocalHostName>
   <Database>
     <PingHost>1</PingHost>
     <Host>192.168.0.188</Host>
     <UserName>mythmst</UserName>
     <Password>mythtv</Password>
     <DatabaseName>mythdbmst</DatabaseName>
     <Port>3306</Port>
   </Database>
   <WakeOnLAN>
     <Enabled>0</Enabled>
     <SQLReconnectWaitTime>0</SQLReconnectWaitTime>
     <SQLConnectRetry>5</SQLConnectRetry>
     <Command>echo 'WOLsqlServerCommand not set'</Command>
   </WakeOnLAN>
</Configuration>




More information about the mythtv-dev mailing list