OneFolder icon indicating copy to clipboard operation
OneFolder copied to clipboard

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

Open Rareshp opened this issue 1 year ago • 2 comments

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

  • e.g. v1.0.2 (you can find this in the about menu or in the name of the installer file)

Desktop OS

  • Manjaro Linux

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

Rareshp avatar Aug 27 '24 10:08 Rareshp

Thank you very much for this!

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

Antoine-lb avatar Aug 28 '24 13:08 Antoine-lb

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

Rareshp avatar Aug 29 '24 12:08 Rareshp