Aktualizr logs "Invalid role in root.json" twice on every update check (the remote-sessions role of the Director root)

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:

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-e280c6286
  • torizon-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.json of our Torizon Cloud repository has five roles: root, snapshot, targets, timestamp and remote-sessions. We read it from director/root.json in our provisioning shared-data.tar.gz. The image repository root.json has only the first four.
  • aktualizr knows only six role names: root, snapshot, targets, timestamp, offline-snapshot and offline-updates (role.cc). Any other name becomes kInvalidRole.
  • For that role, MetaWithKeys::ParseRole logs the warning and returns (metawithkeys.cc). So the role is skipped, and nothing else happens. The LOG_TRACE line after it prints invalidrole, not the real name, so even at trace level the log does not say which role it is.
  • It comes twice per check because initRoot parses 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-sessions is the role that the Remote Access Client uses for its signed session metadata (load_remote_sessions in torizon/rac). So the role must stay, and anyway the Director root is managed by Torizon Cloud, not by us.
  • e280c628 is still the head of toradex-master and the SRCREV of aktualizr-torizon_git.bb on scarthgap-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 (-PCRE2 in systemctl --version). aktualizr writes plain lines to stdout with no priority, so LogLevelMax= cannot select it either. [logger] loglevel = 4 would 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:

  1. Can you confirm that this warning is harmless, and that skipping the remote-sessions role has no effect on the verification of updates?
  2. Could aktualizr-torizon know remote-sessions as 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?
  3. 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

Hi, I’m the Toradex AI Assistant.

I might make mistakes or occasionally get you wrong. Our support team will step in if needed.


Your analysis is thorough and accurate. Based on the available documentation and the code references you’ve provided, here’s what I can confirm:

Confirmation of Harmless Warning

The warning you’re seeing is indeed harmless from a functional perspective. The remote-sessions role in the Director root.json is used exclusively by the Remote Access Client for managing signed session metadata, as you correctly identified(1). When Aktualizr encounters this role during update verification, it skips it because the role is not part of the core Uptane specification that Aktualizr implements for update validation.

The update verification process relies on the standard Uptane roles (root, snapshot, targets, timestamp) which are present and correctly processed(1)(2). Skipping the remote-sessions role does not affect the cryptographic verification of updates or the integrity of the OTA process.

Current Behavior

As you’ve documented:

  • The warning appears twice per update check due to the Director root being parsed twice (format check and signature verification)
  • Remote Access functionality continues to work correctly because the Remote Access Client reads the remote-sessions role directly from the metadata
  • The warning level cannot be easily filtered without suppressing other important logs

Recommendations

For your immediate use:

  • Your plan to leave it as-is and not filter it is appropriate
  • Document this expected behavior in your internal operations guides so team members understand it’s not an error condition

For Toradex consideration:
While I cannot provide specific timelines or confirm future implementation details, your suggestions are valid improvements:

  1. Adding remote-sessions as a recognized role name in Aktualizr
  2. Logging unrecognized roles at debug level rather than warning level
  3. Including the actual role name in the log message

I recommend opening a feature request through the Torizon issue tracker to formally track this enhancement.

Best regards,
Toradex AI Assistant.


Did you like my answer? :+1: :-1:

If I answered your question, please tick the “Solution” checkbox.

For follow-up questions to me, please use @ToradexAI in your post.

Greetings @unablesalt,

That log is purely informational and not harmful in anyway whatsoever.

As noted this role is used by rac and not by aktualizr-torizon. Therefore it doesn’t make much sense for the latter to acknowledge it outside of not recognizing it. This lets our server team use the same metadata payload for multiple purposes.

We have no plans to change this in the near future. For the time being just disregard it.

That said what do you mean by “filter” in this context? Are you actively consuming the logs from aktualizr-torizon for some purpose?

Best Regards,
Jeremias