Superb quality and spec AB-Com PULSe 4K SE. Crazy offer! Only £129! FREE UK DELIVERY! 4K UHD, Enigma 2, Multiboot 4 images & more!...
Superb quality and spec AB-Com PULSe 4K Rev II Twin Satellite tuner only £179! FREE UK DELIVERY! 4K UHD, Enigma 2, SATA HDD facility, Multiboot 4 images & more!...

[Mut@nt] HD51 Python reboots when checking for update with no network present

Mickkie

Forum Supporter
Donated Member
Joined
Nov 3, 2017
Messages
256
Reaction score
8
Points
18
Hi,

I tried to check manually for an update this morning and the box crashed. I then realised my Internet connection was unavailable, but this should not really cause a crash?:confused:
Code:
< 48891.6249> [InfoBarGenerics] Key: 108 (Break) KeyID='KEY_DOWN' Binding='('DOWN',)'.
< 48891.8327> [eInputDeviceInit] 1 160 (352) 1
< 48891.8327> [eRCDeviceInputDev] emit: 1
< 48891.8343> [InfoBarGenerics] Key: 352 (Make) KeyID='KEY_OK' Binding='('OK',)'.
< 48891.8344> [ActionMap] Keymap 'OkCancelActions' -> Action = 'ok'.
< 48891.8831> [Skin] Processing screen 'UpdatePlugin', position=(0, 0), size=(1920 x 1080) for module 'UpdatePlugin'.
< 48891.9156> [Skin] Processing screen 'SimpleSummary' from list 'UpdatePluginSummary, ScreenSummary, UpdatePlugin_summary, SimpleSummary', position=(0, 0), size=(132 x 64) for module 'ScreenSummary'.
< 48891.9176> [About] ifreq:  {'ifname': 'eth0', 'addr': '10.10.10.98', 'brdaddr': '10.10.10.127', 'hwaddr': '18:99:F5:F2:2E:25', 'netmask': '255.255.255.224'}
< 48891.9176> [OnlineUpdateCheck][adapterAvailable] PASSED
< 48891.9184> [OnlineUpdateCheck][NetworkUp] FAILED <class 'OSError'>
< 48891.9187> Traceback (most recent call last):
< 48891.9187>   File "/usr/lib/enigma2/python/Components/ActionMap.py", line 60, in action
< 48891.9204>     res = self.actions[action]()
< 48891.9205>   File "/usr/lib/enigma2/python/Screens/Menu.py", line 86, in okbuttonClick
< 48891.9216>     selection[1]()
< 48891.9216>   File "/usr/lib/enigma2/python/Tools/BoundFunction.py", line 10, in __call__
< 48891.9266>     return self.fnc(*self.args + args, **newkwargs)
< 48891.9267>   File "/usr/lib/enigma2/python/Screens/Menu.py", line 99, in runScreen
< 48891.9271>     self.openDialog(*eval(arg[1]))
< 48891.9271>   File "/usr/lib/enigma2/python/Screens/Menu.py", line 105, in openDialog
< 48891.9274>     self.session.openWithCallback(self.menuClosed, *dialog)
< 48891.9274>   File "/usr/lib/enigma2/python/StartEnigma.py", line 332, in openWithCallback
< 48891.9289>     dlg = self.open(screen, *arguments, **kwargs)
< 48891.9289>   File "/usr/lib/enigma2/python/StartEnigma.py", line 345, in open
< 48891.9294>     self.execBegin()
< 48891.9295>   File "/usr/lib/enigma2/python/StartEnigma.py", line 263, in execBegin
< 48891.9298>     c.execBegin()
< 48891.9298>   File "/usr/lib/enigma2/python/Screens/Screen.py", line 71, in execBegin
< 48891.9308>     x()
< 48891.9309>   File "/usr/lib/enigma2/python/Screens/SoftwareUpdate.py", line 144, in checkNetworkState
< 48891.9312>     self.trafficLight = feedsstatuscheck.getFeedsBool()
< 48891.9312>   File "/usr/lib/enigma2/python/Components/OnlineUpdateCheck.py", line 143, in getFeedsBool
< 48891.9323>     self.feedstatus = six.ensure_str(feedsstatuscheck.getFeedStatus())
< 48891.9323>   File "/usr/lib/enigma2/python/Components/OnlineUpdateCheck.py", line 93, in getFeedStatus
< 48891.9326>     if self.NetworkUp():
< 48891.9326>   File "/usr/lib/enigma2/python/Components/OnlineUpdateCheck.py", line 79, in NetworkUp
< 48891.9328>     sd.shutdown(socket.SHUT_RDWR)
< 48891.9329> OSError: [Errno 107] Transport endpoint is not connected
< 48891.9330> [ePyObject] (CallObject(<bound method ActionMap.action of <Components.ActionMap.HelpableActionMap object at 0xafb38ca0>>,('OkCancelActions', 'ok')) failed)
I recall a couple of occasions running earlier releases, when a python message popped up on the screen as the cron job checked for an update and the Internet connection happened to be down, but I have not had a crash like this where the box rebooted.
 
I get a different crash from menu/information/about/software update on 6.0.007 (Release).

Vix and plugin downloads don't crash.

Code:
10:26:52.2183 [InfoBarGenerics] Key: 400 (Make) KeyID='KEY_YELLOW' Binding='('YELLOW',)'.
10:26:52.6577 [eInputDeviceInit] 0 190 (400) 1
10:26:52.6582 [eRCDeviceInputDev] emit: 0
10:26:52.6603 [InfoBarGenerics] Key: 400 (Break) KeyID='KEY_YELLOW' Binding='('YELLOW',)'.
10:26:52.6608 [ActionMap] Keymap 'ColorActions' -> Action = 'yellow'.
10:26:52.6631 [Skin] Processing screen 'UpdatePlugin', position=(0, 0), size=(1920 x 1080) for module 'UpdatePlugin'.
10:26:52.6865 [Skin] Processing screen 'SimpleSummary' from list 'UpdatePluginSummary, ScreenSummary, UpdatePlugin_summary, SimpleSummary', position=(0, 0), size=(800 x 480) for module 'ScreenSummary'.
10:26:52.6880 [About] ifreq:  {'ifname': 'eth0'}
10:26:52.6922 [About] ifreq:  {'ifname': 'eth1'}
10:26:52.6960 [About] ifreq:  {'ifname': 'wlan0'}
10:26:52.6995 [About] ifreq:  {'ifname': 'wlan1'}
10:26:52.7032 [About] ifreq:  {'ifname': 'wlan2'}
10:26:52.7034 [About] ifreq:  {'ifname': 'wlan3'}
10:26:52.7070 [About] ifreq:  {'ifname': 'ra0'}
10:26:52.7070 [OnlineUpdateCheck][adapterAvailable] FAILED
10:26:52.7071 [OnlineUpdateCheck][getFeedStatus] ERROR: -3
10:26:52.7073 Traceback (most recent call last):
10:26:52.7074   File "/usr/lib/enigma2/python/Components/ActionMap.py", line 60, in action
10:26:52.7085     res = self.actions[action]()
10:26:52.7085   File "/usr/lib/enigma2/python/Screens/About.py", line 195, in showUpdatePlugin
10:26:52.7096     self.session.open(UpdatePlugin)
10:26:52.7096   File "/usr/lib/enigma2/python/StartEnigma.py", line 345, in open
10:26:52.7102     self.execBegin()
10:26:52.7102   File "/usr/lib/enigma2/python/StartEnigma.py", line 263, in execBegin
10:26:52.7107     c.execBegin()
10:26:52.7107   File "/usr/lib/enigma2/python/Screens/Screen.py", line 71, in execBegin
10:26:52.7117     x()
10:26:52.7118   File "/usr/lib/enigma2/python/Screens/SoftwareUpdate.py", line 144, in checkNetworkState
10:26:52.7127     self.trafficLight = feedsstatuscheck.getFeedsBool()
10:26:52.7128   File "/usr/lib/enigma2/python/Components/OnlineUpdateCheck.py", line 143, in getFeedsBool
10:26:52.7138     self.feedstatus = six.ensure_str(feedsstatuscheck.getFeedStatus())
10:26:52.7138   File "/usr/lib/python3.9/site-packages/six.py", line 935, in ensure_str
10:26:52.7158     raise TypeError("not expecting type '%s'" % type(s))
10:26:52.7159 TypeError: not expecting type '<class 'int'>'
10:26:52.7160 [ePyObject] (CallObject(<bound method ActionMap.action of <Components.ActionMap.ActionMap object at 0xafb8c1f0>>,('ColorActions', 'yellow')) failed)
 
Last edited:
Hi,

Code:
...
< 48891.9326>   File "/usr/lib/enigma2/python/Components/OnlineUpdateCheck.py", line 79, in NetworkUp
< 48891.9328>     sd.shutdown(socket.SHUT_RDWR)
< 48891.9329> OSError: [Errno 107] Transport endpoint is not connected
< 48891.9330> [ePyObject] (CallObject(<bound method ActionMap.action of <Components.ActionMap.HelpableActionMap object at 0xafb38ca0>>,('OkCancelActions', 'ok')) failed)
My suspicion is that this code line is unnecessary. Just closing the socket (which is the next line) should close everything about the socket.
 
or maybe related to this?

Code:
https://github.com/OpenViX/enigma2/commit/ddde2b256a92e1b54e2a3bcee7a8e62b8faf4367

all that does is use six to do same thing as decode
 
all that does is use six to do same thing as decode

so nothing to do with this?

Code:
10:26:52.7138   File "/usr/lib/python3.9/site-packages/six.py", line 935, in ensure_str
10:26:52.7158     raise TypeError("not expecting type '%s'" % type(s))
 
I get a different crash from menu/information/about/software update on 6.0.007 (Release).

Vix and plugin downloads don't crash.

Code:
...
10:26:52.7128   File "/usr/lib/enigma2/python/Components/OnlineUpdateCheck.py", line 143, in getFeedsBool
10:26:52.7138     self.feedstatus = six.ensure_str(feedsstatuscheck.getFeedStatus())
10:26:52.7138   File "/usr/lib/python3.9/site-packages/six.py", line 935, in ensure_str
10:26:52.7158     raise TypeError("not expecting type '%s'" % type(s))
10:26:52.7159 TypeError: not expecting type '<class 'int'>'
10:26:52.7160 [ePyObject] (CallObject(<bound method ActionMap.action of <Components.ActionMap.ActionMap object at 0xafb8c1f0>>,('ColorActions', 'yellow')) failed)
Well, getFeedStatus() doesn't know whether it should return an int or a str.
It has return -2 and return -3.
But also has return trafficLight (a str) and return "alien".
So it's definitely messed up.
 
Removing the commit I mentioned in post #5 doesn't help.
 
Last edited:
The initial error is no network, which is why Birdman is correct the feedcheck code provides a mixture of ints and strings.
So needs a fix, in the meantime the resolution is to probably attach a network
 
The initial error is no network, which is why Birdman is correct the feedcheck code provides a mixture of ints and strings.
So needs a fix, in the meantime the resolution is to probably attach a network
So this bug has obviously been there some time. I guess no one noticed because they have a network connection.

How do you do an online update without a network connection?
 
So this bug has obviously been there some time. I guess no one noticed because they have a network connection.

How do you do an online update without a network connection?

It is a bit of an edge case trying to check for an update while the Internet connection decides to go down. :)

As I mentioned, in previous builds when the cron job run an update check while the Internet had decided to disconnect, I got a popup with a python code warning about no network being available. This would not cause a reboot. I hadn't tried to run a manual check for an update in such circumstances to find out if the box would reboot. Thankfully the Internet is not down often, so this is not a big problem for me, but thought I'll post about it so it can be looked at in the round.
 
Background software update check is on by default and fails about 50 minutes after rebooting if there is no network.

Fortunately the box doesn't crash, the on screen message can be cancelled.

Code:
16:08:54.7291 [OnlineUpdateCheck][adapterAvailable] FAILED
16:08:54.7292 [OnlineUpdateCheck][getFeedStatus] ERROR: -3
16:08:54.7303 [Task] >>> Error: [<Components.Task.FailedPostcondition object at 0xafbb0388>]
16:08:54.7305 [Task] job Components.Task.Job name=OnlineVersionCheck #tasks=1 completed with [<Components.Task.FailedPostcondition object at 0xafbb0388>] in Components.Task.Task name=Checking for Updates...
16:08:54.7308 [Task] unrecoverable task failure
16:08:54.7309  OnlineVersionCheck
Error: [Failure instance: Traceback: <class 'TypeError'>: not expecting type '<class 'int'>'
/usr/lib/python3.9/threading.py:973:_bootstrap_inner
/usr/lib/python3.9/threading.py:910:run
/usr/lib/python3.9/site-packages/twisted/_threads/_threadworker.py:47:work
/usr/lib/python3.9/site-packages/twisted/_threads/_team.py:181:doWork
--- <exception caught here> ---
/usr/lib/python3.9/site-packages/twisted/python/threadpool.py:238:inContext
/usr/lib/python3.9/site-packages/twisted/python/threadpool.py:254:<lambda>
/usr/lib/python3.9/site-packages/twisted/python/context.py:118:callWithContext
/usr/lib/python3.9/site-packages/twisted/python/context.py:83:callWithContext
/usr/lib/enigma2/python/Components/OnlineUpdateCheck.py:260:JobStart
/usr/lib/enigma2/python/Components/OnlineUpdateCheck.py:143:getFeedsBool
/usr/lib/python3.9/site-packages/six.py:935:ensure_str
]16:08:54.7309
16:08:54.7332 [Skin] Processing screen 'MessageBoxSimple' from list 'MessageBoxSimple, MessageBox', position=(480, 532), size=(960 x 15) for module 'MessageBox'.
16:08:54.7463 [Screen] Warning: Skin is missing element 'icon' in <class 'Screens.MessageBox.MessageBox'>(OnlineVersionCheck
Error: [Failure instance: Traceback: <class 'TypeError'>: not expecting type '<class 'int'>'
/usr/lib/python3.9/threading.py:973:_bootstrap_inner
/usr/lib/python3.9/threading.py:910:run
/usr/lib/python3.9/site-packages/twisted/_threads/_threadworker.py:47:work
/usr/lib/python3.9/site-packages/twisted/_threads/_team.py:181:doWork
--- <exception caught here> ---
/usr/lib/python3.9/site-packages/twisted/python/threadpool.py:238:inContext
/usr/lib/python3.9/site-packages/twisted/python/threadpool.py:254:<lambda>
/usr/lib/python3.9/site-packages/twisted/python/context.py:118:callWithContext
/usr/lib/python3.9/site-packages/twisted/python/context.py:83:callWithContext
/usr/lib/enigma2/python/Components/OnlineUpdateCheck.py:260:JobStart
/usr/lib/enigma2/python/Components/OnlineUpdateCheck.py:143:getFeedsBool
/usr/lib/python3.9/site-packages/six.py:935:ensure_str
]).16:08:54.7472
16:08:54.7479 [Pixmap] setPixmapNum(3) failed! defined pixmaps: []
16:08:54.7524 [Skin] Processing screen 'MessageBoxSimple_summary' from list 'MessageBoxSimpleSummary, MessageBoxSummary, ScreenSummary, MessageBoxSimple_summary, MessageBox_summary, SimpleSummary', position=(0, 0), size=(800 x 480) for module 'ScreenSummary'.
16:08:54.7552 [Task] not retrying job.
16:09:53.3793 [eInputDeviceInit] 1 160 (352) 1
 
Background software update check is on by default and fails about 50 minutes after rebooting if there is no network.

Fortunately the box doesn't crash, the on screen message can be cancelled.

Code:
16:08:54.7291 [OnlineUpdateCheck][adapterAvailable] FAILED
16:08:54.7292 [OnlineUpdateCheck][getFeedStatus] ERROR: -3
16:08:54.7303 [Task] >>> Error: [<Components.Task.FailedPostcondition object at 0xafbb0388>]
16:08:54.7305 [Task] job Components.Task.Job name=OnlineVersionCheck #tasks=1 completed with [<Components.Task.FailedPostcondition object at 0xafbb0388>] in Components.Task.Task name=Checking for Updates...
16:08:54.7308 [Task] unrecoverable task failure
16:08:54.7309  OnlineVersionCheck
Error: [Failure instance: Traceback: <class 'TypeError'>: not expecting type '<class 'int'>'
/usr/lib/python3.9/threading.py:973:_bootstrap_inner
/usr/lib/python3.9/threading.py:910:run
/usr/lib/python3.9/site-packages/twisted/_threads/_threadworker.py:47:work
/usr/lib/python3.9/site-packages/twisted/_threads/_team.py:181:doWork
--- <exception caught here> ---
/usr/lib/python3.9/site-packages/twisted/python/threadpool.py:238:inContext
/usr/lib/python3.9/site-packages/twisted/python/threadpool.py:254:<lambda>
/usr/lib/python3.9/site-packages/twisted/python/context.py:118:callWithContext
/usr/lib/python3.9/site-packages/twisted/python/context.py:83:callWithContext
/usr/lib/enigma2/python/Components/OnlineUpdateCheck.py:260:JobStart
/usr/lib/enigma2/python/Components/OnlineUpdateCheck.py:143:getFeedsBool
/usr/lib/python3.9/site-packages/six.py:935:ensure_str
]16:08:54.7309
16:08:54.7332 [Skin] Processing screen 'MessageBoxSimple' from list 'MessageBoxSimple, MessageBox', position=(480, 532), size=(960 x 15) for module 'MessageBox'.
16:08:54.7463 [Screen] Warning: Skin is missing element 'icon' in <class 'Screens.MessageBox.MessageBox'>(OnlineVersionCheck
Error: [Failure instance: Traceback: <class 'TypeError'>: not expecting type '<class 'int'>'
/usr/lib/python3.9/threading.py:973:_bootstrap_inner
/usr/lib/python3.9/threading.py:910:run
/usr/lib/python3.9/site-packages/twisted/_threads/_threadworker.py:47:work
/usr/lib/python3.9/site-packages/twisted/_threads/_team.py:181:doWork
--- <exception caught here> ---
/usr/lib/python3.9/site-packages/twisted/python/threadpool.py:238:inContext
/usr/lib/python3.9/site-packages/twisted/python/threadpool.py:254:<lambda>
/usr/lib/python3.9/site-packages/twisted/python/context.py:118:callWithContext
/usr/lib/python3.9/site-packages/twisted/python/context.py:83:callWithContext
/usr/lib/enigma2/python/Components/OnlineUpdateCheck.py:260:JobStart
/usr/lib/enigma2/python/Components/OnlineUpdateCheck.py:143:getFeedsBool
/usr/lib/python3.9/site-packages/six.py:935:ensure_str
]).16:08:54.7472
16:08:54.7479 [Pixmap] setPixmapNum(3) failed! defined pixmaps: []
16:08:54.7524 [Skin] Processing screen 'MessageBoxSimple_summary' from list 'MessageBoxSimpleSummary, MessageBoxSummary, ScreenSummary, MessageBoxSimple_summary, MessageBox_summary, SimpleSummary', position=(0, 0), size=(800 x 480) for module 'ScreenSummary'.
16:08:54.7552 [Task] not retrying job.
16:09:53.3793 [eInputDeviceInit] 1 160 (352) 1

Not much help as the upper section is missing.
 

OpenViX Feeds Status

Back
Top