Repository navigation
π fix: postbox install waits for bootout, and status counts the daemon's open files - #89
Merged
Merged
Conversation
β¦n's open files The postbox daemon stopped answering (RESOURCE_BUSY, "Too many open files") because `am` 0.3.36 leaks sqlite handles on its store β 234 of 258 open after five days β and this machine's LaunchAgent predated the 4096 limit, so it still ran on launchd's 256. Nothing said so: status reported the daemon loaded and answering right up to the failure. `status` now prints open handles against the limit the installed plist actually carries, names a plist that predates the limit, and warns past 80%. And rerunning `postbox install` to pick the limit up failed with "Bootstrap failed: 5: Input/output error", leaving nothing loaded: bootout returns before launchd has torn the job down, and the bootstrap landed in that window. It now waits (up to 5 s) for the job to be gone. Reported by the eda-tools session over postbox. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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.
What
The postbox daemon stopped answering with
RESOURCE_BUSY/ "Too many open files". Two causes:am0.3.36 leaks sqlite handles on its store. The eda-tools session found 234 of 258 handles open after five days.Nothing warned before it failed.
postbox statusnow prints afiles:line: open handles against the limit in the installed plist. It names a plist that predates the limit and warns past 80%.postbox installnow waits forlaunchctl bootoutto finish beforebootstrap. Rerunning install to pick up the limit failed with "Bootstrap failed: 5: Input/output error" and left the job unloaded. Bootout returns before launchd has torn the job down, and the bootstrap landed in that window.Verified
bats tests/postbox.bats: 53 pass, including 2 new tests (bootout wait ordering; files line with current, over-80% and stale-plist cases).postbox statuson this machine:files: 76 open of 4096. That's up from 32 fifteen minutes earlier, so the leak is still active.amproject: not filed.π€ Generated with Claude Code