How to fix: The configured user limit (128) on the number of inotify instances has been reached, or the per-process limit on the number of open file descriptors has been reached

Do you want to: Suggest a feature / Report a bug / Ask a how-to question
For feature suggestions, describe the result you would like to achieve in detail.
For bug reports, provide the steps to reproduce and if possible a minimal demo of the problem.
DocSpace version: latest
Type of installation of the DocSpace (docker, deb/rpm, exe, please point us to the installation guide that you used as well):
OS: ubuntu 24
Browser version: firefox latest
Additional information:
Any relevant details about the situation. If you’ve modified configuration files or are using a proxy server that might affect the situation, please mention it. You can also attach images and videofile to the post (or to place them to external storage)

See error below. Would like to know how to fix this.

Unhandled exception. System.IO.IOException: The configured user limit (128) on the number of inotify instances has been reached, or the per-process limit on the number of open file descriptors has been reached.

at System.IO.FileSystemWatcher.StartRaisingEvents()

at Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher.TryEnableFileSystemWatcher()

at Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher.CreateFileChangeToken(String filter)

at Microsoft.Extensions.Primitives.ChangeToken.ChangeTokenRegistration1..ctor(Func1 changeTokenProducer, Action`1 changeTokenConsumer, TState state)

at Microsoft.Extensions.Primitives.ChangeToken.OnChange(Func`1 changeTokenProducer, Action changeTokenConsumer)

at Microsoft.Extensions.Configuration.FileConfigurationProvider…ctor(FileConfigurationSource source)

at Microsoft.Extensions.Configuration.Json.JsonConfigurationSource.Build(IConfigurationBuilder builder)

at Microsoft.Extensions.Configuration.ConfigurationManager.AddSource(IConfigurationSource source)

at Microsoft.Extensions.Configuration.ConfigurationManager.Microsoft.Extensions.Configuration.IConfigurationBuilder.Add(IConfigurationSource source)

at ASC.Api.Core.Extensions.ConfigurationManagerExtension.AddDefaultConfiguration(ConfigurationManager config, IHostEnvironment env)

at Program.$(String args)

at Program.(String args)

Aborted (core dumped)

Hi @applesoff :wave:
I’m not entirely sure what specific error you’re encountering while working with DocSpace.

However, you might find the following Stack Overflow article helpful:
ASP.NET Core: The configured user limit (128) on the number of inotify instances.