You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Minion file handle leak when re-connecting #68901
When a minion tries to connect to a master but fails, it leaks a file handle. These file handles will continue to leak whenever a minion is unable to connect to the master.
This issue stems from not properly closing a PublishChannel in Minion._authenticate
I'm hitting this issue quite frequently. Some of my minions with less stable network connectivity sometimes died due to exhausted file descriptors. To be precise, the affected machines continued to run fine, but the Salt-Minion service on the minion died. With ~1k minions and multiple minions hitting this daily, this is somewhat inconvenient.
There also is a leak in file descriptors on the master which is somewhat (but not quite clearly) correlated with unreachable minions. The ReqServer MWorkerQueue process on the master has 13933 fds open right now with ~1100 minions connected.
I now need to reboot some minions with an unstable internet connection almost daily because the Salt minion hits the limit of 10k file descriptors.
Although the salt minion process is still running (and thus not being restarted by systemd), it is unresponsive once it hits the fd limit. Environment is Debian on arm64.
Activity
hailfinger commentedon Apr 15, 2026
I'm hitting this issue quite frequently. Some of my minions with less stable network connectivity sometimes died due to exhausted file descriptors. To be precise, the affected machines continued to run fine, but the Salt-Minion service on the minion died. With ~1k minions and multiple minions hitting this daily, this is somewhat inconvenient.
There also is a leak in file descriptors on the master which is somewhat (but not quite clearly) correlated with unreachable minions. The ReqServer MWorkerQueue process on the master has 13933 fds open right now with ~1100 minions connected.
hailfinger commentedon May 12, 2026
I now need to reboot some minions with an unstable internet connection almost daily because the Salt minion hits the limit of 10k file descriptors.
Although the salt minion process is still running (and thus not being restarted by systemd), it is unresponsive once it hits the fd limit. Environment is Debian on arm64.
Fix PublishChannel leak in Minion.eval_master single-master path
Fix PublishChannel leak in Minion.eval_master single-master path
Fix PublishChannel leak in Minion.eval_master single-master path
Fix PublishChannel leak in Minion.eval_master single-master path
Fix PublishChannel leak in Minion.eval_master single-master path
Fix PublishChannel leak in Minion.eval_master single-master path
Merge pull request #69341 from dwoz/fix/issue-68901
dwoz commentedon Jul 1, 2026
Fixed in 3006.26