Hello Toradex team,
I hope you are all doing great! And thank you for your support.
On all our devices, on Torizon OS 7 and on TorizonCore 6, aktualizr-torizon logs this warning twice on every update check:
aktualizr-torizon[1676]: Invalid role in root.json
aktualizr-torizon[1676]: Invalid role in root.json
aktualizr-torizon[1676]: Event: UpdateCheckComplete, Result - No updates available
Update checks, updates and Remote Access all work fine. We think the warning is harmless, but we would like to be sure, and we cannot silence it on our side. We think we found the cause.
Hardware:
- SoM Verdin iMX8M Plus Quad 4GB WB IT V1.1A
- Custom Carrier Board based on Verdin
uname:
- Torizon OS 7:
6.6.157-7.8.0 #1-Torizon SMP PREEMPT Fri Sep 25 14:06:41 UTC 2026 aarch64 - TorizonCore 6:
5.15.209-6.8.9+git.3342fc7bf0a9 #1-TorizonCore SMP PREEMPT Thu Jun 18 14:03:37 UTC 2026 aarch64
Images tested:
torizon-docker-verdin-imx8mp-Tezi_7.8.0+build.60.tar, customized with TorizonCore Builder.aktualizr-torizon --version:tdx-e280c6286torizon-core-docker-verdin-imx8mp-Tezi_6.8.9+build.46.tar, customized with TorizonCore Builder.aktualizr-torizon --version:tdx-c26964481
Both on Torizon Cloud, with Remote Access enabled.
What we found:
- The Director
root.jsonof our Torizon Cloud repository has five roles:root,snapshot,targets,timestampandremote-sessions. We read it fromdirector/root.jsonin our provisioningshared-data.tar.gz. The image repositoryroot.jsonhas only the first four. - aktualizr knows only six role names:
root,snapshot,targets,timestamp,offline-snapshotandoffline-updates(role.cc). Any other name becomeskInvalidRole. - For that role,
MetaWithKeys::ParseRolelogs the warning and returns (metawithkeys.cc). So the role is skipped, and nothing else happens. TheLOG_TRACEline after it printsinvalidrole, not the real name, so even at trace level the log does not say which role it is. - It comes twice per check because
initRootparses the Director root twice, once for the format check and once for the signature check against itself (uptanerepository.cc). Each parse runs the role loop (root.cc). remote-sessionsis the role that the Remote Access Client uses for its signed session metadata (load_remote_sessionsintorizon/rac). So the role must stay, and anyway the Director root is managed by Torizon Cloud, not by us.e280c628is still the head oftoradex-masterand theSRCREVofaktualizr-torizon_git.bbonscarthgap-7.x.y. So no newer aktualizr changes this.- We cannot filter the line in journald.
LogFilterPatterns=needs PCRE2, and the systemd of Torizon OS 7.8.0 is built without it (-PCRE2insystemctl --version). aktualizr writes plain lines to stdout with no priority, soLogLevelMax=cannot select it either.[logger] loglevel = 4would hide it, but it would also hide every info line and every other warning.
The same line is in many logs posted on this forum, for example in OTA Update Torizon OS 6.2.0 to 6.3.0 fails (2023) and in Aktualizr d-bus api CheckForUpdates succeeds but ConsentRequired returns empty (2026). It looks like an error to anyone who reads the log.
Questions:
- Can you confirm that this warning is harmless, and that skipping the
remote-sessionsrole has no effect on the verification of updates? - Could aktualizr-torizon know
remote-sessionsas a role name, or log the roles it does not use at debug level instead of warning? If a message stays, could it give the real role name? - If yes, in which Torizon OS 7 release could we expect it?
Our plan for now: we leave it as it is, and we do not filter it on our side.
I can share the full logs if useful.
Best regards,
M