inotify limit exceeded: FileSystemWatcher causing system errors
bekirk-c
TRIALOP

a year ago

error on deploy process: 'The configured user limit (8192) on the number of inotify instances has been reached, or the per-process limit on the number of open file descriptors has been reached.'
This is likely due to our use of FileSystemWatcher in a .NET application. We need assistance in either increasing the inotify limits or guidance on alternative approaches to monitor file system changes within the Railway environment. Could you please advise on the best way to resolve this issue while maintaining optimal performance and security?

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

Solved

2 Replies

bekirk-c
TRIALOP

a year ago

Solution found: Resolved the issue by adding an environment variable. I added 'ASPNETCORE_ENVIRONMENT=Production' to the project's environment variables. This prevented the application from running in development mode, stopping unnecessary file watching processes and eliminating the inotify limit error


a year ago

Awesome! glad you where able to solve!


Status changed to Solved brody over 1 year ago


Loading...