Salt-cp Times wrong UnicodeDecodeError

problem description

uses salt-cp to copy a compressed package of tar.gz, which reports an error after execution, but the file has been fully transferred to the minion side.

the environmental background of the problems and what methods you have tried

I tried to change the code environment of python2.7 to UTF-8, and restart salt-master and salt-minion, but it didn"t work.

error report

[root@localhost ]-sharp salt-cp "*" scan.tar.gz /web/soft/scan
[CRITICAL] Could not deserialize msgpack message. This often happens when trying to read a file not in binary mode. To see message payload, enable debug logging and retry. Exception: "utf8" codec can"t decode byte 0x8b in position 1: invalid start byte
[ERROR   ] An un-handled exception was caught by salt"s global exception handler:
UnicodeDecodeError: "utf8" codec can"t decode byte 0x8b in position 1: invalid start byte
Traceback (most recent call last):
  File "/usr/bin/salt-cp", line 10, in <module>
    salt_cp()
  File "/usr/lib/python2.7/site-packages/salt/scripts.py", line 387, in salt_cp
    client.run()
  File "/usr/lib/python2.7/site-packages/salt/cli/cp.py", line 52, in run
    cp_.run()
  File "/usr/lib/python2.7/site-packages/salt/cli/cp.py", line 142, in run
    ret = self.run_oldstyle()
  File "/usr/lib/python2.7/site-packages/salt/cli/cp.py", line 165, in run_oldstyle
    return local.cmd(*args)
  File "/usr/lib/python2.7/site-packages/salt/client/__init__.py", line 741, in cmd
    **kwargs):
  File "/usr/lib/python2.7/site-packages/salt/client/__init__.py", line 1603, in get_cli_event_returns
    **kwargs
  File "/usr/lib/python2.7/site-packages/salt/client/__init__.py", line 1184, in get_iter_returns
    for raw in ret_iter:
  File "/usr/lib/python2.7/site-packages/salt/client/__init__.py", line 1109, in get_returns_no_block
    no_block=True, auto_reconnect=self.auto_reconnect)
  File "/usr/lib/python2.7/site-packages/salt/utils/event.py", line 642, in get_event
    ret = self._get_event(wait, tag, match_func, no_block)
  File "/usr/lib/python2.7/site-packages/salt/utils/event.py", line 544, in _get_event
    mtag, data = self.unpack(raw, self.serial)
  File "/usr/lib/python2.7/site-packages/salt/utils/event.py", line 435, in unpack
    data = serial.loads(mdata, encoding="utf-8")
  File "/usr/lib/python2.7/site-packages/salt/payload.py", line 144, in loads
    ret = msgpack.loads(msg, use_list=True, ext_hook=ext_type_decoder, encoding=encoding)
  File "msgpack/_unpacker.pyx", line 138, in msgpack._unpacker.unpackb (msgpack/_unpacker.cpp:138)
UnicodeDecodeError: "utf8" codec can"t decode byte 0x8b in position 1: invalid start byte
Traceback (most recent call last):
  File "/usr/bin/salt-cp", line 10, in <module>
    salt_cp()
  File "/usr/lib/python2.7/site-packages/salt/scripts.py", line 387, in salt_cp
    client.run()
  File "/usr/lib/python2.7/site-packages/salt/cli/cp.py", line 52, in run
    cp_.run()
  File "/usr/lib/python2.7/site-packages/salt/cli/cp.py", line 142, in run
    ret = self.run_oldstyle()
  File "/usr/lib/python2.7/site-packages/salt/cli/cp.py", line 165, in run_oldstyle
    return local.cmd(*args)
  File "/usr/lib/python2.7/site-packages/salt/client/__init__.py", line 741, in cmd
    **kwargs):
  File "/usr/lib/python2.7/site-packages/salt/client/__init__.py", line 1603, in get_cli_event_returns
    **kwargs
  File "/usr/lib/python2.7/site-packages/salt/client/__init__.py", line 1184, in get_iter_returns
    for raw in ret_iter:
  File "/usr/lib/python2.7/site-packages/salt/client/__init__.py", line 1109, in get_returns_no_block
    no_block=True, auto_reconnect=self.auto_reconnect)
  File "/usr/lib/python2.7/site-packages/salt/utils/event.py", line 642, in get_event
    ret = self._get_event(wait, tag, match_func, no_block)
  File "/usr/lib/python2.7/site-packages/salt/utils/event.py", line 544, in _get_event
    mtag, data = self.unpack(raw, self.serial)
  File "/usr/lib/python2.7/site-packages/salt/utils/event.py", line 435, in unpack
    data = serial.loads(mdata, encoding="utf-8")
  File "/usr/lib/python2.7/site-packages/salt/payload.py", line 144, in loads
    ret = msgpack.loads(msg, use_list=True, ext_hook=ext_type_decoder, encoding=encoding)
  File "msgpack/_unpacker.pyx", line 138, in msgpack._unpacker.unpackb (msgpack/_unpacker.cpp:138)
UnicodeDecodeError: "utf8" codec can"t decode byte 0x8b in position 1: invalid start byte

what result do you expect? What is the error message actually seen?

I don"t know what this is.

Oct.22,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b37f0e-4065f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b37f0e-4065f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?