saltstack / saltstack/salt

[Bug]: Minion is warning about unclosed object/SyncWrapper/publisher client

Open
#70,175 0 comments 0 reactions 1 assignee View on GitHub

@twangboy is already working on this.

Since Aug 28, 2026.

bug
Dominant language
Python
Stars
15.7k
Forks
5.6k
Avg merge
2d 44m
Merged PRs (30d)
80

Description

What happened?

Seeing the following warnings in the minion log

2026-08-28 09:49:19,368 [salt.transport.tcp:50  ][WARNING ][146918] unclosed publish server <salt.transport.tcp.PublishServer object at 0x7b00993ee9d0>
2026-08-28 09:49:19,369 [salt.utils.asynchronous:50  ][WARNING ][146918] unclosed SyncWrapper for cls=<class 'salt.transport.tcp._TCPPubServerPublisher'>; call ``close()`` or use as a context manager
2026-08-28 09:49:19,369 [salt.transport.tcp:50  ][WARNING ][146918] unclosed publisher client <salt.transport.tcp._TCPPubServerPublisher object at 0x7b0099719110>
Type of salt install

Official deb

Major version

3008.x

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)

ubuntu-24.04

salt --versions-report output
head of 3008.x branch (3008.2+393.g4ae4bf944f)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.