Route runner.service stdout/stderr to serial console#13
Merged
Conversation
config.sh and run.sh output was going to the systemd journal inside the VM (invisible to us). Adding StandardOutput=journal+console sends it to ttyS0 so it lands in console.log where we can see why the runner exits. Also fixes Restart=never → Restart=no (never is not a valid specifier; systemd was already ignoring it and logging a warning). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Hi @guifranchi, We've found some issues with your Pull Request.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
config.shandrun.shoutput was being sent to the systemd journal inside the VM, invisible to us — the console log only showed systemd's own startup/shutdown messagesStandardOutput=journal+consoleandStandardError=journal+consoleso the runner's output appears inconsole.log(captured from Firecracker's stdout via ttyS0)Restart=never→Restart=no(neveris not a valid systemd restart specifier; systemd was already ignoring it and logging a warning at boot)Context
The VM boots, runner.service starts, and exits within ~2 seconds — triggering
ExecStopPost=+/usr/sbin/reboot. We can see the service starts successfully but can't see why it exits. This change makesconfig.sh/run.shoutput visible in the per-slotconsole.logfile so the next boot cycle will reveal the actual failure.