Mailing List Archive

Network not starting?
Greetings all

I decided to go for the X-26Y Celeron box and have a Mythbuntu-14.04
frontend only installed and running OK most of the time!!

I power the box down overnight and when I next start it up it looks like
the network isn't starting because I get the language dialog displayed.

If I soft-stop using the power button and then immediately start it up
again, everything works fine.

Is this a scenario familiar to anyone? Not sure yet whether its the
network not starting at all (I can't ssh in whilst the language dialog is
up) or its just that the frontend starts before the network.

Obviously more diagnostics to be done but I wondered if anyone else has
something from this family of Intel SOC and had 'interesting' behaviour :)

Cheers

--
Robin Gilks



_______________________________________________
mythtvnz mailing list
mythtvnz@lists.linuxnut.co.nz
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
Re: Network not starting? [ In reply to ]
It is almost certainly the front end starting before the network.

There is mythfrontend script in mythbuntu that starts
mythfrontend.real (ie the binary usuallly called mythfrontend). You
can put a delay in there, although watch over writing during updates.

Personally I just escape out of the language box and mythfrontend
stops and restarts itself, by then the network is up.

On Mon, Sep 22, 2014 at 11:13 AM, Robin Gilks <g8ecj@gilks.org> wrote:
> Greetings all
>
> I decided to go for the X-26Y Celeron box and have a Mythbuntu-14.04
> frontend only installed and running OK most of the time!!
>
> I power the box down overnight and when I next start it up it looks like
> the network isn't starting because I get the language dialog displayed.
>
> If I soft-stop using the power button and then immediately start it up
> again, everything works fine.
>
> Is this a scenario familiar to anyone? Not sure yet whether its the
> network not starting at all (I can't ssh in whilst the language dialog is
> up) or its just that the frontend starts before the network.
>
> Obviously more diagnostics to be done but I wondered if anyone else has
> something from this family of Intel SOC and had 'interesting' behaviour :)
>
> Cheers
>
> --
> Robin Gilks
>
>
>
> _______________________________________________
> mythtvnz mailing list
> mythtvnz@lists.linuxnut.co.nz
> http://lists.ourshack.com/mailman/listinfo/mythtvnz
> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/

_______________________________________________
mythtvnz mailing list
mythtvnz@lists.linuxnut.co.nz
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
Re: Network not starting? [ In reply to ]
Robin Gilks wrote, On 22/09/14 11:13:
> I decided to go for the X-26Y Celeron box and have a Mythbuntu-14.04 frontend only installed and running OK most of the time!!
>
> I power the box down overnight and when I next start it up it looks like the network isn't starting because I get the language dialog displayed.
>
> If I soft-stop using the power button and then immediately start it up again, everything works fine.
>
> Is this a scenario familiar to anyone? Not sure yet whether its the network not starting at all (I can't ssh in whilst the language dialog is
> up) or its just that the frontend starts before the network.
>
> Obviously more diagnostics to be done but I wondered if anyone else has something from this family of Intel SOC and had 'interesting' behaviour :)
>

Yes i get this sometimes with a crappy old desktop I used as a front
end. About 1 in 10 starts the NIC would have a mac address of all
zeros, and no IP etc.
A reboot fixes it, but new frontend hardware looks to be doing the business.

Shame my TV is now next on the upgrade list... a 720p television that
only works at a couple of input resolutions is not that handy.


--
Criggie

http://criggie.org.nz/



_______________________________________________
mythtvnz mailing list
mythtvnz@lists.linuxnut.co.nz
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
Re: Network not starting? [ In reply to ]
NB Order changed to a bottom post....
> On Mon, Sep 22, 2014 at 11:13 AM, Robin Gilks <g8ecj@gilks.org> wrote:
>> Greetings all
>>
>> I decided to go for the X-26Y Celeron box and have a Mythbuntu-14.04
>> frontend only installed and running OK most of the time!!
>>
>> I power the box down overnight and when I next start it up it looks like
>> the network isn't starting because I get the language dialog displayed.
>>
>> If I soft-stop using the power button and then immediately start it up
>> again, everything works fine.
>>
>> Is this a scenario familiar to anyone? Not sure yet whether its the
>> network not starting at all (I can't ssh in whilst the language dialog is
>> up) or its just that the frontend starts before the network.

On 22/09/2014 11:31 a.m., Nick Rout wrote:> It is almost certainly the
front end starting before the network.
>
> There is mythfrontend script in mythbuntu that starts
> mythfrontend.real (ie the binary usuallly called mythfrontend). You
> can put a delay in there, although watch over writing during updates.
>
> Personally I just escape out of the language box and mythfrontend
> stops and restarts itself, by then the network is up.
>

If he can't ssh in suggests its not just myth starting too early because
if that were the case he should still be able to ssh in?

When its happening I'd perhaps try Ctrl+F4 for a clean desktop and see
what you can do outwards on the box, like ping or something?


_______________________________________________
mythtvnz mailing list
mythtvnz@lists.linuxnut.co.nz
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
Re: Network not starting? [ In reply to ]
On Mon, 22 Sep 2014 11:13:06 +1200, Robin Gilks <g8ecj@gilks.org> wrote:

> Greetings all
>
> I decided to go for the X-26Y Celeron box and have a Mythbuntu-14.04
> frontend only installed and running OK most of the time!!
>
> I power the box down overnight and when I next start it up it looks like
> the network isn't starting because I get the language dialog displayed.
>
> If I soft-stop using the power button and then immediately start it up
> again, everything works fine.
>
> Is this a scenario familiar to anyone? Not sure yet whether its the
> network not starting at all (I can't ssh in whilst the language dialog is
> up) or its just that the frontend starts before the network.
>
> Obviously more diagnostics to be done but I wondered if anyone else has
> something from this family of Intel SOC and had 'interesting' behaviour
> :)
>
> Cheers
>
This is exactly what happens if my modem/router is off.I found that the
router takes too long to boot for it to come up in time for Mythbuntu.So I
have the modem/router on another circuit,on all that time.

Paul

_______________________________________________
mythtvnz mailing list
mythtvnz@lists.linuxnut.co.nz
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
Re: Network not starting? [ In reply to ]
On Mon, Sep 22, 2014 at 3:03 PM, Paulgir <paulgir@gmail.com> wrote:
> On Mon, 22 Sep 2014 11:13:06 +1200, Robin Gilks <g8ecj@gilks.org> wrote:
>
>> Greetings all
>>
>> I decided to go for the X-26Y Celeron box and have a Mythbuntu-14.04
>> frontend only installed and running OK most of the time!!
>>
>> I power the box down overnight and when I next start it up it looks like
>> the network isn't starting because I get the language dialog displayed.
>>
>> If I soft-stop using the power button and then immediately start it up
>> again, everything works fine.
>>
>> Is this a scenario familiar to anyone? Not sure yet whether its the
>> network not starting at all (I can't ssh in whilst the language dialog is
>> up) or its just that the frontend starts before the network.
>>
>> Obviously more diagnostics to be done but I wondered if anyone else has
>> something from this family of Intel SOC and had 'interesting' behaviour :)
>>
>> Cheers
>>
> This is exactly what happens if my modem/router is off.I found that the
> router takes too long to boot for it to come up in time for Mythbuntu.So I
> have the modem/router on another circuit,on all that time.
>
> Paul

Why would you ever turn your router off?

In my household everything would fail. Lighting control, TV/media
setup, radio (from internet streams), data to mobile phones...

_______________________________________________
mythtvnz mailing list
mythtvnz@lists.linuxnut.co.nz
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
Re: Network not starting? [ In reply to ]
On 22/09/14 11:13, Robin Gilks wrote:
> Greetings all
>
> I decided to go for the X-26Y Celeron box and have a Mythbuntu-14.04
> frontend only installed and running OK most of the time!!
>
> I power the box down overnight and when I next start it up it looks like
> the network isn't starting because I get the language dialog displayed.
>
> If I soft-stop using the power button and then immediately start it up
> again, everything works fine.
>
> Is this a scenario familiar to anyone? Not sure yet whether its the
> network not starting at all (I can't ssh in whilst the language dialog is
> up) or its just that the frontend starts before the network.
>
> Obviously more diagnostics to be done but I wondered if anyone else has
> something from this family of Intel SOC and had 'interesting' behaviour :)
>
> Cheers
>
Might not be related, but I've encountered a bug with suspend/resume on
my laptop. Current consensus is to restart network-manager when the
machine wakes up.

If this sounds plausible in your case I'll forward you some more info.

Aaron.

_______________________________________________
mythtvnz mailing list
mythtvnz@lists.linuxnut.co.nz
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
Re: Network not starting? [ In reply to ]
On 22/09/14 18:43, Aaron Pelly wrote:
> Might not be related, but I've encountered a bug with suspend/resume
> on my laptop. Current consensus is to restart network-manager when the
> machine wakes up.
Network Manager? On a laptop, yeah alright if you must.

Anywhere else? get rid of that thing immediately... I want my network
settings to stay how I set them, not at the whim of some gui-driven "app"

--
Criggie

http://criggie.org.nz/


_______________________________________________
mythtvnz mailing list
mythtvnz@lists.linuxnut.co.nz
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
Re: Network not starting? [ In reply to ]
On Mon, 22 Sep 2014 15:47:56 +1200, Nick Rout <nick.rout@gmail.com> wrote:

> On Mon, Sep 22, 2014 at 3:03 PM, Paulgir <paulgir@gmail.com> wrote:
>> On Mon, 22 Sep 2014 11:13:06 +1200, Robin Gilks <g8ecj@gilks.org> wrote:
>>
>>> Greetings all
>>>
>>> I decided to go for the X-26Y Celeron box and have a Mythbuntu-14.04
>>> frontend only installed and running OK most of the time!!
>>>
>>> I power the box down overnight and when I next start it up it looks
>>> like
>>> the network isn't starting because I get the language dialog displayed.
>>>
>>> If I soft-stop using the power button and then immediately start it up
>>> again, everything works fine.
>>>
>>> Is this a scenario familiar to anyone? Not sure yet whether its the
>>> network not starting at all (I can't ssh in whilst the language dialog
>>> is
>>> up) or its just that the frontend starts before the network.
>>>
>>> Obviously more diagnostics to be done but I wondered if anyone else has
>>> something from this family of Intel SOC and had 'interesting'
>>> behaviour :)
>>>
>>> Cheers
>>>
>> This is exactly what happens if my modem/router is off.I found that the
>> router takes too long to boot for it to come up in time for
>> Mythbuntu.So I
>> have the modem/router on another circuit,on all that time.
>>
>> Paul
>
> Why would you ever turn your router off?
>
> In my household everything would fail. Lighting control, TV/media
> setup, radio (from internet streams), data to mobile phones...

Apparently,I'm not a slave to gadget acquisitionitis

Paul

_______________________________________________
mythtvnz mailing list
mythtvnz@lists.linuxnut.co.nz
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
Re: Network not starting? [ In reply to ]
On Tue, 23 Sep 2014 08:16:25 +1200, Paulgir <paulgir@gmail.com> wrote:

> On Mon, 22 Sep 2014 15:47:56 +1200, Nick Rout <nick.rout@gmail.com>
> wrote:
>
>> On Mon, Sep 22, 2014 at 3:03 PM, Paulgir <paulgir@gmail.com> wrote:
>>> On Mon, 22 Sep 2014 11:13:06 +1200, Robin Gilks <g8ecj@gilks.org>
>>> wrote:
>>>
>>>> Greetings all
>>>>
>>>> I decided to go for the X-26Y Celeron box and have a Mythbuntu-14.04
>>>> frontend only installed and running OK most of the time!!
>>>>
>>>> I power the box down overnight and when I next start it up it looks
>>>> like
>>>> the network isn't starting because I get the language dialog
>>>> displayed.
>>>>
>>>> If I soft-stop using the power button and then immediately start it up
>>>> again, everything works fine.
>>>>
>>>> Is this a scenario familiar to anyone? Not sure yet whether its the
>>>> network not starting at all (I can't ssh in whilst the language
>>>> dialog is
>>>> up) or its just that the frontend starts before the network.
>>>>
>>>> Obviously more diagnostics to be done but I wondered if anyone else
>>>> has
>>>> something from this family of Intel SOC and had 'interesting'
>>>> behaviour :)
>>>>
>>>> Cheers
>>>>
>>> This is exactly what happens if my modem/router is off.I found that the
>>> router takes too long to boot for it to come up in time for
>>> Mythbuntu.So I
>>> have the modem/router on another circuit,on all that time.
>>>
>>> Paul
>>
>> Why would you ever turn your router off?
>>
>> In my household everything would fail. Lighting control, TV/media
>> setup, radio (from internet streams), data to mobile phones...
>
> Apparently,I'm not a slave to gadget acquisitionitis
>
> Paul
38 years as an electronics technician must have immunised me.

_______________________________________________
mythtvnz mailing list
mythtvnz@lists.linuxnut.co.nz
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
Re: Network not starting? [ In reply to ]
> It is almost certainly the front end starting before the network.
>
> There is mythfrontend script in mythbuntu that starts
> mythfrontend.real (ie the binary usuallly called mythfrontend). You
> can put a delay in there, although watch over writing during updates.
>
> Personally I just escape out of the language box and mythfrontend
> stops and restarts itself, by then the network is up.
>

OK - I've verified that it is the frontend coming up before the network so
I've added the following into the mythfrontend.sh script to ensure the
network is up.

until [ `cat /sys/class/net/eth0/operstate` = 'up' ]
do
sleep 1
done

The name of the interface may change according to udev rules so best to
check with ifconfig what your's is called!!

--
Robin Gilks



_______________________________________________
mythtvnz mailing list
mythtvnz@lists.linuxnut.co.nz
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
Re: Network not starting? [ In reply to ]
Robin Gilks wrote, On 23/09/14 08:23:
> OK - I've verified that it is the frontend coming up before the network so I've added the following into the mythfrontend.sh script to ensure the network is up.
>
> until [ `cat /sys/class/net/eth0/operstate` = 'up' ]
> do
> sleep 1
> done
>
> The name of the interface may change according to udev rules so best to check with ifconfig what your's is called!!
>


How about ping the backend's IP address until it replies?


Something like ping -c 2 -w 99 10.11.12.13 > /dev/null

That will wait for up to 99 seconds for a reply.

--
Criggie

http://criggie.org.nz/



_______________________________________________
mythtvnz mailing list
mythtvnz@lists.linuxnut.co.nz
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
Re: Network not starting? [ In reply to ]
> Robin Gilks wrote, On 23/09/14 08:23:
>> OK - I've verified that it is the frontend coming up before the network
>> so I've added the following into the mythfrontend.sh script to ensure
>> the network is up.
>>
>> until [ `cat /sys/class/net/eth0/operstate` = 'up' ]
>> do
>> sleep 1
>> done
>>
>> The name of the interface may change according to udev rules so best to
>> check with ifconfig what your's is called!!
>>
>
>
> How about ping the backend's IP address until it replies?
>
>
> Something like ping -c 2 -w 99 10.11.12.13 > /dev/null
>
> That will wait for up to 99 seconds for a reply.

Well my original patch didn't work because the link was up, just still
getting dhcp stuff. Now changed to static IP (which I would have done if I
knew the *buntu way of doing things) so I think I'm done :)


--
Robin Gilks



_______________________________________________
mythtvnz mailing list
mythtvnz@lists.linuxnut.co.nz
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/