-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[BUG] Can't copy certain files after upgarde to salt-3002.7 #61008
Comments
I'm guessing that the file you're trying to copy is in UTF-16 and starts with the bytes Salt shouldn't be trying to decode any files that it's copying, if if it does it shouldn't be assuming they're all UTF-8. I don't see any workaround, other than changing the file before copying, and then changing it back afterwards on all the minions. What version did you upgrade from? |
|
Ah sorry - from 3002.6 up to 3002.7:
|
Another example, other file type -> .p12:
|
Oh right, they're not even text files. 3002.7 only had three changes in it. |
I used clear_cache and sync_all on minions. This is first time when i need to clear some cache after upgrade, no problems up to .7. |
I'm afraid I don't know. I've looked at the .6 -> .7 diffs and don't see how it could have caused this. |
I can't do an upgrade at this moment. Okey, thanks. |
This may be a duplicate of #53490, which says adding |
Hey.
I have some problems with salt-cp after upgrade to latest 3002 version.
Some type of files are crashing python script, fe. - [master ~]0$ sudo salt-cp 'host' tree.bin /tmp :
[ERROR ] An un-handled exception was caught by salt's global exception handler:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
Traceback (most recent call last):
File "/usr/bin/salt-cp", line 11, in
load_entry_point('salt==3002.7', 'console_scripts', 'salt-cp')()
File "/usr/lib/python3.6/site-packages/salt/scripts.py", line 429, in salt_cp
client.run()
File "/usr/lib/python3.6/site-packages/salt/cli/cp.py", line 53, in run
cp_.run()
File "/usr/lib/python3.6/site-packages/salt/cli/cp.py", line 145, in run
ret = self.run_oldstyle()
File "/usr/lib/python3.6/site-packages/salt/cli/cp.py", line 153, in run_oldstyle
arg = [self._load_files(), self.opts["dest"]]
File "/usr/lib/python3.6/site-packages/salt/cli/cp.py", line 128, in _load_files
files.update(self.file_dict(fn))
File "/usr/lib/python3.6/site-packages/salt/cli/cp.py", line 117, in file_dict
data = fp.read()
File "/usr/lib64/python3.6/codecs.py", line 321, in decode
(result, consumed) = self.buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
Traceback (most recent call last):
File "/usr/bin/salt-cp", line 11, in
load_entry_point('salt==3002.7', 'console_scripts', 'salt-cp')()
File "/usr/lib/python3.6/site-packages/salt/scripts.py", line 429, in salt_cp
client.run()
File "/usr/lib/python3.6/site-packages/salt/cli/cp.py", line 53, in run
cp.run()
File "/usr/lib/python3.6/site-packages/salt/cli/cp.py", line 145, in run
ret = self.run_oldstyle()
File "/usr/lib/python3.6/site-packages/salt/cli/cp.py", line 153, in run_oldstyle
arg = [self._load_files(), self.opts["dest"]]
File "/usr/lib/python3.6/site-packages/salt/cli/cp.py", line 128, in _load_files
files.update(self.file_dict(fn))
File "/usr/lib/python3.6/site-packages/salt/cli/cp.py", line 117, in file_dict
data = fp.read()
File "/usr/lib64/python3.6/codecs.py", line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
All was ok before upgrade, current version:
Salt Version:
Salt: 3002.7
Dependency Versions:
cffi: Not Installed
cherrypy: 5.6.0
dateutil: Not Installed
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
Jinja2: 2.8.1
libgit2: Not Installed
M2Crypto: 0.33.0
Mako: Not Installed
msgpack: 0.6.2
msgpack-pure: Not Installed
mysql-python: 1.3.12
pycparser: Not Installed
pycrypto: Not Installed
pycryptodome: Not Installed
pygit2: Not Installed
Python: 3.6.8 (default, Aug 13 2020, 07:46:32)
python-gnupg: Not Installed
PyYAML: 3.11
PyZMQ: 17.0.0
smmap: Not Installed
timelib: Not Installed
Tornado: 4.5.3
ZMQ: 4.1.4
System Versions:
dist: rhel 7.9 Maipo
locale: UTF-8
machine: x86_64
release: 3.10.0-1160.42.2.el7.x86_64
system: Linux
version: Red Hat Enterprise Linux Server 7.9 Maipo`
Any idea?
Latest RHEL7.9 OS without EPEL packages.
The text was updated successfully, but these errors were encountered: