Repository navigation
fix(camera_viz): read sender logs with journalctl --user-unit - #1547
gsalazarestr wants to merge 1 commit into
Conversation
`camera_viz.sh service-logs` ran `journalctl --user -u camera-streamer.service`, which only reads the user's own journal files. journald writes those only with persistent storage; on a Jetson AGX Thor without /var/log/journal the user service's logs live only in the system journal, so service-logs printed "No journal files were found." while the sender was running and logging. `journalctl --user-unit` matches the user unit in every journal the user can read (the default nvidia user is in adm), so it finds the logs in both cases. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Grecia Salazar Estrada <gsalazarestr@nvidia.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Description
Fixes nvbug 7111694
./camera_viz.sh service-logsrunsjournalctl --user -u camera-streamer.service -fon the robot.journalctl --useronly reads the user's own journalfiles, which journald writes only when persistent storage (
/var/log/journal) exists. On a Jetson AGX Thor without it, the user service's log lines areonly in the system journal, so
service-logsprintsNo journal files were found.while the sender is running and logging (service-statusshows thelines).
This switches to
journalctl --user-unit camera-streamer.service -f, which matches the user unit in every journal the user can read, so it works with andwithout persistent storage. It needs read access to the system journal (
admorsystemd-journal), which the defaultnvidiauser has.Type of change
Testing
On a Jetson AGX Thor sender (release/1.7.x, deployed with
./camera_viz.sh deploy, no/var/log/journal, usernvidiainadm):bash -npasses on the script. The line is identical onrelease/1.7.x, so the commit cherry-picks cleanly.Checklist
SKIP=check-copyright-year pre-commit run --all-filesgit commit -s) per the DCOSummary by CodeRabbit