lorri icon indicating copy to clipboard operation
lorri copied to clipboard

Lorri hangs; logs: Too many open files

Open nyarly opened this issue 2 years ago • 2 comments

Describe the bug

Periodically, Lorri will hang, without returning anything to requests (which e.g. blocks my shell prompt :/).

Logs report INFO Failed accepting a client connection, accept_error: Accept(Os { code: 24, kind: Uncategorized, message: "Too many open files" })

To Reproduce

Run Lorri long enough (? 48 hours) lorri internal stream-events --kind snapshot never returns.

Expected behavior

Lorri should have accept_errors

$ lorri info --shell-file shell.nix
lorri version: 1.5
GC roots exist, shell_gc_root: /home/judson/.cache/lorri/gc_roots/c92f309c54f033fb255ee1e6878ad199/gc_root/shell_gc_root
$ uname -a
Linux neumann 5.10.94 #1-NixOS SMP Thu Jan 27 09:54:36 UTC 2022 x86_64 GNU/Linux

nyarly avatar Apr 07 '22 17:04 nyarly

Part of the fix here would be to have stream-events time out after ~100ms (or wrap my call to it in a timeout...), but I worry that the error may suggest that Lorri isn't building either.

nyarly avatar Apr 07 '22 17:04 nyarly

glad I'm not the only one running into this! I thought this was caused by me running lorri internal stream-events --kind snapshot on every prompt, rather than strictly a time-based thing, but I don't actually know if that's the case.

sersorrel avatar Apr 12 '22 15:04 sersorrel