Skip to content

[Bug]: 3008.x ends every command to minions with "[ERROR ] Task was destroyed but it is pending!" #68998

Closed

Description

@jdelic

What happened?

Every command send from the master to the minions ends with this message:

[root@symbiont saltshaker]$ salt '*' cmd.run "salt-call --version"
db:
    salt-call 3008.0rc1 (Argon)
apps1:
    salt-call 3008.0rc1 (Argon)
apps2:
    salt-call 3008.0rc1 (Argon)
lb1:
    salt-call 3008.0rc1 (Argon)
dev:
    salt-call 3008.0rc1 (Argon)
symbiont:
    salt-call 3008.0rc1 (Argon)
mail:
    salt-call 3008.0rc1 (Argon)
apps3:
    salt-call 3008.0rc1 (Argon)
[ERROR   ] Task was destroyed but it is pending!
task: <Task cancelling name='Task-84' coro=<PublishClient._read_into_unpacker() running at /opt/saltstack/salt/lib/python3.11/site-packages/salt/transport/tcp.py:421> wait_for=<Future cancelled>>

Type of salt install

Official deb

Major version

3008-RC1

What supported OS are you seeing the problem on? Can select multiple. (If bug appears on an unsupported OS, please open a GitHub Discussion instead)

debian-13

salt --versions-report output

[root@symbiont saltshaker]$ salt --versions-report
Salt Version:
          Salt: 3008.0rc1
 
Python Version:
        Python: 3.11.14 (main, Feb 17 2026, 23:32:12) [GCC 11.2.0]
 
Dependency Versions:
          cffi: 2.0.0
      cherrypy: unknown
  cryptography: 46.0.5
      dateutil: 2.8.2
     docker-py: Not Installed
         gitdb: 4.0.12
     gitpython: 3.1.46
        Jinja2: 3.1.6
       libgit2: Not Installed
  looseversion: 1.3.0
      M2Crypto: Not Installed
          Mako: Not Installed
       msgpack: 1.0.7
  msgpack-pure: Not Installed
  mysql-python: Not Installed
     packaging: 24.0
     pycparser: 2.21
      pycrypto: Not Installed
  pycryptodome: 3.19.1
        pygit2: Not Installed
  python-gnupg: 0.5.2
        PyYAML: 6.0.1
         PyZMQ: 25.1.2
        relenv: 0.22.4
         smmap: 5.0.3
       timelib: 0.3.0
       Tornado: 6.5.4
           ZMQ: 4.3.4
 
Salt Package Information:
  Package Type: onedir
 
System Versions:
          dist: debian 13.4 trixie
        locale: utf-8
       machine: x86_64
       release: 6.12.74+deb13+1-cloud-amd64
        system: Linux
       version: Debian GNU/Linux 13.4 trixie

Activity

  1. added
    bug
    on Apr 24, 2026
  2. Sxderp commented on Apr 24, 2026

    @Sxderp
    Contributor

    I selected Debian 12 because your bug template doesn't have Debian 13 yet.
    I selected 3007.x because your bug template doesn't have 3008 yet.

    You can edit the first post and update those lines manually.

  3. jdelic commented on Apr 24, 2026

    @jdelic
    ContributorAuthor

    @Sxderp omg, good point. 🤦‍♂️ I need some sleep.

  4. erwindon commented on Apr 24, 2026

    @erwindon
    Contributor

    I came to GitHub to report the same. also 3008.0rc1 on Debian 13.

  5. creideiki commented on Apr 24, 2026

    @creideiki
    Contributor

    It is not confined to Debian. I'm seeing the same message on Gentoo.

    Salt Version:
                      Salt: 3008.0rc1
     
    Python Version:
                    Python: 3.13.13 (main, Apr 15 2026, 13:36:00) [GCC 15.2.1 20260214]
     
    Dependency Versions:
                      cffi: 2.0.0
                  cherrypy: 18.10.0
              cryptography: 46.0.7
                  dateutil: 2.9.0.post0
                 docker-py: 7.1.0
                     gitdb: Not Installed
                 gitpython: Not Installed
                    Jinja2: 3.1.6
                   libgit2: 1.9.2
              looseversion: 1.3.0
                  M2Crypto: Not Installed
                      Mako: 1.3.11
                   msgpack: 1.1.2
              msgpack-pure: Not Installed
              mysql-python: Not Installed
                 packaging: 26.1
                 pycparser: 3.00
                  pycrypto: 3.23.0
              pycryptodome: Not Installed
                    pygit2: 1.19.2
              python-gnupg: 0.5.6
                    PyYAML: 6.0.3
                     PyZMQ: 27.1.0
                    relenv: Not Installed
                     smmap: Not Installed
                   timelib: Not Installed
                   Tornado: 6.5.5
                       ZMQ: 4.3.5
     
    Salt Extensions:
     pytest-salt-factories: 1.0.5
     
    Salt Package Information:
              Package Type: Not Installed
     
    System Versions:
                      dist: gentoo 2.18 n/a
                    locale: utf-8
                   machine: x86_64
                   release: 6.19.12-gentoo-x86_64
                    system: Linux
                   version: Gentoo 2.18 n/a
    
  6. cdalvaro commented on Apr 25, 2026

    @cdalvaro
    Contributor

    Same issue detected with salt '*' test.version': cdalvaro/docker-salt-master#377

    Error:   ] Task was destroyed but it is pending!
    task: <Task cancelling name='Task-892' coro=<PublishClient._read_into_unpacker() running at /opt/saltstack/salt/lib/python3.11/site-packages/salt/transport/tcp.py:421> wait_for=<Future cancelled>>
    ERROR: Minions returned with non-zero exit code
    
  7. kveroneau commented on Apr 28, 2026

    @kveroneau

    Only related to the 3008.0-RC1 which I accidentally upgraded to today, then later downgraded from. I also noticed this change in the salt source repo. Where did the debconfmod.py in the states/ directory go? I only began digging into the issues with 3008.0-RC1 because a state failed saying that debconf.set could not be found, and low and behold, even if I check in the official GitHub repo here, it's also missing. What the heck is going on with this new release? After I downgraded, I checked in /opt/saltstack/salt/lib/python3.10/site-packages/salt/states/ and was relieved to see that debconfmod.py has returned. Are some states being completely removed as of 3008? I looked at the official docs for this state, and there is nothing there that mentions that this state will be going away either. This release is so very confusing. I didn't feel that I wanted to create a new bug report for this, as for one, I cannot select 3008.0 in the list of versions, and I feel like perhaps I a missing something about what this new release is going to be doing.

  8. dafyddj commented on Apr 28, 2026

    @dafyddj
    Collaborator

    Yes, many states and modules are leaving the core project in the 3008 release.
    This is known as the Great Module Migration, (more).

    However some modules and states have been removed by mistake but may well be returned for the full 3008 release.
    For example, this PR returns debconf to the core project.

    One purpose for the release candidate was to discover issues like this.

  9. NdK73 commented on May 7, 2026

    @NdK73

    Still the same error il 3008 RC2 even if not in Trixie:

    Salt Version:
              Salt: 3008.0rc2
     
    Python Version:
            Python: 3.13.13 (main, May  4 2026, 10:16:58) [GCC 11.2.0]
     
    Dependency Versions:
              cffi: 2.0.0
          cherrypy: 18.10.0
      cryptography: 47.0.0
          dateutil: 2.9.0.post0
         docker-py: Not Installed
             gitdb: 4.0.12
         gitpython: 3.1.46
            Jinja2: 3.1.6
           libgit2: Not Installed
      looseversion: 1.3.0
          M2Crypto: Not Installed
              Mako: Not Installed
           msgpack: 1.1.0
      msgpack-pure: Not Installed
      mysql-python: Not Installed
         packaging: 24.0
         pycparser: 2.22
          pycrypto: Not Installed
      pycryptodome: 3.21.0
            pygit2: Not Installed
      python-gnupg: 0.5.3
            PyYAML: 6.0.2
             PyZMQ: 26.2.0
            relenv: 0.22.9
             smmap: 5.0.3
           timelib: 0.3.0
           Tornado: 6.5.5
               ZMQ: 4.3.5
     
    Salt Package Information:
      Package Type: onedir
     
    System Versions:
              dist: debian 12.13 bookworm
            locale: utf-8
           machine: x86_64
           release: 6.1.0-44-amd64
            system: Linux
           version: Debian GNU/Linux 12.13 bookworm
    
    
  10. erwindon commented on May 8, 2026

    @erwindon
    Contributor

    I confirm that 3008.0 RC2 is still broken.

  11. creideiki commented on May 13, 2026

    @creideiki
    Contributor

    This seems to be fixed in 3008.0rc3. I am no longer seeing it on Gentoo.

    Salt Version:
                      Salt: 3008.0rc3
     
    Python Version:
                    Python: 3.13.13 (main, Apr 15 2026, 13:36:00) [GCC 15.2.1 20260214]
     
    Dependency Versions:
                      cffi: 2.0.0
                  cherrypy: 18.10.0
              cryptography: 48.0.0
                  dateutil: 2.9.0.post0
                 docker-py: 7.1.0
                     gitdb: 4.0.12
                 gitpython: 3.1.50
                    Jinja2: 3.1.6
                   libgit2: 1.9.2
              looseversion: 1.3.0
                  M2Crypto: Not Installed
                      Mako: 1.3.12
                   msgpack: 1.1.2
              msgpack-pure: Not Installed
              mysql-python: Not Installed
                 packaging: 26.2
                 pycparser: 3.00
                  pycrypto: 3.23.0
              pycryptodome: Not Installed
                    pygit2: 1.19.2
              python-gnupg: 0.5.6
                    PyYAML: 6.0.3
                     PyZMQ: 27.1.0
                    relenv: Not Installed
                     smmap: 6.0.0
                   timelib: Not Installed
                   Tornado: 6.5.5
                       ZMQ: 4.3.5
     
    Salt Extensions:
     pytest-salt-factories: 1.0.5
     
    Salt Package Information:
              Package Type: Not Installed
     
    System Versions:
                      dist: gentoo 2.18 n/a
                    locale: utf-8
                   machine: x86_64
                   release: 7.0.5-gentoo-x86_64
                    system: Linux
                   version: Gentoo 2.18 n/a
    
  12. erwindon commented on May 13, 2026

    @erwindon
    Contributor

    I just installed 3008.0rc3 on a fresh Debian13 machine.

    hi  salt-api                                         3008.0~rc3                                amd64        Generic, modular network access system
    hi  salt-common                                      3008.0~rc3                                amd64        shared libraries that salt requires for all packages
    hi  salt-master                                      3008.0~rc3                                amd64        remote manager to administer servers via salt
    hi  salt-minion                                      3008.0~rc3                                amd64        client package for salt, the distributed remote execution system
    

    Unfortunately, I cannot confirm the results from @creideiki, any salt-api session is still terminated after a minute or so.
    salt-master says the same as before in its logfile:

    2026-05-14 01:44:58,750 [salt.auth        :414 ][WARNING ][18615] Authentication failure of type "token" occurred.
    2026-05-14 01:44:58,825 [salt.auth        :318 ][WARNING ][18612] Failed to load token '858ea8e0acb96a27a150ff8720e28e7b44c7fb2b56117500fe17887d1e294441' - removing broken/empty file.
    

    my conclusion --> not fixed yet

  13. Tsunayoshi commented on May 14, 2026

    @Tsunayoshi

    My Debian 13 machines are fine now.
    I do NOT get "Error: ] Task was destroyed but it is pending!" anymore. Thanks for fixing it.

  14. added 2 commits that reference this issue on May 22, 2026
    5f795d2
    28d7c63
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

    bugneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions