Skip to content

[Support]: Recent Beta Error - OSError: [Errno 24] Too many open files: #15704

Closed Answered by hawkeye217
Strider0 asked this question in General Support
Discussion options

You must be logged in to vote

This is a result of the SHM refactor for 0.15. You have a fairly large number of cameras, so you'll need to increase your file limits in your Docker compose file:

services:
  frigate:
    ...
    ulimits:
      nofile:
        soft: 65535
        hard: 65535

Alternatively, you can lower the number of frames in SHM per camera with an environment variable SHM_MAX_FRAMES. The default value is 50. Depending on your system speed, you may want to increase the max files with Docker rather than decrease the max frames with the env var.

You can get a shell in the Frigate container and run

lsof | grep shm | wc -l

to get an idea on how many open files you have.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Strider0
Comment options

@hawkeye217
Comment options

Answer selected by Strider0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment