On Red Hat Satellite 5 rhnpush fails with 'Internal Server Error' for a custom package.

Solution Verified - Updated -

Environment

  • Red Hat Satellite 5.x
  • rhnpush

Issue

  • For a certain custom package,rhnpush command fails with below error :
# rhnpush --server=localhost -c mycustomechannel /test/<pacakge-name>.rpm
Username: admin
Password: 
Internal server error 500 Internal Server Error
Error pushing /test/<pacakge-name>.rpm:  (500)
Waiting 2 seconds and trying again...
Internal server error 500 Internal Server Error
Error pushing /test/<pacakge-name>.rpm:  (500)
Waiting 5 seconds and trying again...
Internal server error 500 Internal Server Error
Error pushing /test/<pacakge-name>.rpm:  (500)
Waiting 3 seconds and trying again...
Giving up after 3 attempts
  • rhnpush for a particular package fails with below errors in /var/log/httpd/error_log:
[Tue Apr 05 17:04:39 2016] [error]   File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnPackageUpload.py", line 143, in push_package
:
[Tue Apr 05 17:04:39 2016] [error]   File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/driver_postgresql.py", line 328, in _executemany
[Tue Apr 05 17:04:39 2016] [error]     self._real_cursor.executemany(self.sql, all_kwargs)
[Tue Apr 05 17:04:39 2016] [error] DataError: invalid byte sequence for encoding "UTF8": 0xa3

Root Cause

  • There was an "accented character" in the CPAN source of the package which caused this issue,the package was successfully pushed after rebuilding the package with the mentioned correction.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments