satellite-sync is failing with either "ProtocolError for satellite.rhn.redhat.com /SAT-DUMP: 502 Proxy Error" or "ProtocolError for satellite.rhn.redhat.com /SAT-DUMP: 403 MediaTypeCommon"

Solution Verified - Updated -

Issue

When running satellite-sync without the --no-ssl option we get these errors:

03:46:47    Retrieving / parsing short package metadata: rhel-x86_64-client-workstation-5 (6508)
03:48:48 ERROR: server.dump.channel_packages_short('<the systemid>', 'rhel-x86_64-client-workstation-5', 1390333341): <ProtocolError for satellite.rhn.redhat.com /SAT-DUMP: 502 Proxy Error>
03:49:38    Retrieving / parsing short package metadata: rhel-x86_64-es-4 (27)
03:51:04    Retrieving / parsing short package metadata: rhel-x86_64-server-5 (48)
03:53:04 ERROR: server.dump.channel_packages_short('<the systemid>', 'rhel-x86_64-server-5', 1390852290): <ProtocolError for satellite.rhn.redhat.com /SAT-DUMP: 502 Proxy Error>
03:55:05 ERROR: server.dump.channel_packages_short('<the systemid>', 'rhel-x86_64-server-5', 1390852290): <ProtocolError for satellite.rhn.redhat.com /SAT-DUMP: 502 Proxy Error>
03:57:04    Retrieving / parsing short package metadata: rhel-x86_64-server-6 (12174)
03:59:04 ERROR: server.dump.channel_packages_short('<the systemid>', 'rhel-x86_64-server-6', 1390901115): <ProtocolError for satellite.rhn.redhat.com /SAT-DUMP: 502 Proxy Error>
04:01:05 ERROR: server.dump.channel_packages_short('<the systemid>', 'rhel-x86_64-server-6', 1390901115): <ProtocolError for satellite.rhn.redhat.com /SAT-DUMP: 502 Proxy Error>
04:03:05 ERROR: server.dump.channel_packages_short('<the systemid>', 'rhel-x86_64-server-6', 1390901115): <ProtocolError for satellite.rhn.redhat.com /SAT-DUMP: 502 Proxy Error>
04:05:06 ERROR: server.dump.channel_packages_short('<the systemid>', 'rhel-x86_64-server-6', 1390901115): <ProtocolError for satellite.rhn.redhat.com /SAT-DUMP: 502 Proxy Error>
04:07:07 ERROR: server.dump.channel_packages_short('<the systemid>', 'rhel-x86_64-server-6', 1390901115): <ProtocolError for satellite.rhn.redhat.com /SAT-DUMP: 502 Proxy Error>
+++ sending log as an email +++

SYNC ERROR:

(Check logs/email for potentially more detail)

ERROR: server.dump.channel_packages_short('<the systemid>', 'rhel-x86_64-server-6', 1390901115): <ProtocolError for satellite.rhn.redhat.com /SAT-DUMP: 502 Proxy Error>
  • When using the --no-ssl option we get these errors:
00:36:02 Retrieving short package metadata (used for indexing)
00:36:03    Retrieving / parsing short package metadata: rhel-i386-as-4 (8563)
00:36:08 ERROR: server.dump.channel_packages_short('<the systemid>', 'rhel-i386-as-4', 1379532043): <ProtocolError for satellite.rhn.redhat.com /SAT-DUMP: 403 MediaTypeCommon>
00:36:13 ERROR: server.dump.channel_packages_short('<the systemid>', 'rhel-i386-as-4', 1379532043): <ProtocolError for satellite.rhn.redhat.com /SAT-DUMP: 403 MediaTypeCommon>
00:36:17 ERROR: server.dump.channel_packages_short('<the systemid>', 'rhel-i386-as-4', 1379532043): <ProtocolError for satellite.rhn.redhat.com /SAT-DUMP: 403 MediaTypeCommon>
00:36:22 ERROR: server.dump.channel_packages_short('<the systemid>', 'rhel-i386-as-4', 1379532043): <ProtocolError for satellite.rhn.redhat.com /SAT-DUMP: 403 MediaTypeCommon>
00:36:26 ERROR: server.dump.channel_packages_short('<the systemid>', 'rhel-i386-as-4', 1379532043): <ProtocolError for satellite.rhn.redhat.com /SAT-DUMP: 403 MediaTypeCommon>
00:36:27
SYNC ERROR:

Exception reported from satellite.example.com
Time: Tue Jan 28 00:36:27 2014
Exception type spacewalk.satellite_tools.syncLib.RhnSyncException

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.4/site-packages/spacewalk/satellite_tools/satsync.py", line 225, in main
    ret = method()
  File "/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/satsync.py", line 311, in _step_short
    return self.syncer.processShortPackages()
  File "/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/satsync.py", line 881, in processShortPackages
    stream_loader.process(package_ids)
  File "/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/satsync.py", line 2002, in process
    stream = self.loader(*args)
  File "/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/xmlWireSource.py", line 235, in getChannelShortPackagesXmlStream
    (self.systemid, channel, last_modified))
  File "/usr/lib/python2.4/site-packages/spacewalk/satellite_tools/xmlWireSource.py", line 155, in _openSocketStream
    stream = apply(func, params)
  File "/usr/lib/python2.4/site-packages/rhn/rpclib.py", line 654, in __call__
    return self._send(self._name, args)
  File "/usr/lib/python2.4/site-packages/rhn/rpclib.py", line 390, in _request
    raise pe
RhnSyncException: ERROR: server.dump.channel_packages_short('<the systemid>', 'rhel-i386-as-4', 1379532043): <ProtocolError for satellite.rhn.redhat.com /SAT-DUMP: 403 MediaTypeCommon>

Environment

  • Red Hat Satellite 5.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.