[BUG] salt-cp UnicodeDecodeError: 'utf-8' #59899
Labels
Bug
broken, incorrect, or confusing behavior
Confirmed
Salt engineer has confirmed bug/feature - often including a MCVE
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
Windows
Milestone
Description of Issue
Copying windows files produces
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xba in position 10: invalid start byte
Copying files created on linux machine working fine.
Setup
master:
Minion:
`PS C:\salt> ./salt-minion --versions
Salt Version:
Salt: 3001.4
Dependency Versions:
cffi: 1.12.2
cherrypy: 17.4.1
dateutil: 2.8.0
docker-py: Not Installed
gitdb: 2.0.5
gitpython: Not Installed
Jinja2: 2.10.1
libgit2: Not Installed
M2Crypto: Not Installed
Mako: 1.0.7
msgpack-pure: Not Installed
msgpack-python: 1.0.0
mysql-python: Not Installed
pycparser: 2.19
pycrypto: Not Installed
pycryptodome: 3.9.7
pygit2: Not Installed
Python: 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)]
python-gnupg: 0.4.4
PyYAML: 5.3.1
PyZMQ: 18.0.1
smmap: 2.0.5
timelib: 0.2.4
Tornado: 4.5.3
ZMQ: 4.3.1
System Versions:
dist:
locale: cp1250
machine: AMD64
release: 2016Server
system: Windows
version: 2016Server 10.0.14393 SP0`
Steps to Reproduce Issue
download file from windows in my case it's https://www.catalog.update.microsoft.com/Search.aspx?q=KB4340355
copy files to minion using:
salt-cp 'server' sqlserver2016kb4340355.exe "C:\\scripts\\sqlserver2016kb4340355.exe"
Workaround:
When i use --chunked file is successfully copied to windows but copying is very slow :(
salt-cp -C 'server' sqlserver2016kb4340355.exe "C:\scripts\sqlserver2016kb4340355.exe"
I tried to make a zip file at linux machine after download this file but it also throws errors
Versions Report
Master: 3002.5 @ debian 9 stretch
Minion: 3001.4 @ 2016Server 10.0.14393 SP0
The text was updated successfully, but these errors were encountered: