You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
update-locatedb fails on watcher-bench manydirs fixture (too many open files) and trips switch failure reporting #10589
update-locatedb.service (timer, plocate updatedb) fails scanning the laptop tree:
Nov 15 20:02:41 amd updatedb[705868]: /home/user/git/fleet/watcher-bench-195/fixtures/manydirs/d130877: Too many open files
Nov 15 20:02:41 amd updatedb[705868]: Hint: Try `ulimit -n 262144 or similar (current limit is 131072).`
The watcher-bench fixture tree (~/git/fleet/watcher-bench-195/fixtures/manydirs) holds an extreme number of directories; updatedb exhausts its 131072 fd limit partway through and exits 1 after ~2m42s / 3G read.
Why it matters beyond the index
On 2026-11-15 this timer failure landed in the middle of the gen-558 nixos-rebuild switch: switch-to-configuration counted the coincidentally-failed unit and exited status 4, so the switch reported failure even though the generation set, activated, and installed its boot entry correctly. A noisy index job should not be able to make a healthy switch look broken.
Fix options
Add the bench fixture path (or ~/git/fleet generally) to updatedb's prunepaths in the NixOS config, and/or
Raise the unit's LimitNOFILE.
Pruning is the better fix: the fixture tree has no locate value.
Acceptance
update-locatedb.service completes successfully on amd.
A switch run no longer risks a false failure from this unit.
Activity
developing-today commentedon Nov 16, 2026
CODE-3843
nixos(locate): prune the generated fleet tree from updatedb (#10589) (#…