Hello Guest, if you are reading this it means you have not registered yet. Please take a second, Click here to register, and in a few simple steps you will be able to enjoy our community and use our OpenViX support section.

View Entry Info: Python reboots when checking for update with no network present

Category:
Possible Bug
What ViX Image build number are you using?
Please provide your ViX Team image build number. Menu > Information > About > Build number > ENTER THIS NUMBER e.g. 4.2.028
6.0.007
Have you tried a flash WITHOUT settings restore?
Have you tried this? PLEASE SELECT YES OR NO.
No
Have you tried a flash WITH settings restore?
Have you tried this? PLEASE SELECT YES OR NO.
No
Attachments
Page 1 of 4 123 ... LastLast
Results 1 to 15 of 49

Thread: Python reboots when checking for update with no network present

  1. #1

    Title
    Senior Member
    Join Date
    Nov 2017
    Posts
    201
    Thanks
    35
    Thanked 25 Times in 23 Posts

    Python reboots when checking for update with no network present

    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?
    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.
    Kind regards,

    Mick

  2. #2
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    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 by ccs; 24-01-22 at 11:35.

  3. #3
    twol's Avatar
    Title
    Moderator
    Join Date
    Apr 2012
    Posts
    8,415
    Thanks
    997
    Thanked 2,894 Times in 2,247 Posts
    probably this: https://github.com/oe-alliance/oe-al...ef38319c17c5f4

    note the comment for homebuilds ........ install on buildhost -> sudo apt install fakeroot
    Gigablue Quad 4K & UE 4K
    .........FBC Tuners:
    ------------------> GT-Sat unicable LNB to 1.5M dish(28.2E)
    ------------------> Gigablue unicable LNB to 80 cm dish(19.2E)
    .......................> FBC & DVB-S2X into 90cm dish (27.5W) Opticum robust Unicable LNB
    AX HD61, Edision Osmio 4K+, Zgemma H9Combo, Octagon SF8008 , gbtrio4k, h9se using unicable ports
    Zgemma H9 C/S into Giga4K

  4. #4
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,790
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    Quote Originally Posted by Mickkie View Post
    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.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  5. #5
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    Quote Originally Posted by twol View Post
    probably this: https://github.com/oe-alliance/oe-al...ef38319c17c5f4

    note the comment for homebuilds ........ install on buildhost -> sudo apt install fakeroot
    or maybe related to this?

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

  6. #6
    twol's Avatar
    Title
    Moderator
    Join Date
    Apr 2012
    Posts
    8,415
    Thanks
    997
    Thanked 2,894 Times in 2,247 Posts
    Quote Originally Posted by ccs View Post
    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
    Gigablue Quad 4K & UE 4K
    .........FBC Tuners:
    ------------------> GT-Sat unicable LNB to 1.5M dish(28.2E)
    ------------------> Gigablue unicable LNB to 80 cm dish(19.2E)
    .......................> FBC & DVB-S2X into 90cm dish (27.5W) Opticum robust Unicable LNB
    AX HD61, Edision Osmio 4K+, Zgemma H9Combo, Octagon SF8008 , gbtrio4k, h9se using unicable ports
    Zgemma H9 C/S into Giga4K

  7. #7
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    Quote Originally Posted by twol View Post
    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))

  8. #8
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,790
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    Quote Originally Posted by ccs View Post
    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.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  9. #9
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,790
    Thanks
    237
    Thanked 1,658 Times in 1,306 Posts
    This seems to be the source of the ensure_str problem:
    https://github.com/OpenViX/enigma2/c...75cd7fc14b9bcd
    Although there may well have been (similar/other) problems before that.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  10. #10
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    Removing the commit I mentioned in post #5 doesn't help.
    Last edited by ccs; 24-01-22 at 13:50.

  11. #11
    twol's Avatar
    Title
    Moderator
    Join Date
    Apr 2012
    Posts
    8,415
    Thanks
    997
    Thanked 2,894 Times in 2,247 Posts
    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
    Gigablue Quad 4K & UE 4K
    .........FBC Tuners:
    ------------------> GT-Sat unicable LNB to 1.5M dish(28.2E)
    ------------------> Gigablue unicable LNB to 80 cm dish(19.2E)
    .......................> FBC & DVB-S2X into 90cm dish (27.5W) Opticum robust Unicable LNB
    AX HD61, Edision Osmio 4K+, Zgemma H9Combo, Octagon SF8008 , gbtrio4k, h9se using unicable ports
    Zgemma H9 C/S into Giga4K

  12. #12
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,624
    Thanks
    2,006
    Thanked 4,951 Times in 3,272 Posts
    Quote Originally Posted by twol View Post
    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?
    Help keep OpenViX servers online.Please donate!

  13. #13
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,624
    Thanks
    2,006
    Thanked 4,951 Times in 3,272 Posts
    Quote Originally Posted by twol View Post
    probably this: https://github.com/oe-alliance/oe-al...ef38319c17c5f4

    note the comment for homebuilds ........ install on buildhost -> sudo apt install fakeroot
    I updated the build env about 5/6 days ago.

    Continual changes on OE-A mean no chance of another build for at least 2 weeks.

    Second time in a month the build has to start from zero.
    Help keep OpenViX servers online.Please donate!

  14. The Following User Says Thank You to Huevos For This Useful Post:

    Amiko UK (24-01-22)

  15. #14

    Title
    Senior Member
    Join Date
    Nov 2017
    Posts
    201
    Thanks
    35
    Thanked 25 Times in 23 Posts
    Quote Originally Posted by Huevos View Post
    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.
    Kind regards,

    Mick

  16. #15
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,277 Times in 1,089 Posts
    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

Page 1 of 4 123 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.