Jump to content


Photo

Setup/Software Update leads to crash/hang

Solo2

  • Please log in to reply
61 replies to this topic

Re: Setup/Software Update leads to crash/hang #21 littlesat

  • PLi® Core member
  • 57,128 posts

+698
Excellent

Posted 25 December 2023 - 18:55

I have the idea that one time I experience it with a vu+ultimo 4K. Can you retry and then just wait. Here at that time it took minutes to get through it and then an update was performing fine. At that time I was thinking it could be a network or website performance issue but now I’m thinking it might be this…. No idea at the moment why.

Edited by littlesat, 25 December 2023 - 18:56.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Setup/Software Update leads to crash/hang #22 littlesat

  • PLi® Core member
  • 57,128 posts

+698
Excellent

Posted 25 December 2023 - 22:10

Thanks that you tried to reproduce it in the python’s console…. But I’m afraid that this does not lead to the spinner… but it is something else that needs also further investigations…

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Setup/Software Update leads to crash/hang #23 Dimitrij

  • PLi® Core member
  • 10,307 posts

+347
Excellent

Posted 26 December 2023 - 09:51

Maybe add timeout...

	def getLatestImageTimestamp(self):
		def gettime(url):
			try:
				print('[UpdatePlugin] Trying to fetch time from %s' % url)
				data = urlopen("%s/Packages.gz" % url, timeout=5)
				if data:
					return strftime("%Y-%m-%d %H:%M:%S", gmtime(timegm(data.info().getdate('Last-Modified')) - altzone))
				return ""
			except Exception as er:
				print('[UpdatePlugin] Error in get timestamp', er)
				return ""
		return sorted([gettime(open("/etc/opkg/%s" % file, "r").readlines()[0].split()[2]) for file in listdir("/etc/opkg") if not file.startswith("3rd-party") and file not in ("arch.conf", "opkg.conf", "picons-feed.conf")], reverse=True)[0]

 


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: Setup/Software Update leads to crash/hang #24 littlesat

  • PLi® Core member
  • 57,128 posts

+698
Excellent

Posted 26 December 2023 - 09:54

I remember somehow in the past there was a timeout. Now I have no idea why it was removed. 5 sec delay is also long. But then still there is something behind it that it cannot retrieve the information. It is also kind of obvious it suddenly pops up…

Edited by littlesat, 26 December 2023 - 09:58.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Setup/Software Update leads to crash/hang #25 VeryClear

  • Member
  • 22 posts

0
Neutral

Posted 26 December 2023 - 10:54

Here's another log. This time it resumed on its own normally, after a spinning wheel of 2-3 minutes.
 
I've assigned the Update check to a 'long-yellow' press. Should be irrelevant though, I've also tried without using the hotkey.

 

Spoiler



Re: Setup/Software Update leads to crash/hang #26 Dimitrij

  • PLi® Core member
  • 10,307 posts

+347
Excellent

Posted 26 December 2023 - 11:53

VeryClear

test

openPli 8.0 add  modified /usr/lib/enigma2/python/Screens/SoftwareUpdate.py

Save the old file SoftwareUpdate.pyо

 


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: Setup/Software Update leads to crash/hang #27 littlesat

  • PLi® Core member
  • 57,128 posts

+698
Excellent

Posted 26 December 2023 - 12:10

What did you change dimitrij?

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Setup/Software Update leads to crash/hang #28 Dimitrij

  • PLi® Core member
  • 10,307 posts

+347
Excellent

Posted 26 December 2023 - 12:14

What did you change dimitrij?

post 23


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: Setup/Software Update leads to crash/hang #29 littlesat

  • PLi® Core member
  • 57,128 posts

+698
Excellent

Posted 26 December 2023 - 12:17

I'm afraid just adding the timeout does not help... Seems in the new python 3 getdate does not exist or something like that. 


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Setup/Software Update leads to crash/hang #30 VeryClear

  • Member
  • 22 posts

0
Neutral

Posted 26 December 2023 - 13:08

So, no need to try what Dimitrij suggested?



Re: Setup/Software Update leads to crash/hang #31 littlesat

  • PLi® Core member
  • 57,128 posts

+698
Excellent

Posted 26 December 2023 - 13:09

Please try what Dimar suggested.... better than wait for new builds.


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Setup/Software Update leads to crash/hang #32 VeryClear

  • Member
  • 22 posts

0
Neutral

Posted 26 December 2023 - 17:58

Ok, just flashed v8 but wasn't there an attached file in Dimitrij's post? Not seeing it any more.



Re: Setup/Software Update leads to crash/hang #33 boolean

  • Senior Member
  • 215 posts

+2
Neutral

Posted 27 December 2023 - 05:33

littlesat already made the appropriate changes and also changed "getdate" to "get". I'm guessing the next nightly will contain this change, which should be finished around 27-12-2023 08:03 UTC.



Re: Setup/Software Update leads to crash/hang #34 Dimitrij

  • PLi® Core member
  • 10,307 posts

+347
Excellent

Posted 27 December 2023 - 10:54

it not work

>>> url = 'http://downloads.openpli.org/feeds/openpli-develop/all'
>>> data = urlopen("%s/Packages.gz" % url, timeout=1).info().get('Last-Modified')
>>> data
'Wed, 27 Dec 2023 08:48:12 GMT'
data - altzone

Edited by Dimitrij, 27 December 2023 - 11:20.

GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: Setup/Software Update leads to crash/hang #35 Tech

  • Forum Moderator
    PLi® Core member
  • 14,917 posts

+486
Excellent

Posted 27 December 2023 - 11:40

Build fails with the latest commit https://github.com/O...job/19977511168

 

You need to install an extra package by CLi 'opkg install enigma-info'


Aan de rand van de afgrond is een stap voorwaarts niet altijd vooruitgang....

On the edge of the abyss, a step forward is not always progress....

Hardware: 2x Daily used Vu+ Ultimo 4K - Vu+ Duo 4K SE and a lot more.... - VisioSat BiBigsat - Jultec Unicable Multiswitch 4 positions: 19.2/23.5/28.2 East - Diseqc motorized flatdish antenna

Software : HomeBuild OpenPLi Develop and Scarthgap builds, local cards driven by OsCam

Press the Geplaatste afbeelding button on the buttom right of this message ;)

Have you tried our wiki yet? Many answers can be found in our OpenPLi wiki


Re: Setup/Software Update leads to crash/hang #36 Dimitrij

  • PLi® Core member
  • 10,307 posts

+347
Excellent

Posted 27 December 2023 - 14:31

Maybe simple(return data)?

>>> url = 'http://downloads.openpli.org/feeds/openpli-develop/all'
>>> data = urlopen("%s/Packages.gz" % url, timeout=1).info().get('Last-Modified')
>>> data
'Wed, 27 Dec 2023 08:48:12 GMT'
return data

 


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: Setup/Software Update leads to crash/hang #37 littlesat

  • PLi® Core member
  • 57,128 posts

+698
Excellent

Posted 27 December 2023 - 15:09

What does not work at the getdata? I do not experience it here..... 


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Setup/Software Update leads to crash/hang #38 Dimitrij

  • PLi® Core member
  • 10,307 posts

+347
Excellent

Posted 27 December 2023 - 17:25

What does not work at the getdata? I do not experience it here..... 

This https://github.com/O...56e87353d55411b not work


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: Setup/Software Update leads to crash/hang #39 littlesat

  • PLi® Core member
  • 57,128 posts

+698
Excellent

Posted 27 December 2023 - 17:39

Wierd here it works as a charm…

Edited by littlesat, 27 December 2023 - 17:39.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Setup/Software Update leads to crash/hang #40 Dimitrij

  • PLi® Core member
  • 10,307 posts

+347
Excellent

Posted 27 December 2023 - 17:43

Wierd here it works as a charm…

message = _("Do you want to update your receiver?") + "\n"

or

message = _("Do you want to update your receiver to %s?") % latestImageTimestamp + "\n"

					latestImageTimestamp = self.getLatestImageTimestamp()
					if latestImageTimestamp:
						message = _("Do you want to update your receiver to %s?") % latestImageTimestamp + "\n"
					else:
						message = _("Do you want to update your receiver?") + "\n"
					message += "(" + (ngettext("%s updated package available", "%s updated packages available", self.total_packages) % self.total_packages) + ")"

 


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K




Also tagged with one or more of these keywords: Solo2

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users