OTA Update Torizon OS 6.2.0 to 6.3.0 fails

Dear Lucas,

I am trying to update from Torizon OS 6.2.0 to Torizon OS 6.3.0 (to have access to the remote shell) using the Torizon Nightly:

uname -a before the upgrade reports Linux apalis-imx8-14716872 5.15.77-6.2.0-devel+git.5ee7b429cf75 #1-TorizonCore SMP PREEMPT Fri Feb 17 12:53:14 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

The kirkstone 6.3.0 version I am trying to install is the following:

The installation fails on a libostree error as reported by sudo journalctl -f -u aktualizr* on the target:

Nov 22 17:03:41 apalis-imx8-14716872 aktualizr-torizon[1030]: libostree HTTP error from remote aktualizr-remote for <https://tzn-ota-tdxota.s3.amazonaws.com/ostree-repo/objects/43/68a421b4f05b88b18669f7bda38f0122fa8f26690ae5b0d81c96cf3e930f29.commit>: Server returned HTTP 403
Nov 22 17:03:41 apalis-imx8-14716872 aktualizr-torizon[1030]: Error while pulling image: 1 Server returned HTTP 403

The full logs (the beginning is not available) here after :

Nov 22 17:03:34 apalis-imx8-14716872 aktualizr-torizon[1030]: Invalid role in root.json
Nov 22 17:03:34 apalis-imx8-14716872 aktualizr-torizon[1030]: Invalid role in root.json
Nov 22 17:03:35 apalis-imx8-14716872 aktualizr-torizon[1030]: New updates found in Director metadata. Checking Image repo metadata...
Nov 22 17:03:38 apalis-imx8-14716872 aktualizr-torizon[1030]: 1 new update found in both Director and Image repo metadata.
Nov 22 17:03:38 apalis-imx8-14716872 aktualizr-torizon[1030]: Event: UpdateCheckComplete, Result - Updates available
Nov 22 17:03:38 apalis-imx8-14716872 aktualizr-torizon[1030]: Update available. Acquiring the update lock...
Nov 22 17:03:38 apalis-imx8-14716872 aktualizr-torizon[1030]: Invalid role in root.json
Nov 22 17:03:38 apalis-imx8-14716872 aktualizr-torizon[1030]: Invalid role in root.json
Nov 22 17:03:41 apalis-imx8-14716872 aktualizr-torizon[1030]: libostree HTTP error from remote aktualizr-remote for <https://tzn-ota-tdxota.s3.amazonaws.com/ostree-repo/objects/43/68a421b4f05b88b18669f7bda38f0122fa8f26690ae5b0d81c96cf3e930f29.commit>: Server returned HTTP 403
Nov 22 17:03:41 apalis-imx8-14716872 aktualizr-torizon[1030]: Error while pulling image: 1 Server returned HTTP 403
Nov 22 17:03:42 apalis-imx8-14716872 aktualizr-torizon[1030]: libostree HTTP error from remote aktualizr-remote for <https://tzn-ota-tdxota.s3.amazonaws.com/ostree-repo/objects/43/68a421b4f05b88b18669f7bda38f0122fa8f26690ae5b0d81c96cf3e930f29.commit>: Server returned HTTP 403
Nov 22 17:03:42 apalis-imx8-14716872 aktualizr-torizon[1030]: Error while pulling image: 1 Server returned HTTP 403
Nov 22 17:03:44 apalis-imx8-14716872 aktualizr-torizon[1030]: libostree HTTP error from remote aktualizr-remote for <https://tzn-ota-tdxota.s3.amazonaws.com/ostree-repo/objects/43/68a421b4f05b88b18669f7bda38f0122fa8f26690ae5b0d81c96cf3e930f29.commit>: Server returned HTTP 403
Nov 22 17:03:44 apalis-imx8-14716872 aktualizr-torizon[1030]: Error while pulling image: 1 Server returned HTTP 403
Nov 22 17:03:44 apalis-imx8-14716872 aktualizr-torizon[1030]: Download unsuccessful after 3 attempts.
Nov 22 17:03:44 apalis-imx8-14716872 aktualizr-torizon[1030]: Error downloading image: The target's calculated hash did not match the hash in the metadata.
Nov 22 17:03:44 apalis-imx8-14716872 aktualizr-torizon[1030]: Event: DownloadTargetComplete, Result - Error
Nov 22 17:03:44 apalis-imx8-14716872 aktualizr-torizon[1030]: 0 of 1 targets were successfully downloaded.
Nov 22 17:03:44 apalis-imx8-14716872 aktualizr-torizon[1030]: Event: AllDownloadsComplete, Result - Error
Nov 22 17:03:44 apalis-imx8-14716872 aktualizr-torizon[1030]: Event: PutManifestComplete, Result - Success
Nov 22 17:03:56 apalis-imx8-14716872 aktualizr-torizon[1030]: PROXY: sending device data to Torizon OTA.
Nov 22 17:03:56 apalis-imx8-14716872 aktualizr-torizon[1030]: Event: SendDeviceDataComplete

Did I miss a step ?

Best regards,
Fabian

Hi @fdortu ,

That’s strange. Does this issue happen with other nightly versions? Can you test with an update to a monthly or release version to see if that’s isolated to the nightly build?

Best regards,
Lucas Akira

Hi @fdortu ,

I talked to team about this and currently we keep nightly versions available in our OTA servers for one month. The one you’re trying to install is too old, so it’s most likely not present in our servers anymore.

You probably saw the old versions as an option because the metadata in the Web UI is outdated. Try updating the Torizon Nightly Package sources by clicking on the update icon next to it, then try updating to a newer nightly version.

Best regards,
Lucas Akira

Hi Lucas,

Great, I missed this refresh button actually. I can now see much more packages!

However, I already did the update manually (through Toradex Easy Installer) so I cannot test your solution.

Hi @fdortu ,

No problem. The team has updated how the metadata in the web UI is generated, so removed images should no longer appear as an option to be installed in the first place.

Best regards,
Lucas Akira

1 Like