CentOS repository sync in Red Hat Satellite 6.2 fails with `ParseError: not well-formed (invalid token): line 624, column 11` error.

Solution Verified - Updated -

Environment

  • Red Hat Satellite 6.2

Issue

  • CentOS repository sync in Red Hat Satellite 6.2 fails with ParseError: not well-formed (invalid token): line 624, column 11 error.

  • Repository sync fails with PLP0000: Importer indicated a failed response error message.

  • Synchronization task fails with Proxy Error ( Forefront TMG denied the specified Uniform Resource Locator (URL). ) error message.

Resolution

  • Check the proxy settings.

Diagnostic Steps

  • The below log snippet from /var/log/messages depicts the proxy error.
Feb 21 15:46:45 XXX pulp: pulp.server.async.tasks:INFO: Task failed : [a05aab1f-74ee-4737-aa7f-e76a4d570b19] : Error retrieving metadata: Proxy Error ( Forefront TMG denied the specified Uniform Resource Locator (URL).  )
Feb 21 15:47:11 XXX pulp: pulp.server.async.tasks:INFO: Task failed : [2fe3fcc4-191e-4664-b6e8-a4c51db40165] : Error retrieving metadata: Proxy Error ( Forefront TMG denied the specified Uniform Resource Locator (URL).  )
Feb 21 15:52:31 XXX pulp: pulp.server.async.tasks:INFO: Task failed : [e34def46-601e-48db-8a23-fd94e41f38a4] : Error retrieving metadata: Proxy Error ( Forefront TMG denied the specified Uniform Resource Locator (URL).  )
  • pulp.logs file shows ParseError: not well-formed (invalid token): line 624, column 11 error.
Mar  2 07:50:56 XXX pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (20615-66976) not well-formed (invalid token): line 624, column 11
Mar  2 07:50:56 XXX pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (20615-66976) Traceback (most recent call last):
Mar  2 07:50:56 XXX pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (20615-66976)   File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/sync.py", l
ine 255, in run
Mar  2 07:50:56 XXX pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (20615-66976)     metadata_files = self.get_metadata(metadata_files)
Mar  2 07:50:56 XXX pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (20615-66976)   File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/sync.py", l
ine 433, in get_metadata
Mar  2 07:50:56 XXX pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (20615-66976)     metadata_files.generate_dbs()
Mar  2 07:50:56 XXX pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (20615-66976)   File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/repomd/meta
data.py", line 295, in generate_dbs
Mar  2 07:50:56 XXX pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (20615-66976)     for element in generator:
Mar  2 07:50:56 XXX pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (20615-66976)   File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/repomd/pack
ages.py", line 54, in package_list_generator
Mar  2 07:50:56 XXX pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (20615-66976)     for event, element in xml_iterator:
Mar  2 07:50:56 XXX pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (20615-66976)   File "<string>", line 91, in next
Mar  2 07:50:56 XXX pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (20615-66976) ParseError: not well-formed (invalid token): line 624, column 11
  • PLP0000: Importer indicated a failed response error is also found.

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