Too many open files

Gunsmithy

Dabbler
Joined
Feb 17, 2016
Messages
11
Did you find any fix for this? I've just had this happen once so far as I've added a bunch of new applications to my SCALE server.
During startup of an application I get:

Code:
[custom-init] No custom services found, skipping...
failed to create fsnotify watcher: too many open files


Edit: I had a lot of disk activity at the time probably. The application was stuck on deploying for quite a while but eventually succeeded, presumably as file handles freed up.
 
Last edited:

radomirpolach

Explorer
Joined
Feb 13, 2022
Messages
71
Did you find any fix for this? I've just had this happen once so far as I've added a bunch of new applications to my SCALE server.
During startup of an application I get:

Code:
[custom-init] No custom services found, skipping...
failed to create fsnotify watcher: too many open files
Yes I set sysctl parameter:
fs.inotify.max_user_watches4962130
 

sgt_jamez

Explorer
Joined
Jul 30, 2021
Messages
88

vampirebyte

Dabbler
Joined
Nov 28, 2022
Messages
20
Even with this parameter set, I still get the error.

You might get into another limit in this sys group, here is what worked for us:
Code:
fs.inotify.max_user_watches = 699050
fs.inotify.max_user_instances = 10922
fs.inotify.max_queued_events = 1398101

Here is a script to calculate them keeping in mind the maximum RAM usage.
 
Top