Opencode mostly wrote a fix script for journald logs going missing
On machines that regenerate their machine ID at every boot, journalctl reported no journal files even though logs existed, because journald and journalctl end up looking in different directories. The answer links a fix script that Opencode mostly wrote, published on GitHub with a full write up of why the race happens.
How it works
- He works out the cause with Opencode: journald keeps the old machine ID directory while journalctl reads the new one
- Opencode mostly writes the fix script
- He publishes the script and the explanation on GitHub
- He posts it as the answer
Why it’s worth knowing
A confusing logging failure turned into a published, explained fix that other admins can run, with the agent doing most of the writing.
Where it’s from
Summarized from a public post on serverfault.com. See the original ↗