Skip to content

update-locatedb fails on watcher-bench manydirs fixture (too many open files) and trips switch failure reporting #10589

Closed

Description

@dezren39

Problem

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions