watch: error code 134 with IOException on Fedora 43
- Dominant language
- C#
- Stars
- 3.2k
- Forks
- 1.3k
- PR merge metrics
- PR metrics pending
Description
### Describe the bug
Trying to run a C# project with `dotnet watch` on a clean install of Fedora 43 Workstation does not work.
### To Reproduce
Run any .NET project on Fedora 43 Workstation with `dotnet watch`
### Exceptions (if any)
```text
dotnet watch ❌ [MyProject.API (net10.0)] Exited with error code 134
dotnet watch ❌ An unexpected error occurred: 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.DotNet.Watch.EventBasedDirectoryWatcher.set_EnableRaisingEvents(Boolean value)
at Microsoft.DotNet.Watch.FileWatcher.Watch(IEnumerable`1 filePaths, Boolean containingDirectories, Boolean includeSubdirectories)
at Microsoft.DotNet.Watch.FileWatcher.WatchFiles(IEnumerable`1 filePaths)
at Microsoft.DotNet.Watch.EvaluationResult.WatchFiles(FileWatcher fileWatcher)
at Microsoft.DotNet.Watch.HotReloadDotNetWatcher.WaitForFileChangeBeforeRestarting(FileWatcher fileWatcher, EvaluationResult evaluationResult, CancellationToken cancellationToken)
at Microsoft.DotNet.Watch.HotReloadDotNetWatcher.WatchAsync(CancellationToken shutdownCancellationToken)
at Microsoft.DotNet.Watch.Program.RunAsync()
```
### Further technical details
details of dotnet --info
.NET SDK:
Version: 10.0.104
Commit: 80d3e14f5e
Workload version: 10.0.100-manifests.c7707153
MSBuild version: 18.0.11+80d3e14f5
Runtime Environment:
OS Name: fedora
OS Version: 43
OS Platform: Linux
RID: fedora.43-x64
Base Path: /usr/lib64/dotnet/sdk/10.0.104/
.NET workloads installed:
There are no installed workloads to display.
Configured to use workload sets when installing new manifests.
No workload sets are installed. Run "dotnet workload restore" to install a workload set.
Host:
Version: 10.0.4
Architecture: x64
Commit: 80d3e14f5e
.NET SDKs installed:
8.0.124 [/usr/lib64/dotnet/sdk]
9.0.114 [/usr/lib64/dotnet/sdk]
10.0.104 [/usr/lib64/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.24 [/usr/lib64/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.13 [/usr/lib64/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 10.0.4 [/usr/lib64/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.24 [/usr/lib64/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.13 [/usr/lib64/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 10.0.4 [/usr/lib64/dotnet/shared/Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
DOTNET_BUNDLE_EXTRACT_BASE_DIR [/home/corne/.cache/dotnet_bundle_extract]
DOTNET_ROOT [/usr/lib64/dotnet]
global.json file:
Not found
- The IDE (VS / VS Code/ VS4Mac) you're running on, and its version
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the failure by running any .NET project with `dotnet watch` on a clean Fedora 43 Workstation install. Start with the `Microsoft.DotNet.Watch.FileWatcher` and `EventBasedDirectoryWatcher` stack-trace entries, and consider the issue done when the command no longer exits with code 134 or the reported IOException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, fedora, linux
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 42/100