balena-os / balenahup

BALENA Host os UPdater
https://balena.io/
36 stars 11 forks source link

HUP fails and wrongly considers an image was not downloaded #375

Open majorz opened 2 years ago

majorz commented 2 years ago

HUP attempted to use deltas:

[000000005][LOG]Attempting host OS update using deltas
[000000010][LOG]Found delta image: registry2.balena-cloud.com/v2/246744c0a74ef70399cd4724fe767e1e:delta-16747b36bb916691, size: 184 MB

Then it was successful with the delta download:

Status: Downloaded newer image for registry2.balena-cloud.com/v2/246744c0a74ef70399cd4724fe767e1e:delta-16747b36bb916691

But then immediately it reports that failed:

[000000261][LOG]Image type delta, location 'registry2.balena-cloud.com/v2/246744c0a74ef70399cd4724fe767e1e:delta-16747b36bb916691' failed or not found, trying another source

Then it restarted the process (that failed in a similar way on the next try as well):

[000000261][LOG]Running pre-update fixes for raspberrypi3

I tried a manual update afterwards (with good network connectivity) and initially the script run into the same issue and on the second try for some reason it succeeded.

Here is the whole snipped from the failure:

[000000000][LOG]Raw target version: 2.98.33
[000000001][LOG]Loading info from config.json
[000000003][LOG]Target version supports hostapps, no device type support check required.
[000000003][LOG]Target OS version "2.98.33" OK.
[000000003][LOG]OS variant: 2.51.1
[000000003][LOG]Host OS version "2.51.1+rev1" OK.
[000000005][LOG]Attempting host OS update using deltas
[000000010][LOG]Found delta image: registry2.balena-cloud.com/v2/246744c0a74ef70399cd4724fe767e1e:delta-16747b36bb916691, size: 184 MB
[000000010][LOG]No resin-device-progress fix is required...
[000000010][LOG]No supervisor updater fix is required...
[000000010][LOG]hostapp-update command exists, use that for update
[000000015][LOG]Running pre-update fixes for raspberrypi3
Removing start_db.elf from boot partition
Removing fixup_db.dat from boot partition
[000000015][LOG]Starting hostapp-update
delta-16747b36bb916691: Pulling from v2/246744c0a74ef70399cd4724fe767e1e
071c61aa415c: Pulling fs layer
071c61aa415c: Ready to download
071c61aa415c: Pull complete
Digest: sha256:c1ad5b90b4bfc1028597668bc4eff7fbfeefaf6b7cc5f499ba855b1c187f21d4
Status: Downloaded newer image for registry2.balena-cloud.com/v2/246744c0a74ef70399cd4724fe767e1e:delta-16747b36bb916691
registry2.balena-cloud.com/v2/246744c0a74ef70399cd4724fe767e1e:delta-16747b36bb916691
[000000261][LOG]Image type delta, location 'registry2.balena-cloud.com/v2/246744c0a74ef70399cd4724fe767e1e:delta-16747b36bb916691' failed or not found, trying another source
[000000261][LOG]Running pre-update fixes for raspberrypi3
...
jellyfish-bot commented 2 years ago

[majorz] This has attached https://jel.ly.fish/b6b2a365-5c1d-4eef-91e0-f5462aee248e

jellyfish-bot commented 2 years ago

[majorz] This has attached https://jel.ly.fish/81f837b0-5948-462d-98fd-58abb39beeda