The satellite-sync fails with 'IOError: [Errno 22] Invalid argument' in getFileChecksum method
Issue
- The
satellite-syncfails with below error,
line 1576, in _proces_batch
prompt, nevermorethan, process_function_args)
File "/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/satsync.py",
line 1556, in _processWithProgressBar
process_function(chunk, *process_function_args)
File "/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/satsync.py",
line 927, in _diff_packages_process
source=0, check_rpms=self.check_rpms)
File "/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/satsync.py",
line 1026, in _process_package
package_size, checksum_type, checksum)
File "/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/satsync.py",
line 991, in _verify_file
l_checksum = getFileChecksum(checksum_type, filename=abs_path)
File "/usr/lib/python2.4/site-packages/spacewalk/common/checksum.py", line 59,
in getFileChecksum
buf = f.read(buffer_size)
IOError: [Errno 22] Invalid argument
Environment
- Red Hat Satellite 5.7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.