-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[BUG] refreshing beacons leaks inotify handles #58907
Comments
@golmaal Thanks for the report. |
Hello, I got this after upgrading from 3001.8 to 3004.
My beacon configuration:
|
This seems to be a bug of pyinotify: seb-m/pyinotify#192 The original project seems to be unmaintained since ~2015 and while there's a little better maintained fork of PyInotify available, pypi distributes the unmaintained original and at least Ubuntu's package is also based on this one. I don't really know, whether the fork dsoprea/PyInotify fixes the mentioned issue, so this would have to be investigated/tested. |
Having the same problem with Salt 3002 on Ubuntu:
Configured a beacon like this:
After restart of minion i have 1 inotify-handle. After 1 day the minion has about 128 inotify-handles - which is the default-maxium of max_user_instances:
Then this messages appear in the logs until i restart the salt-minion:
installed pyinotify is:
|
Any updates on this issue? This issue makes beacons effectively unusable. Once the open files is maxed out the server will constantly throw errors and services start to fail. I've already had multiple salt-minion services crash because of this issue causing our operations team some sleepless nights. |
Any updates on this issue? At this point, I had to find ugly and quick workarounds to replace beacons. Having this fixed, or at least getting a confirmation that this will not get fixed, I can invest resources to properly replace beacons. |
Any updates yet on this issue? This is still hitting us and we need to workaround the ever growing inotify handle needs of the salt minion |
Are there any updates on this issue? Using Salt version 3006.7 and python version 3.10.13 the problem persists. The solution so far is to add a task to the cron job to restart the salt-minion service, but I don't think this is a good solution. |
Description
Setup an inotify beacon and refresh beacons. Every time beacons are refreshed inotify file handles are leaked.
Setup
Start a CentOS:8.1.1911 container
Steps to Reproduce the behavior
OR
Check open file handles using lsof -
Expected behavior
A constant number of inotify handles should remain open.
However, after refreshing beacons, it keeps on increasing -
The text was updated successfully, but these errors were encountered: