Having the same issue here. Fresh install.
System: Ubuntu 21.04
File system: ZFS
file-max: 9223372036854775807
Home directory in a different partition:
→ zfs list|grep home
tank/data/home 773G 66.7G 244G /data/home
I downloaded and installed the .deb package and then ran:
→ obsidian
2022-03-09 11:59:32 Loading main app package /opt/Obsidian/resources/obsidian.asar
[2155504:0309/075932.803325:ERROR:proxy_config_service_linux.cc(614)] inotify_init failed: Too many open files (24)
[2155504:0309/075932.803466:ERROR:file_path_watcher_linux.cc(321)] inotify_init() failed: Too many open files (24)
[2155504:0309/075932.817086:ERROR:proxy_config_service_linux.cc(614)] inotify_init failed: Too many open files (24)
[2155564:0309/075932.842842:ERROR:file_path_watcher_linux.cc(321)] inotify_init() failed: Too many open files (24)
Error: unrecognized flag --always_compact
Try --help for options
2022-03-09 11:59:32 Checking for update using Github
2022-03-09 11:59:33 Success.
2022-03-09 11:59:33 Latest version is 0.13.31
2022-03-09 11:59:33 App is up to date.
Both trying to open the help or creating a new vault result in the application crashing with the following:
Error: EMFILE: too many open file
I deleted ~/.config/obsidian and downloaded the AppImage, with the same results:
→ ./Obsidian-0.13.31.AppImage
2022-03-09 12:01:39 Loading main app package /tmp/.mount_ObsidiQ66TKY/resources/obsidian.asar
[2157427:0309/080140.249380:ERROR:proxy_config_service_linux.cc(614)] inotify_init failed: Too many open files (24)
[2157427:0309/080140.254706:ERROR:file_path_watcher_linux.cc(321)] inotify_init() failed: Too many open files (24)
[2157427:0309/080140.403231:ERROR:proxy_config_service_linux.cc(614)] inotify_init failed: Too many open files (24)
2022-03-09 12:01:40 Checking for update using Github
[2157616:0309/080140.546633:ERROR:file_path_watcher_linux.cc(321)] inotify_init() failed: Too many open files (24)
Error: unrecognized flag --always_compact
Try --help for options
2022-03-09 12:01:40 Success.
2022-03-09 12:01:40 Latest version is 0.13.31
2022-03-09 12:01:40 App is up to date.
I don’t have issues with any other applications, including VSCode, which is also constantly watching the filesystem.
I tried to add the “–help” flag to see if there is a debug option, but nothing different happens.
Thanks.