<br><br><div class="gmail_quote">On Thu, Jul 18, 2013 at 10:11 AM, Paulgir <span dir="ltr"><<a href="mailto:paulgir@gmail.com" target="_blank">paulgir@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This is almost certainly a network timing problem, caused by using the<br>
real external IP address of your box instead of localhost. I fixed<br>
this by adjusting upstart's /etc/init/mythtv-backend.conf file to wait<br>
for the ethernet interface to be up instead of just localhost. The<br>
Mythbuntu devs have attempted to fix this problem already, and their<br>
fix (the current "start on" line) works if you have simple networking<br>
where you only have one localhost and one ethernet interface on the<br>
box. This is what they have in 12.04:<br>
<br>
start on (local-filesystems and net-device-up IFACE!=lo and started<br>
udev-finish)<br>
<br>
But if, like me, you have more than one other network interface (I<br>
have two ethernet cards and a bridged interface for using with VPNs),<br>
then that version does not work and you still need to customise it.<br>
What happens is that one of your other network interfaces comes up<br>
before the one that mythbackend runs on does, and that satisfies the<br>
"net-device-up IFACE!=lo" condition, allowing mythbackend to start. In<br>
the worst case (what I was getting occasionally) you can actually have<br>
mythbackend start before it should and shut down again due to not<br>
having a network interface. More usually, it starts and does<br>
eventually find the network interface once it comes up, but<br>
mythfrontend does not see mythbackend in time and thinks it does not<br>
have a connection.<br>
<br>
To fix this, comment out the current "start on" line and replace it<br>
with this (if you mythbackend connects on eth0):<br>
<br>
start on (local-filesystems and net-device-up IFACE=eth0 and started<br>
udev-finish)<br>
<br>
I need to use this:<br>
<br>
start on (local-filesystems and net-device-up IFACE=eth0 and<br>
net-device-up IFACE=br0 and net-device-up IFACE=eth1 and started<br>
udev-finish)<br>
<br>
</blockquote>
<br>
<br></div></div>
Thanks Stephen.That appears to fix it.<br>
<br>
Cheers -Paul</blockquote><div><br><br>Can I just say to everyone while we are vaguely on the subject, I make it a policy when setting up mythtv to NEVER set things up to work through localhost. It is tempting to do so, but the moment you want to add an external frontend (and you will want to one day) you'll have a world of pain. <br>
<br>Pick an IP address and hostname for the backend that you can live with, fix it and never change it. If you get a new backend, call it by the same hostname as the old one and give it the same IP address.<br><br>End of rant.<br>
</div></div>