salt icon indicating copy to clipboard operation
salt copied to clipboard

UnicodeDecodeError when saltutil.sync_modules for Windows salt-minion 2015.8.3

Open WangWenchao opened this issue 10 years ago • 5 comments

UnicodeDecodeError when saltutil.sync_modules for Windows salt-minion 2015.8.3

salt '<minion_id>' saltutil.sync_modules
<minion_id>:
    The minion function caused an exception: Traceback (most recent call last):
      File "C:\salt\bin\lib\site-packages\salt\minion.py", line 1039, in _thread_return
        return_data = func(*args, **kwargs)
      File "C:\salt\bin\lib\site-packages\salt\modules\saltutil.py", line 331, in sync_modules
        ret = _sync('modules', saltenv)
      File "C:\salt\bin\lib\site-packages\salt\modules\saltutil.py", line 112, in _sync
        source, sub_env, include_pat=r'E@\.(pyx?|so|zip)$'
      File "C:\salt\bin\lib\site-packages\salt\modules\cp.py", line 444, in cache_dir
        path, saltenv, include_empty, include_pat, exclude_pat
      File "C:\salt\bin\lib\site-packages\salt\fileclient.py", line 233, in cache_dir
        if fn_.strip() and fn_.startswith(path):
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 85: ordinal not in range(128)

WangWenchao avatar Dec 22 '15 06:12 WangWenchao

@WangWenchao - thanks for the report

ssgward avatar Dec 22 '15 16:12 ssgward

@WangWenchao, do you know if this was not happening with previous versions of salt?

jfindlay avatar Dec 22 '15 17:12 jfindlay

@jfindlay thank your , this was not happened with previous version of salt , as I update salt from 2014.7 to 2015.5 , and to 2015.8.1 during 2015 , but when we upgrade to 2015.8.3 I get the problem , have back to 2015.8.1 .

WangWenchao avatar Dec 29 '15 08:12 WangWenchao

i found the same error at 2015.8.3 ,and is not happened with 2015.5.0

gaoyang-gridsum avatar Jan 26 '16 10:01 gaoyang-gridsum

@gaoyang-gridsum, this should be fixed in 2015.8.4.

jfindlay avatar Jan 26 '16 21:01 jfindlay