Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

key_cache: sched prints error messages in logs #50850

akrus opened this issue Dec 13, 2018 · 2 comments


None yet
3 participants
Copy link

commented Dec 13, 2018

Description of Issue/Question


I have salt-master 2018.3.3 which was working under Ubuntu 16.04 and Python2 for a long time. After upgrade to Ubuntu 18.04 and Python3 error messages started to appear.

Steps to Reproduce Issue

key_cache: 'sched'

Results in:

2018-12-13 07:53:11,853 [salt.utils.process:754 ][ERROR   ][5051] An un-handled exception from the multiprocessing process 'Maintenance-94' was caught:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/salt/utils/", line 747, in _run
    return self._original_run()
  File "/usr/lib/python3/dist-packages/salt/", line 228, in run
  File "/usr/lib/python3/dist-packages/salt/", line 254, in handle_key_cache
    self.serial.dump(keys, cache_file)
  File "/usr/lib/python3/dist-packages/salt/", line 256, in dump
    fn_.write(self.dumps(msg, use_bin_type=True))
  File "/usr/lib/python3.6/", line 624, in func_wrapper
    return func(*args, **kwargs)
TypeError: write() argument must be str, not bytes

Versions Report

Salt Version:                                                                                                                                                                                                                                
           Salt: 2018.3.3
Dependency Versions:
           cffi: Not Installed
       cherrypy: unknown
       dateutil: 2.6.1
      docker-py: Not Installed
          gitdb: 2.0.3
      gitpython: 2.1.8
          ioflo: Not Installed
         Jinja2: 2.10
        libgit2: 0.26.0
        libnacl: Not Installed
       M2Crypto: Not Installed
           Mako: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.5.6
   mysql-python: 1.3.10
      pycparser: Not Installed
       pycrypto: 2.6.1
   pycryptodome: Not Installed
         pygit2: 0.26.2
         Python: 3.6.7 (default, Oct 22 2018, 11:32:17)
   python-gnupg: 0.4.1
         PyYAML: 3.12
          PyZMQ: 16.0.2
           RAET: Not Installed
          smmap: 2.0.3
        timelib: Not Installed
        Tornado: 4.5.3
            ZMQ: 4.2.5
System Versions:
           dist: Ubuntu 18.04 bionic
         locale: UTF-8
        machine: x86_64
        release: 4.15.0-42-generic
         system: Linux
        version: Ubuntu 18.04 bionic

This comment has been minimized.

Copy link

commented Dec 13, 2018

@akrus thanks for the report. I was able to reproduce this one.


This comment has been minimized.

Copy link

commented Jan 9, 2019

Closing this out, if the problem persists please comment & we'll re-open the issue or feel free to open a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.