Hi, I am running offline updates and the update/ folder is recognized as a valid update, but later it fails with the following message:
validateMetadata: bad config file extension [RE]
Loading of tarballs aborted!
Offline loading failed: Failed to load docker tarball 5c8d0b0d0a010e8e48d230ab255698e4cc654dad05c24fd0dd60929be26c51a7.tar
Event: AllInstallsComplete, Result - INSTALL_FAILED
I know that there is a TCB 3.12 known bug Torizon OS Issue Tracker and there is already a thread https://community.toradex.com/t/offline-updates-errors-in-docker-secondary-due-to-missing-metadata/, but I see the issue in the TCB 3.11 as well.
Here are the full logs
Aktualizr version tdx-d71f18a1 starting
Reading config: "/usr/lib/sota/conf.d/20-sota-device-cred.toml"
Reading config: "/usr/lib/sota/conf.d/30-rollback.toml"
Reading config: "/usr/lib/sota/conf.d/40-hardware-id.toml"
Reading config: "/usr/lib/sota/conf.d/50-secondaries.toml"
Reading config: "/usr/lib/sota/conf.d/60-polling-interval.toml"
Reading config: "/usr/lib/sota/conf.d/70-reboot.toml"
Reading config: "/etc/sota/conf.d/99-offline-updates.toml"
Use existing SQL storage: "/var/sota/sql.db"
Couldn`t import data: empty path received
Couldn't import client certificate: "/var/sota/import/client.pem" doesn't exist.
Couldn't import client TLS key: "/var/sota/import/pkey.pem" doesn't exist.
Initializing docker-compose Secondaries...
Use existing SQL storage: "/var/sota/storage/docker-compose/sql.db"
No valid metadata found in storage.
Adding Secondary with ECU serial: b54e9743578f3a85a05349167c36cbd50b16ba5bc015be65e0b93baa429211a1 with hardware ID: docker-compose
Initializing torizon-generic Secondaries...
Use existing SQL storage: "/var/sota/storage/bootloader/sql.db"
curl error 7 (http code 0): Couldn't connect to server
No valid metadata found in storage.
Adding Secondary with ECU serial: ff56c58aee29d65eb9ae3483ed055b2df8a958c05b95992a7ead20cf620dd429 with hardware ID: verdin-imx8mp-bootloader
Offline Updates are enabled
fetchMetaOffUpd() called with source_path: "/var/lib/docker/volumes/torizon_application/_data/update"
Current version for ECU ID: b54e9743578f3a85a05349167c36cbd50b16ba5bc015be65e0b93baa429211a1 is unknown
Current version for ECU ID: 70d27503aeaec3b221498b9fe8b58fe40fbe9f7874c20f8e69b632738f22892d is unknown
New updates found in Director metadata. Checking Image repo metadata...
2 new updates found in both Director and Image repo metadata.
Event: UpdateCheckComplete, Result - Updates available
Update available. Acquiring the update lock...
Current version for ECU ID: b54e9743578f3a85a05349167c36cbd50b16ba5bc015be65e0b93baa429211a1 is unknown
Current version for ECU ID: 70d27503aeaec3b221498b9fe8b58fe40fbe9f7874c20f8e69b632738f22892d is unknown
curl error 7 (http code 0): Couldn't connect to server
curl error 7 (http code 0): Couldn't connect to server
Image already fetched; skipping fetching
curl error 7 (http code 0): Couldn't connect to server
curl error 7 (http code 0): Couldn't connect to server
curl error 7 (http code 0): Couldn't connect to server
Event: DownloadTargetComplete, Result - Success
curl error 7 (http code 0): Couldn't connect to server
curl error 7 (http code 0): Couldn't connect to server
curl error 7 (http code 0): Couldn't connect to server
curl error 7 (http code 0): Couldn't connect to server
curl error 7 (http code 0): Couldn't connect to server
curl error 7 (http code 0): Couldn't connect to server
Event: DownloadTargetComplete, Result - Success
Event: AllDownloadsComplete, Result - Success
curl error 7 (http code 0): Couldn't connect to server
Current version for ECU ID: b54e9743578f3a85a05349167c36cbd50b16ba5bc015be65e0b93baa429211a1 is unknown
Current version for ECU ID: 70d27503aeaec3b221498b9fe8b58fe40fbe9f7874c20f8e69b632738f22892d is unknown
Waiting for Secondaries to connect to start installation...
curl error 7 (http code 0): Couldn't connect to server
Event: InstallStarted
curl error 7 (http code 0): Couldn't connect to server
docker-compose file matches expected digest
Loading metadata from tarball: "/var/lib/docker/volumes/torizon_application/_data/update/images/acae5b78faad5f7cd4fe6dfe77d9ce2bca384a434b694e68d05b85dae0f71af9.images/5c8d0b0d0a010e8e48d230ab255698e4cc654dad05c24fd0dd60929be26c51a7.tar"
curl error 7 (http code 0): Couldn't connect to server
curl error 7 (http code 0): Couldn't connect to server
curl error 7 (http code 0): Couldn't connect to server
Successfully loaded metadata from tarball: "/var/lib/docker/volumes/torizon_application/_data/update/images/acae5b78faad5f7cd4fe6dfe77d9ce2bca384a434b694e68d05b85dae0f71af9.images/5c8d0b0d0a010e8e48d230ab255698e4cc654dad05c24fd0dd60929be26c51a7.tar"
validateMetadata: bad config file extension [RE]
Loading of tarballs aborted!
Offline loading failed: Failed to load docker tarball 5c8d0b0d0a010e8e48d230ab255698e4cc654dad05c24fd0dd60929be26c51a7.tar
Event: AllInstallsComplete, Result - INSTALL_FAILED
Update install completed. Releasing the update lock...
curl error 7 (http code 0): Couldn't connect to server
curl error 7 (http code 0): Couldn't connect to server
curl error 7 (http code 0): Couldn't connect to server