-
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
'utf8' codec can't decode byte 0x81 in position 29: invalid start byte after upgrade to 2014.1.13 or 2014.7.0 #18053
Comments
Thanks for the detailed report @myg0v! That will make it easier to track this one down. I am also wondering if this is related to #17227. |
I've also experienced this problem and have enclosed the details. salt-master --versions-report Salt: 2014.7.0 Python: 2.6.6 (r266:84292, Jan 22 2014, 09:42:36) Jinja2: unknown M2Crypto: 0.20.2 msgpack-python: 0.1.13 msgpack-pure: Not Installed pycrypto: 2.0.1 libnacl: Not Installed PyYAML: 3.10 ioflo: Not Installed PyZMQ: 14.3.1 RAET: Not Installed ZMQ: 3.2.4 Mako: Not Installed I edited my '''/usr/lib64/python2.6/encodings/utf_8.py''' file and added a 'print input' to the decode function in order to see the actual outpt which is listed below. ... snip ... Microsoft Office Proofing Tools 2013 - Espa�ol [ERROR ] An un-handled exception was caught by salt's global exception handler: UnicodeDecodeError: 'ascii' codec can't decode byte 0xa4 in position 43: ordinal not in range(128) Traceback (most recent call last): File "/usr/bin/salt", line 10, in salt_main() File "/usr/lib/python2.6/site-packages/salt/scripts.py", line 240, in salt_main client.run() File "/usr/lib/python2.6/site-packages/salt/cli/__init__.py", line 189, in run self._output_ret(ret_, out) File "/usr/lib/python2.6/site-packages/salt/cli/__init__.py", line 243, in _output_ret salt.output.display_output(ret, out, self.config) File "/usr/lib/python2.6/site-packages/salt/output/__init__.py", line 44, in display_output display_data = get_printout(out, opts)(data).rstrip() File "/usr/lib/python2.6/site-packages/salt/output/nested.py", line 123, in output return nest.display(ret, __opts__.get('nested_indent', 0), '', '') File "/usr/lib/python2.6/site-packages/salt/output/nested.py", line 114, in display out = self.display(val, indent + 4, '', out) File "/usr/lib/python2.6/site-packages/salt/output/nested.py", line 113, in display prefix=prefix) File "/usr/lib/python2.6/site-packages/salt/output/nested.py", line 58, in ustring indent, color, prefix, msg.decode(encoding), endc, suffix) UnicodeDecodeError: 'ascii' codec can't decode byte 0xa4 in position 43: ordinal not in range(128) Traceback (most recent call last): File "/usr/bin/salt", line 10, in salt_main() File "/usr/lib/python2.6/site-packages/salt/scripts.py", line 240, in salt_main client.run() File "/usr/lib/python2.6/site-packages/salt/cli/__init__.py", line 189, in run self._output_ret(ret_, out) File "/usr/lib/python2.6/site-packages/salt/cli/__init__.py", line 243, in _output_ret salt.output.display_output(ret, out, self.config) File "/usr/lib/python2.6/site-packages/salt/output/__init__.py", line 44, in display_output display_data = get_printout(out, opts)(data).rstrip() File "/usr/lib/python2.6/site-packages/salt/output/nested.py", line 123, in output return nest.display(ret, __opts__.get('nested_indent', 0), '', '') File "/usr/lib/python2.6/site-packages/salt/output/nested.py", line 114, in display out = self.display(val, indent + 4, '', out) File "/usr/lib/python2.6/site-packages/salt/output/nested.py", line 113, in display prefix=prefix) File "/usr/lib/python2.6/site-packages/salt/output/nested.py", line 58, in ustring indent, color, prefix, msg.decode(encoding), endc, suffix) UnicodeDecodeError: 'ascii' codec can't decode byte 0xa4 in position 43: ordinal not in range(128) Another lines that result in same error: Outils de v�rification linguistique 2013 de Microsoft Office�- Fran�ais |
I know this is not an ideal solution but for me it's usable until somebody with a better understanding can provide a real fix and hopefully these details will save somebody the effort of tracing it from the ground up. edit /usr/lib/python2.6/site-packages/salt/output/nested.py except UnicodeDecodeError: try: return u'{0}{1}{2}{3}{4}{5}\n'.format( indent, color, prefix, msg.decode(encoding), endc, suffix) except: return u'{0}{1}{2}{3}{4}{5}\n'.format( indent, color, prefix, msg.decode("ISO-8859-1"), endc, suffix) Here is the Diff:
Output now looks like this ...snip... Microsoft Office Proofing Tools 2013 - Espa¤ol: 15.0.4569.1506 ..snip.. Outils de vrification linguistique 2013 de Microsoft Officeÿ- Franais: 15.0.4569.1506 |
After upgrading from Salt stack version 2014.1.10 to 2014.1.13 (CentOS 6 master and Windows Server 2008 R2 minion) I receive the following error after the state.highstate (or salt 'win' state.sls test) is completed:
It is very strange because on the minion the executed states was all successfully executed.
No error in minion log.
UPDATE1
I upgraded the master to 2014.7.0 (2014.7.0-3.el6) and downgraded the Windows Server 2008 R2 minion to 2014.1.10 (default config). The error still exists, but it seems it is not in all state files. It seems it is an issue with the master version...
Maybe I should try to downgrade the master back to 2014.1.10, but I don't know where I can find older versions of salt?!
I found the old v2014.1.10 salt and salt-master here:
ftp://ftp.sunet.se/pub/Linux/distributions/fedora/epel/6/i386/salt-2014.1.10-4.el6.noarch.rpm
ftp://ftp.sunet.se/pub/Linux/distributions/fedora/epel/6/i386/salt-master-2014.1.10-4.el6.noarch.rpm
It seems in epel is only the latest version salt-master-2014.7.0-3.el6 available.
Here is the error I received in the master log:
Master version report:
UPDATE2
Master downgraded to 2014.1.10, everything runs smoothly without errors.
The text was updated successfully, but these errors were encountered: