OneFolderApp / OneFolder

File explorer made for pictures
https://onefolder.app
GNU General Public License v3.0
248 stars 13 forks source link

Linux - ENOSPC: System limit for number of file watchers reached #93

Open Rareshp opened 2 months ago

Rareshp commented 2 months ago

Describe the bug (not sure if anything can be done in this project; this report is if anyone else needs this information) Under Linux, importing a folder with a few too many images results in many errors such as:

Error: ENOSPC: System limit for number of file watchers reached, watch 'FOLDER'
... stack trace

To Reproduce Simply import a folder with a lot of images. Tags are not relevant. Amount is.

OneFolder version

Desktop OS

Additional context As per this it is stated to increase the max number of watches. Then the problem goes away.

$ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
$ sudo sysctl -p
## check that the new value was applied
cat /proc/sys/fs/inotify/max_user_watches
Antoine-lb commented 2 months ago

Thank you very much for this!

Just for the record, how many pictures are we talking about?

Rareshp commented 2 months ago

20k; might have something to do with many folders.