I’ve just tried to run the commands and it looks good. Is there a way to retrieve more information from aktualizr about the versions etc rather than getting only the message that there is an update available? Anyway it seems to be a nice workaround, thank you very much!
Here is the aktualizr-torizon once
command run logs (the flock is running in another opened shell and it has locked the aktualizr-lock file):
aktualizr-torizon once --loglevel 0
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"
Final configuration that will be used:
[logger]
loglevel = 0
[p11]
module = ""
pass = ""
uptane_key_id = ""
tls_ca_id = ""
tls_pkey_id = ""
tls_clientcert_id = ""
[tls]
server = "https://dgw.torizon.io"
server_url_path = "/usr/lib/sota/gateway.url"
ca_source = "file"
pkey_source = "file"
cert_source = "file"
[provision]
server = "https://dgw.torizon.io"
p12_password = ""
expiry_days = "36000"
provision_path = ""
device_id = ""
primary_ecu_serial = ""
primary_ecu_hardware_id = "verdin-imx8mp"
ecu_registration_endpoint = "https://dgw.torizon.io/director/ecus"
mode = "DeviceCred"
[uptane]
polling_sec = 300
director_server = "https://dgw.torizon.io/director"
repo_server = "https://dgw.torizon.io/repo"
key_source = "file"
key_type = "RSA2048"
force_install_completion = true
secondary_config_file = "/usr/lib/sota/secondaries.json"
secondary_preinstall_wait_sec = 600
enable_online_updates = false
enable_offline_updates = true
offline_updates_source = "/tmp/update"
[pacman]
type = "ostree"
os = ""
sysroot = ""
ostree_server = "https://dgw.torizon.io/treehub"
images_path = "/var/sota/images"
packages_file = "/usr/package.manifest"
fake_need_reboot = false
booted = "booted"
[storage]
type = "sqlite"
path = "/var/sota"
sqldb_path = "sql.db"
uptane_metadata_path = "metadata"
uptane_private_key_path = "ecukey.der"
uptane_public_key_path = "ecukey.pub"
tls_cacert_path = "root.crt"
tls_pkey_path = "pkey.pem"
tls_clientcert_path = "client.pem"
[import]
base_path = "/var/sota/import"
uptane_private_key_path = ""
uptane_public_key_path = ""
tls_cacert_path = "/usr/lib/sota/root.crt"
tls_pkey_path = "pkey.pem"
tls_clientcert_path = "client.pem"
[telemetry]
report_network = true
report_config = true
[bootloader]
rollback_mode = "uboot_masked"
reboot_sentinel_dir = "/var/run/aktualizr-session"
reboot_sentinel_name = "need_reboot"
reboot_command = "/usr/bin/touch /run/need-reboot"
Current directory: /var/rootdirs/home/root
Use existing SQL storage: "/var/sota/sql.db"
Couldn`t import data: empty path received
Root for image already present, not importing
Root for director already present, not importing
Initializing docker-compose Secondaries...
Use existing SQL storage: "/var/sota/storage/docker-compose/sql.db"
targets metadata not found in database
No valid metadata found in storage.
Adding Secondary with ECU serial: ba6bfd426bc29eed36fc66209e673bc6733828ebb4a9082bf540c88fae2c45a4 with hardware ID: docker-compose
Initializing torizon-generic Secondaries...
Use existing SQL storage: "/var/sota/storage/bootloader/sql.db"
Root metadata not found in database
No valid metadata found in storage.
Adding Secondary with ECU serial: d1972929a5d04fcf666ad3a2acd13d38e44ea1f89afe10152dd5b487f5cf24c3 with hardware ID: verdin-imx8mp-bootloader
Stashing ECU serials for hwid
No pending updates, continuing with initialization
Stashing ECU serials for hwid
All ECUs are already registered with the server.
Primary ECU serial: f7575a3b4e456f3ef820a90ff0a274ebe9fb56d42bcc09c04c8e28d87f6fd85f with hardware ID: verdin-imx8mp
Device ID: 1f840ace-8d5b-4c6a-a0e5-40f0e49c8f63
Device Gateway URL: https://dgw.torizon.io
Certificate subject: CN=1f840ace-8d5b-4c6a-a0e5-40f0e49c8f63
Certificate issuer: CN=ota-devices-CA
Certificate valid from: May 2 14:54:54 2024 GMT until: May 2 14:54:54 2124 GMT
... provisioned OK
Offline Updates are enabled
CheckAndInstallOffline: call CheckUpdatesOffline
fetchMetaOffUpd() called with source_path: "/tmp/update"
Getting ECU serials for hwid: LEN=3
New updates found in Director metadata. Checking Image repo metadata...
1 new update found in both Director and Image repo metadata.
Event: UpdateCheckComplete, Result - Updates available
Update available. Acquiring the update lock...
Unable to acquire lock: "/run/lock/aktualizr-lock"
Flushing report queue