This article is a mirror article of machine translation, please click here to jump to the original article.

View: 5568|Reply: 1

[Source] The configured user limit (128) on the number of inotify instances has ...

[Copy link]
Posted on 10/30/2022 3:07:32 PM | | | |
ASP.NET Core 6 error running on Linux error is as follows:

== APP == 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.
== APP ==    at System.IO.FileSystemWatcher.StartRaisingEvents()
== APP ==    at System.IO.FileSystemWatcher.StartRaisingEventsIfNotDisposed()
== APP ==    at System.IO.FileSystemWatcher.set_EnableRaisingEvents(Boolean value)
== APP ==    at Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher.TryEnableFileSystemWatcher()
== APP ==    at Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher.CreateFileChangeToken(String filter)
== APP ==    at Microsoft.Extensions.FileProviders.PhysicalFileProvider.Watch(String filter)
== APP ==    at Microsoft.Extensions.Configuration.FileConfigurationProvider. <.ctor>b__1_0()
== APP ==    at Microsoft.Extensions.Primitives.ChangeToken.OnChange(Func`1 changeTokenProducer, Action changeTokenConsumer)
== APP ==    at Microsoft.Extensions.Configuration.FileConfigurationProvider.. ctor(FileConfigurationSource source)
== APP ==    at Microsoft.Extensions.Configuration.Json.JsonConfigurationSource.Build(IConfigurationBuilder builder)
== APP ==    at Microsoft.Extensions.Configuration.ConfigurationManager.AddSource(IConfigurationSource source)
== APP ==    at Microsoft.Extensions.Configuration.ConfigurationManager.Microsoft.Extensions.Configuration.IConfigurationBuilder.Add(IConfigurationSource source)
== APP ==    at Microsoft.Extensions.Configuration.ConfigurationExtensions.Add[TSource](IConfigurationBuilder builder, Action`1 configureSource)
== APP ==    at Microsoft.Extensions.Configuration.JsonConfigurationExtensions.AddJsonFile(IConfigurationBuilder builder, IFileProvider provider, String path, Boolean optional, Boolean reloadOnChange)
== APP ==    at Microsoft.Extensions.Configuration.JsonConfigurationExtensions.AddJsonFile(IConfigurationBuilder builder, String path, Boolean optional, Boolean reloadOnChange)
== APP ==    at Microsoft.Extensions.Hosting.HostingHostBuilderExtensions.<>c__DisplayClass11_0. <ConfigureDefaults>b__1(HostBuilderContext hostingContext, IConfigurationBuilder config)
== APP ==    at Microsoft.AspNetCore.Hosting.BootstrapHostBuilder.RunDefaultCallbacks(ConfigurationManager configuration, HostBuilder innerBuilder)
== APP ==    at Microsoft.AspNetCore.Builder.WebApplicationBuilder.. ctor(WebApplicationOptions options, Action`1 configureDefaults)
== APP ==    at Microsoft.AspNetCore.Builder.WebApplication.CreateBuilder(String[] args)
== APP ==    at UserCenter.Program.Main(String[] args) in E:\project\DaprDemo\UserCenter\Program.cs:line 10


The configured user limit on the number of inotify instances (128) has been reached, or the limit on the number of open file descriptors per process has been reached.

View the configuration of your current system:

Modify the configuration of fs.inotify.max_user_instances in /etc/sysctl.conf with the following command:

(End)




Previous:Dapr (1) Dapr introduction and installation tutorial
Next:Detailed explanation of the storage rules for Discuz attachment images, avatar pictures, and album images
Posted on 11/15/2022 6:26:27 PM |
Look at the joy of studying medicine
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com