I try to update firmware
I have successfully update before. But recently it says
“Unable to initiate update
Please make sure the selected package is compatible with the selected device”
May be the problem is related to recent Debian update
In the dockerfile of my application App-client I’ve change
If I run
docker pull register/App-client
then application updated successfully, but by hand, not OTA.
How can I restore OTA updating?
It can’t be determined from the information you provided why the update failed.
Try this, on your device run
journalctl -f -u aktualizr*, this will provide the logs for the update client on the device. Now initiate an update to this device and see if you notice any errors or issues in the client logs as the update occurs.
$ journalctl -f -u aktualizr*
-- Logs begin at Thu 1970-01-01 00:00:08 UTC. --
Device ID: ...
Device Gateway URL: https://ota-ce.torizon.io
Certificate subject: ...
Certificate issuer: ...
Certificate valid from: ...
Current versions in storage and reported by OSTree do not match
Also, I have assign tags in dockerfile for application
and for Weston
FROM --platform=$IMAGE_ARCH torizon/$BASE_NAME:$IMAGE_TAG AS base
I’ve choose tags from the same date for compatibility
Then I created new fleet and add new package with the same docker-compose.yml
And update completes successfully.
What is the correct way to manage tags, versions, packages to avoid update fails?
This article has some information about the image tags and versioning. Does it help you?
You only sent a small part of the log, you need to capture the logs during an update attempt otherwise I can’t tell what is going on.