EMPFILE: too many open files

Debian 12.
Cinammon.
Obsidian 1.5.3

After starting the OpenToDo List from Flatpak, Obsidian does not start with the message: “EMFILE: too many open files”.
If i close OpenTodoList, Obsidian works correctly. It’s magic.

Moved to help

I’m answering myself. That error appear because inotify kernel subsystem.
To solve it, you need to add next lines to /etc/sysctl.conf or in any /etc/sysctl.d/*.conf file:

fs.inotify.max_user_watches = 524288
fs.inotify.max_user_instances = 1024

and execute command in shell (you need to be root):
sysctl --system # kernel going to re-read system.conf and /etc/system.d/*.conf

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.