Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Rareshp opened this issue Aug 27, 2024 · 2 comments
Open

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

Rareshp opened this issue Aug 27, 2024 · 2 comments

Comments

@Rareshp
Copy link

Rareshp commented Aug 27, 2024

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
@Antoine-lb
Copy link
Contributor

Thank you very much for this!

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

@Rareshp
Copy link
Author

Rareshp commented Aug 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants