Skip to content

[BUG] New ReqServer memory leak in 3006.10 #67931

Open

Description

@OrangeDog

Description
I recently upgraded from 3006.9 to 3006.10, and a new memory leak appears to have been introduced.
I now have to restart salt-master basically every day to avoid OOM issues, and will probably have to revert to .9

Setup
Master is on KVM. I have only twelve minions, on a mix of machine, but all the same version as the master.
They run state.apply every fifteen minutes, and a couple run some other scheduled script that doesn't interact with the master.
Both gitfs and git_pillar are in use, as well as x509 (v1) states and mine requests.

Steps to Reproduce the behavior
Salt process shortly after a restart:

    PID USER       PRI  NI  VIRT   RES   SHR S  CPU% MEM%▽  TIME+  Command
    977 root        20   0  693M 87812  8960 S   0.0  1.5  1h23:53 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-minion MultiMinionProcessManager MinionProcessManager
4046378 root        20   0  394M 71880 18692 S   0.0  1.2  0:00.91 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-master FileServerUpdate
4046359 root        20   0  216M 65960 23808 S   0.0  1.1  0:01.21 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-master MainProcess
4046376 root        20   0  223M 62496 13700 S   0.0  1.1  0:00.50 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-master Maintenance
4046392 root        20   0  306M 62256 11140 S   0.0  1.1  0:01.02 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-master ReqServer MWorker-4
4046382 root        20   0  306M 60976 11012 S   0.0  1.0  0:00.99 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-master ReqServer MWorker-1
4046384 root        20   0  304M 57008  7172 S   0.0  1.0  0:01.01 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-master ReqServer MWorker-2
4046380 root        20   0  303M 56240  6404 S   0.0  1.0  0:00.98 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-master ReqServer MWorker-0
4046385 root        20   0  303M 56240  6404 S   0.0  1.0  0:01.04 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-master ReqServer MWorker-3
4046379 root        20   0  584M 48944  6020 S   0.0  0.8  0:00.01 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-master ReqServer MWorkerQueue
4046372 root        20   0  296M 48624  6660 S   0.0  0.8  0:00.05 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-master PubServerChannel._publish_daemon
4046377 root        20   0  216M 47520  5252 S   0.0  0.8  0:00.03 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-master ReqServer ReqServer_ProcessManager
4046373 root        20   0  217M 47360  5508 S   0.0  0.8  0:00.01 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-master EventPublisher
    947 root        20   0  168M 24728   256 S   0.0  0.4  0:00.54 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-minion

Salt processes thirty minutes later:

    PID USER       PRI  NI  VIRT   RES   SHR S  CPU% MEM%▽  TIME+  Command
4046392 root        20   0  616M  126M 31236 S   0.0  2.2  0:44.65 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-master ReqServer MWorker-4
4046380 root        20   0  617M  126M 31236 S   0.0  2.2  0:45.11 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-master ReqServer MWorker-0
4046382 root        20   0  615M  124M 31108 S   0.0  2.2  0:50.88 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-master ReqServer MWorker-1
4046385 root        20   0  615M  123M 31108 S   0.0  2.1  0:38.10 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-master ReqServer MWorker-3
4046384 root        20   0  614M  122M 31108 S   0.0  2.1  0:37.49 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-master ReqServer MWorker-2
    977 root        20   0  694M 88836  9984 S   0.0  1.5  1h23:57 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-minion MultiMinionProcessManager MinionProcessManager
4046378 root        20   0  398M 75720 18180 S   0.0  1.3  0:07.85 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-master FileServerUpdate
4046376 root        20   0  231M 70304 14340 S   0.0  1.2  0:11.13 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-master Maintenance
4046359 root        20   0  216M 65704 23552 S   0.0  1.1  0:01.24 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-master MainProcess
4046372 root        20   0  297M 54256 10884 S   0.0  0.9  0:00.30 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-master PubServerChannel._publish_daemon
4046373 root        20   0  254M 52932  5508 S   0.0  0.9  0:00.68 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-master EventPublisher
4046379 root        20   0  584M 50096  6020 S   0.0  0.9  0:08.88 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-master ReqServer MWorkerQueue
4046377 root        20   0  216M 47520  5252 S   0.0  0.8  0:00.07 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-master ReqServer ReqServer_ProcessManager
    947 root        20   0  168M 24728   256 S   0.0  0.4  0:00.54 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-minion

24 hours later:

    PID USER       PRI  NI  VIRT   RES   SHR S  CPU% MEM%▽  TIME+  Command
4046392 root        20   0  690M  174M  4868 S   0.0  3.0 30:42.23 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-master ReqServer MWorker-4
4046384 root        20   0  755M  173M  4996 S   0.0  3.0 29:52.55 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-master ReqServer MWorker-2
4046380 root        20   0  753M  173M  4996 S   0.0  3.0 30:54.94 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-master ReqServer MWorker-0
4046382 root        20   0  688M  172M  4996 S   0.0  3.0 30:44.35 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-master ReqServer MWorker-1
4046385 root        20   0  689M  172M  4868 S   0.0  3.0 30:51.85 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-master ReqServer MWorker-3
    977 root        20   0  692M 83744  3840 S   0.0  1.4  1h27:26 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-minion MultiMinionProcessManager MinionProcessManager
4046378 root        20   0  402M 63048  1284 S   0.0  1.1  0:29.32 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-master FileServerUpdate
 503265 root        20   0  230M 58304  3456 S   0.0  1.0  0:28.76 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-master Maintenance
4046373 root        20   0  254M 56928  2564 S   0.0  1.0  0:26.97 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-master EventPublisher
4046372 root        20   0  299M 46704  2948 S   0.0  0.8  0:09.60 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-master PubServerChannel._publish_daemon
4046379 root        20   0  584M 45744  1156 S   0.0  0.8  6:18.52 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-master ReqServer MWorkerQueue
4046377 root        20   0  216M 43552  1284 S   0.0  0.7  0:03.25 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-master ReqServer ReqServer_ProcessManager
4046359 root        20   0  216M 43432  1280 S   0.0  0.7  0:04.29 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-master MainProcess
    947 root        20   0  168M 24728   256 S   0.0  0.4  0:00.54 /opt/saltstack/salt/bin/python3.10 /usr/bin/salt-minion

Expected behavior
Memory usage should not keep growing.

Versions Report

salt --versions-report
Salt Version:
          Salt: 3006.10

Python Version:
        Python: 3.10.16 (main, Mar  6 2025, 02:23:15) [GCC 11.2.0]

Dependency Versions:
          cffi: 1.17.1
      cherrypy: unknown
  cryptography: 42.0.5
      dateutil: 2.8.1
     docker-py: Not Installed
         gitdb: Not Installed
     gitpython: Not Installed
        Jinja2: 3.1.6
       libgit2: 1.9.0
  looseversion: 1.0.2
      M2Crypto: 0.38.0
          Mako: Not Installed
       msgpack: 1.0.2
  msgpack-pure: Not Installed
  mysql-python: Not Installed
     packaging: 22.0
     pycparser: 2.21
      pycrypto: Not Installed
  pycryptodome: 3.19.1
        pygit2: 1.17.0
  python-gnupg: 0.4.8
        PyYAML: 6.0.1
         PyZMQ: 23.2.0
        relenv: 0.18.1
         smmap: Not Installed
       timelib: 0.2.4
       Tornado: 4.5.3
           ZMQ: 4.3.4

System Versions:
          dist: ubuntu 24.04.2 noble
        locale: utf-8
       machine: x86_64
       release: 6.8.0-56-generic
        system: Linux
       version: Ubuntu 24.04.2 noble

Additional information
Version report from before the upgrade is here: #67207

Activity

  1. added
    bug
    on Apr 1, 2025
  2. added this to the Sulfur v3006.11 milestone on Apr 1, 2025
  3. self-assigned this
    on Apr 16, 2025
  4. OrangeDog commented on Jul 14, 2025

    @OrangeDog
    ContributorAuthor

    I recorded some overall memory usage of salt-master. This may of course be due to multiple leaks.

    graph showing ~600MB increase per day

    Is there some way to get object graphs or totals from a running Python? If I can do that it should provide more clues as to where the issue is.

    (I have also upgraded to x509_v2 before this)

  5. 65 remaining items

  6. OrangeDog commented on Jul 6, 2026

    @OrangeDog
    ContributorAuthor

    @dwoz the GPG leak is fixed so growth is now slower, but this leak in the MWorkers is still there.

    Image
        PID     TIME    RSS COMMAND
     337656 00:00:21 193032 /opt/saltstack/salt/bin/python3.11 /usr/bin/salt-master ReqServer MWorker-0
     337658 00:00:17 126992 /opt/saltstack/salt/bin/python3.11 /usr/bin/salt-master ReqServer MWorker-1
     337659 00:00:20 152016 /opt/saltstack/salt/bin/python3.11 /usr/bin/salt-master ReqServer MWorker-2
     337660 00:00:09 186232 /opt/saltstack/salt/bin/python3.11 /usr/bin/salt-master ReqServer MWorker-3
     337664 00:00:25 193368 /opt/saltstack/salt/bin/python3.11 /usr/bin/salt-master ReqServer MWorker-4
    
     337656 00:55:53 269588 /opt/saltstack/salt/bin/python3.11 /usr/bin/salt-master ReqServer MWorker-0
     337658 00:58:11 267520 /opt/saltstack/salt/bin/python3.11 /usr/bin/salt-master ReqServer MWorker-1
     337659 00:58:05 265980 /opt/saltstack/salt/bin/python3.11 /usr/bin/salt-master ReqServer MWorker-2
     337660 00:56:24 266328 /opt/saltstack/salt/bin/python3.11 /usr/bin/salt-master ReqServer MWorker-3
     337664 00:56:28 263836 /opt/saltstack/salt/bin/python3.11 /usr/bin/salt-master ReqServer MWorker-4
    
     337656 02:03:25 357076 /opt/saltstack/salt/bin/python3.11 /usr/bin/salt-master ReqServer MWorker-0
     337658 02:04:18 342776 /opt/saltstack/salt/bin/python3.11 /usr/bin/salt-master ReqServer MWorker-1
     337659 02:04:43 345388 /opt/saltstack/salt/bin/python3.11 /usr/bin/salt-master ReqServer MWorker-2
     337660 02:01:58 343952 /opt/saltstack/salt/bin/python3.11 /usr/bin/salt-master ReqServer MWorker-3
     337664 02:04:30 349856 /opt/saltstack/salt/bin/python3.11 /usr/bin/salt-master ReqServer MWorker-4
    
  7. spin222 commented on Jul 29, 2026

    @spin222

    We also have a memory leak in salt-master 3006.27.

    No errors in the logs, it just stops reacting to requests from the minions.

    Image

    Memory usage after upgrade:

    Image

    We have several salt masters that use the same version. The others are OK and the main difference is that the salt master with the issues has a lot of disconnected minions.

  8. spin222 commented on Jul 31, 2026

    @spin222

    Checked the logs again.
    Some time before salt-master goes completely crazy it had the errors like this (several times):

    2026-07-27 07:31:56,432 [salt.master      :1956][ERROR   ][2425] Error in function _return:
    Traceback (most recent call last):
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/master.py", line 1950, in run_func
        ret = getattr(self, func)(load)
              ^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/master.py", line 1743, in _return
        salt.utils.job.store_job(
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/utils/job.py", line 31, in store_job
        return _store_job(opts, load, event, mminion, endtime=endtime)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/utils/job.py", line 91, in _store_job
        event.fire_event(
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/utils/event.py", line 883, in fire_event
        self.pusher.send(msg)
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/utils/asynchronous.py", line 153, in wrap
        raise exc_info[1].with_traceback(exc_info[2])
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/utils/asynchronous.py", line 169, in _target
        result = io_loop.run_sync(lambda: getattr(self.obj, key)(*args, **kwargs))
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/ext/tornado/ioloop.py", line 459, in run_sync
        return future_cell[0].result()
               ^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/ext/tornado/concurrent.py", line 249, in result
        raise_exc_info(self._exc_info)
      File "<string>", line 4, in raise_exc_info
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/ext/tornado/gen.py", line 309, in wrapper
        yielded = next(result)
                  ^^^^^^^^^^^^
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/transport/ipc.py", line 445, in send
        yield self.stream.write(pack)
              ^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/ext/tornado/iostream.py", line 409, in write
        self._add_io_state(self.io_loop.WRITE)
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/ext/tornado/iostream.py", line 975, in _add_io_state
        self.io_loop.update_handler(self.fileno(), self._state)
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/ext/tornado/ioloop.py", line 734, in update_handler
        self._impl.modify(fd, events | self.ERROR)
    FileNotFoundError: [Errno 2] No such file or directory
    

    Then this one:

    2026-07-27 08:00:59,982 [salt.client      :1916][ERROR   ][648013] Message timed out
    2026-07-27 08:01:00,024 [salt._logging.impl:1101][ERROR   ][648013] An un-handled exception was caught by Salt's global exception handler:
    SaltClientError: Salt request timed out. The master is not responding. You may need to run your command with `--async` in order to bypass the congested event bus. With `--async`, the CLI tool will print the job id (jid) and exit immediately without listening for responses. You can 
    then use `salt-run jobs.lookup_jid` to look up the results of the job in the job cache later.
    Traceback (most recent call last):
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/client/__init__.py", line 1914, in pub
        payload = channel.send(payload_kwargs, timeout=timeout)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/utils/asynchronous.py", line 153, in wrap
        raise exc_info[1].with_traceback(exc_info[2])
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/utils/asynchronous.py", line 169, in _target
        result = io_loop.run_sync(lambda: getattr(self.obj, key)(*args, **kwargs))
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/ext/tornado/ioloop.py", line 459, in run_sync
        return future_cell[0].result()
               ^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/ext/tornado/concurrent.py", line 249, in result
        raise_exc_info(self._exc_info)
      File "<string>", line 4, in raise_exc_info
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/ext/tornado/gen.py", line 1064, in run
        yielded = self.gen.throw(*exc_info)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/channel/client.py", line 380, in send
        ret = yield self._uncrypted_transfer(load, timeout=timeout)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/ext/tornado/gen.py", line 1056, in run
        value = future.result()
                ^^^^^^^^^^^^^^^
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/ext/tornado/concurrent.py", line 249, in result
        raise_exc_info(self._exc_info)
      File "<string>", line 4, in raise_exc_info
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/ext/tornado/gen.py", line 1064, in run
        yielded = self.gen.throw(*exc_info)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/channel/client.py", line 354, in _uncrypted_transfer
        ret = yield self.transport.send(self._package_load(load), timeout=timeout)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/ext/tornado/gen.py", line 1056, in run
        value = future.result()
                ^^^^^^^^^^^^^^^
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/ext/tornado/concurrent.py", line 249, in result
        raise_exc_info(self._exc_info)
      File "<string>", line 4, in raise_exc_info
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/ext/tornado/gen.py", line 1064, in run
        yielded = self.gen.throw(*exc_info)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/transport/zeromq.py", line 1404, in send
        ret = yield self.message_client.send(load, timeout=timeout)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/ext/tornado/gen.py", line 1056, in run
        value = future.result()
                ^^^^^^^^^^^^^^^
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/ext/tornado/concurrent.py", line 249, in result
        raise_exc_info(self._exc_info)
      File "<string>", line 4, in raise_exc_info
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/ext/tornado/gen.py", line 1064, in run
        yielded = self.gen.throw(*exc_info)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/transport/zeromq.py", line 923, in send
        recv = yield future
               ^^^^^^^^^^^^
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/ext/tornado/gen.py", line 1056, in run
        value = future.result()
                ^^^^^^^^^^^^^^^
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/ext/tornado/concurrent.py", line 249, in result
        raise_exc_info(self._exc_info)
      File "<string>", line 4, in raise_exc_info
    salt.exceptions.SaltReqTimeoutError: Message timed out
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/client/__init__.py", line 386, in run_job
        pub_data = self.pub(
                   ^^^^^^^^^
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/client/__init__.py", line 1917, in pub
        raise SaltReqTimeoutError(
    salt.exceptions.SaltReqTimeoutError: Salt request timed out. The master is not responding. You may need to run your command with `--async` in order to bypass the congested event bus. With `--async`, the CLI tool will print the job id (jid) and exit immediately without listening for responses. You can then use `salt-run jobs.lookup_jid` to look up the results of the job in the job cache later.
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/usr/bin/salt", line 12, in <module>
        sys.exit(salt_main())
                 ^^^^^^^^^^^
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/scripts.py", line 552, in salt_main
        client.run()
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/cli/salt.py", line 55, in run
        self._run_batch()
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/cli/salt.py", line 291, in _run_batch
        for res, job_retcode in batch.run():
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/cli/batch.py", line 239, in run
        part = next(queue)
               ^^^^^^^^^^^
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/client/__init__.py", line 986, in cmd_iter_no_block
        for fn_ret in self.get_iter_returns(
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/client/__init__.py", line 1270, in get_iter_returns
        jinfo = self.gather_job_info(
                ^^^^^^^^^^^^^^^^^^^^^
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/client/__init__.py", line 294, in gather_job_info
        pub_data = self.run_job(
                   ^^^^^^^^^^^^^
      File "/opt/saltstack/salt/lib/python3.11/site-packages/salt/client/__init__.py", line 408, in run_job
        raise SaltClientError(general_exception)
    salt.exceptions.SaltClientError: Salt request timed out. The master is not responding. You may need to run your command with `--async` in order to bypass the congested event bus. With `--async`, the CLI tool will print the job id (jid) and exit immediately without listening for responses. You can then use `salt-run jobs.lookup_jid` to look up the results of the job in the job cache later.
    

    After that it doesn't get responses from minions but still gets tasks to do salt deployment from salt-api, I guess, the queue grows and grows until it eats all the memory.

  9. OrangeDog commented on Jul 31, 2026

    @OrangeDog
    ContributorAuthor

    @spin222 as your leak started in a different version of Salt and has different log evidence, you should create a different issue for it

  10. spin222 commented on Jul 31, 2026

    @spin222

    @spin222 as your leak started in a different version of Salt and has different log evidence, you should create a different issue for it
    Got it. #69914

  11. OrangeDog commented on Oct 6, 2026

    @OrangeDog
    ContributorAuthor

    Still present in 3006.28

        PID     TIME   RSS COMMAND
    3764753 00:02:12 214652 /opt/saltstack/salt/bin/python3.11 /usr/bin/salt-master ReqServer MWorker-0
    3764755 00:02:25 274668 /opt/saltstack/salt/bin/python3.11 /usr/bin/salt-master ReqServer MWorker-1
    3764756 00:02:12 212936 /opt/saltstack/salt/bin/python3.11 /usr/bin/salt-master ReqServer MWorker-2
    3764757 00:02:31 214524 /opt/saltstack/salt/bin/python3.11 /usr/bin/salt-master ReqServer MWorker-3
    3764758 00:02:07 213596 /opt/saltstack/salt/bin/python3.11 /usr/bin/salt-master ReqServer MWorker-4
    
    3764753 00:44:33 271180 /opt/saltstack/salt/bin/python3.11 /usr/bin/salt-master ReqServer MWorker-0
    3764755 00:43:55 321604 /opt/saltstack/salt/bin/python3.11 /usr/bin/salt-master ReqServer MWorker-1
    3764756 00:44:10 271572 /opt/saltstack/salt/bin/python3.11 /usr/bin/salt-master ReqServer MWorker-2
    3764757 00:44:46 273124 /opt/saltstack/salt/bin/python3.11 /usr/bin/salt-master ReqServer MWorker-3
    3764758 00:45:09 271344 /opt/saltstack/salt/bin/python3.11 /usr/bin/salt-master ReqServer MWorker-4
    
  12. added
    severity-high
    on Oct 21, 2026
  13. dwoz commented on Oct 23, 2026

    @dwoz
    Contributor

    @OrangeDog would you be willing to send me your master and minion configs?

    Also, are you able to test 3008.3?

  14. OrangeDog commented on Oct 23, 2026

    @OrangeDog
    ContributorAuthor

    Sent via Discord.

    Upgrading to 3008 is not currently high on my priority list.

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

Metadata

Metadata

Assignees

Labels

bugmemory-leakseverity-high

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions