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] non operational returner configured as master_job_cache causes salt cli failures (3007.0) #66457
changed the title [-][BUG] master_job_cache: postgres causes salt command failures (3007.0)[/-][+][BUG] `master_job_cache: postgres` causes salt cli failures (3007.0)[/+]on May 1, 2024
got a chance go reduplicate this on a test instance. found the following journal logs.
salt-master[5572]: [ERROR ] Failed to allocate a jid. The requested returner 'postgres' could not be loaded.
salt-master[5572]: [ERROR ] Some exception handling a payload from minion
salt-master[5572]: Traceback (most recent call last):
salt-master[5572]: File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/channel/server.py", line 181, in handle_message
salt-master[5572]: ret, req_opts = yield self.payload_handler(payload)
salt-master[5572]: File "/opt/saltstack/salt/lib/python3.10/site-packages/tornado/gen.py", line 767, in run
salt-master[5572]: value = future.result()
salt-master[5572]: File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/master.py", line 1196, in _handle_payload
salt-master[5572]: ret = await self._handle_clear(load)
salt-master[5572]: File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/master.py", line 1240, in _handle_clear
salt-master[5572]: reply = await method(load)
salt-master[5572]: File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/master.py", line 2473, in publish
salt-master[5572]: payload = self._prep_pub(minions, jid, clear_load, extra, missing)
salt-master[5572]: File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/master.py", line 2573, in _prep_pub
salt-master[5572]: self.event.fire_event({"minions": minions}, clear_load["jid"])
salt-master[5572]: File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/event.py", line 769, in fire_event
salt-master[5572]: event = self.pack(tag, data, max_size=self.opts["max_event_size"])
salt-master[5572]: File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/event.py", line 440, in pack
salt-master[5572]: salt.utils.stringutils.to_bytes(tag),
salt-master[5572]: File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/stringutils.py", line 53, in to_bytes
salt-master[5572]: raise TypeError("expected str, bytes, or bytearray not {}".format(type(s)))
salt-master[5572]: TypeError: expected str, bytes, or bytearray not <class 'dict'>
I eventually tracked it down to an issue with psycopg2. I force re-installed psycopg2-binary and that got it working.
it's not great that a broken returner breaks the cli in this way though
changed the title [-][BUG] `master_job_cache: postgres` causes salt cli failures (3007.0)[/-][+][BUG] non operational returner configured as`master_job_cache` causes salt cli failures (3007.0)[/+]on May 1, 2024
changed the title [-][BUG] non operational returner configured as`master_job_cache` causes salt cli failures (3007.0)[/-][+][BUG] non operational returner configured as `master_job_cache` causes salt cli failures (3007.0)[/+]on May 1, 2024
What was the issue with psycopg2-binary @ITJamie ? I just set up a postgres returner and I'm intermittently seeing this same behavior with version 2.9.11
Fix merged and shipped in a supported release. Closing per bulk triage. Reopen if this reproduces on a currently supported release (3006.x, 3007.x, 3008.x, master).
Activity
[-][BUG] master_job_cache: postgres causes salt command failures (3007.0)[/-][+][BUG] `master_job_cache: postgres` causes salt cli failures (3007.0)[/+]ITJamie commentedon May 1, 2024
got a chance go reduplicate this on a test instance. found the following journal logs.
I eventually tracked it down to an issue with psycopg2. I force re-installed
psycopg2-binaryand that got it working.it's not great that a broken returner breaks the cli in this way though
[-][BUG] `master_job_cache: postgres` causes salt cli failures (3007.0)[/-][+][BUG] non operational returner configured as`master_job_cache` causes salt cli failures (3007.0)[/+][-][BUG] non operational returner configured as`master_job_cache` causes salt cli failures (3007.0)[/-][+][BUG] non operational returner configured as `master_job_cache` causes salt cli failures (3007.0)[/+]mdschmitt commentedon Nov 12, 2025
What was the issue with psycopg2-binary @ITJamie ? I just set up a postgres returner and I'm intermittently seeing this same behavior with version 2.9.11
dwoz commentedon Jul 2, 2026
Fix merged and shipped in a supported release. Closing per bulk triage. Reopen if this reproduces on a currently supported release (3006.x, 3007.x, 3008.x, master).
Fix error handling on prep jid failure
Fix error handling on prep jid failure (#66457) (#69649)
Restore more dropped 3006.x fixes on the merge-forward
Restore more dropped 3006.x fixes on the merge-forward