Skip to content

[BUG] Minion file handle leak when re-connecting #68901

Closed

Description

@dwoz

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

Activity

  1. hailfinger commented on Apr 15, 2026

    @hailfinger

    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.

  2. hailfinger commented on May 12, 2026

    @hailfinger

    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.

  3. added this to the Sulphur v3006.26 milestone on Jun 6, 2026
  4. added 5 commits that reference this issue on Jun 7, 2026
    6f5cb6b
    b6743fb
    d063c4c
    7965367
    f5435a5
  5. added 2 commits that reference this issue on Jun 25, 2026
    7579b96
    90645bc
  6. dwoz commented on Jul 1, 2026

    @dwoz
    ContributorAuthor

    Fixed in 3006.26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions