Open calvinhp opened 5 years ago
thanks for the PR :) any chance you can paste the error here just to make it easier for others who might be running into the same issue?
The error you will see when this is happening is the following:
vagrant@salt:~$ sudo salt salt test.ping
[WARNING ] Returner unavailable: expected string or buffer
salt:
True
and in the debug mode you will see the following traceback:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/salt/client/__init__.py", line 1074, in get_iter_returns
if self.returners['{0}.get_load'.format(self.opts['master_job_cache'])](jid) == {}:
File "/usr/lib/python2.7/dist-packages/salt/returners/elasticsearch_return.py", line 410, in get_load
return salt.utils.json.loads(data)
File "/usr/lib/python2.7/dist-packages/salt/utils/json.py", line 98, in loads
raise exc
TypeError: expected string or buffer
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue.
This PR is still open
Thank you for updating this issue. It is no longer marked as stale.
This issue has shown up in a previous issue in the repo, but it appears that sometime along the line the
elasticsearch
Python API changed to return dictionaries instead of the current behavior which is to return a dictionary of the job cache.Originally posted by @msteed in https://github.com/saltstack/salt/issues/23125#issuecomment-140512958