salt: Salt-master: Could not deserialize msgpack message
Hello,
Today salt-master welcomed me with such message:
2015-01-05 17:12:08,160 [salt.payload ][CRITICAL][26157] Could not deserialize msgpack message: This o
ften happens when trying to read a file not in binary mode.Please open an issue and include the following
error:
2015-01-05 17:12:08,183 [salt.log.setup ][ERROR ][26157] An un-handled exception was caught by salt's
global exception handler:
UnpackValueError:
Traceback (most recent call last):
File "/usr/bin/salt", line 10, in <module>
salt_main()
File "/usr/lib/python2.7/dist-packages/salt/scripts.py", line 351, in salt_main
client.run()
File "/usr/lib/python2.7/dist-packages/salt/cli/salt.py", line 191, in run
for full_ret in cmd_func(**kwargs):
File "/usr/lib/python2.7/dist-packages/salt/client/__init__.py", line 594, in cmd_cli
**kwargs):
File "/usr/lib/python2.7/dist-packages/salt/client/__init__.py", line 1235, in get_cli_event_returns
expect_minions=(verbose or show_timeout)
File "/usr/lib/python2.7/dist-packages/salt/client/__init__.py", line 885, in get_iter_returns
for raw in ret_iter:
File "/usr/lib/python2.7/dist-packages/salt/client/__init__.py", line 809, in get_returns_no_block
raw = event.get_event_noblock()
File "/usr/lib/python2.7/dist-packages/salt/utils/event.py", line 450, in get_event_noblock
mtag, data = self.unpack(raw, self.serial)
File "/usr/lib/python2.7/dist-packages/salt/utils/event.py", line 296, in unpack
data = serial.loads(mdata)
File "/usr/lib/python2.7/dist-packages/salt/payload.py", line 95, in loads
return msgpack.loads(msg, use_list=True)
File "_unpacker.pyx", line 119, in msgpack._unpacker.unpackb (msgpack/_unpacker.cpp:119)
UnpackValueError
While running any state.*
command on any minion.
Running ubuntu 14.04
and salt:
root@salt-master:~# salt --versions-report
Salt: 2015.2.0-37-g0452b43
Python: 2.7.6 (default, Mar 22 2014, 22:59:56)
Jinja2: 2.7.2
M2Crypto: 0.21.1
msgpack-python: 0.3.0
msgpack-pure: Not Installed
pycrypto: 2.6.1
libnacl: Not Installed
PyYAML: 3.10
ioflo: Not Installed
PyZMQ: 14.0.1
RAET: Not Installed
ZMQ: 4.0.4
Mako: 0.9.1
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 63 (27 by maintainers)
I ran into this problem today while fiddling about with configuration and testing features and found my problem to be a mismatch in hash_type. I had entered SHA256 as suggested by the salt-master log-file in /etc/salt/master, while the accepted value was sha256. Apparently case sensitive. I’m not sure if this helps anyone, but it fixed the problem for me.