"EMFILE: too many open files" after upgrading to 0.15.6

After upgrading to 0.15.6, Obsidian can’t open any vaults, showing the “An error occurred while loading Obsidian. EMFILE: too many open files, watch …” error message.

Console output is:

~/Programs/Obsidian/Obsidian-0.14.15.AppImage
2022-07-15 16:09:41 Loading updated app package /home/alex/.config/obsidian/obsidian-0.15.6.asar
[4451:0715/190942.574321:ERROR:file_path_watcher_linux.cc(321)] inotify_init() failed: Too many open files (24)
[4451:0715/190942.626681:ERROR:proxy_config_service_linux.cc(614)] inotify_init failed: Too many open files (24)
2022-07-15 16:09:42 Checking for update using Github
[4527:0715/190942.698753:ERROR:file_path_watcher_linux.cc(321)] inotify_init() failed: Too many open files (24)
2022-07-15 16:09:42 Success.
2022-07-15 16:09:42 Latest version is 0.15.6
2022-07-15 16:09:42 App is up to date.
[4523:0715/190942.846221:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.

Trying to switch to other vaults give the same error message.
OpenSuSe 15.4, previous Obsidian version worked Ok.

Alas, I can’t paste the debug info because I can’t start the Obsidian – it hangs with the error message.

DId you attempt to search the forum?

Shurely.
If you mean system file-max limitation – it’s not the case:

cat /proc/sys/fs/file-max
9223372036854775807

ulimit -Hn
524288

And, as I said, previous version of the Obsidian worked without problems.

1 Like

nothing changed on our side about this.

One more note:
after deleting the ~/.config/obsidian I managed to get to the “open\create vault” page, but obsidian hangs with the same error message even if I create a new empty vault.

It seems it can be reproduces only to one particular account on one particular PC. Most probably, some user configuration glitch.

Please, close the thread and sorry for trouble.

To be honest - I have been having the same issue on and off for the last three updates:
Currently on Kubuntu 22.04 on Appimage with a Folder size of 82.2Mb, 1184 files and 114 subfolders.

1 DISTRIB_ID=Ubuntu
2 DISTRIB_RELEASE=22.04
3 DISTRIB_CODENAME=jammy
4 DISTRIB_DESCRIPTION=“Ubuntu 22.04 LTS”
5 PRETTY_NAME=“Ubuntu 22.04 LTS”
6 NAME=“Ubuntu”
7 VERSION_ID=“22.04”
8 VERSION=“22.04 LTS (Jammy Jellyfish)”
9 VERSION_CODENAME=jammy
10 ID=ubuntu
11 ID_LIKE=debian
12 HOME_URL=“https://www.ubuntu.com/
13 SUPPORT_URL=“https://help.ubuntu.com/
14 BUG_REPORT_URL=“https://bugs.launchpad.net/ubuntu/
15 PRIVACY_POLICY_URL=“Data privacy | Ubuntu
16 UBUNTU_CODENAME=jammy

Regards

K

Just had the issue found this thread, the following fixed it for me:

echo 1024 > /proc/sys/fs/inotify/max_user_instances