Satellite 5 sync with ISS or RHN fails with an encoding error
Issue
- Why does satellite 5.6 fail to sync from the data comming from my other Satellite 5?
- Satellite 5 sync with ISS or RHN fails with an encoding error
Exception type <class 'psycopg2.DataError'>
Exception Handler Information
Traceback (most recent call last):
File "/usr/bin/satellite-sync", line 139, in main
return satsync.Runner().main()
File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/satsync.py", line 229, in main
ret = method()
File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/satsync.py", line 343, in _step_packages
self._affected_channels = self.syncer.import_packages()
File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/satsync.py", line 1602, in import_packages
[sources])
File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/satsync.py", line 1576, in _proces_batch
prompt, nevermorethan, process_function_args)
File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/satsync.py", line 1556, in _processWithProgressBar
process_function(chunk, *process_function_args)
File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/satsync.py", line 1583, in _import_packages_process
sync_handlers.import_packages(batch, sources)
File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/sync_handlers.py", line 385, in import_packages
importer.run()
File "/usr/lib/python2.6/site-packages/spacewalk/server/importlib/importLib.py", line 646, in run
self.fix()
File "/usr/lib/python2.6/site-packages/spacewalk/server/importlib/packageImport.py", line 297, in fix
self.backend.processChangeLog(self.changelog_data)
File "/usr/lib/python2.6/site-packages/spacewalk/server/importlib/backend.py", line 138, in processChangeLog
h.execute(name=val['name'], time=val['time'], text=val['text'])
File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/sql_base.py", line 163, in execute
return apply(self._execute_wrapper, (self._execute, ) + p, kw)
File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/driver_postgresql.py", line 273, in _execute_wrapper
retval = apply(function, p, kw)
File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/sql_base.py", line 217, in _execute
return self._execute_(args, kwargs)
File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/driver_postgresql.py", line 287, in _execute_
self._real_cursor.execute(self.sql, params)
DataError: invalid byte sequence for encoding "UTF8": 0xc320
HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding".
Environment
- Red Hat Satellite 5
- synchronization done using Inter Satellite Sync (ISS) with a satellite that has been updated from an old version or against RHN with a satellite that has been updated from an old version
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
