Red Hat Satellite 6 repository sync failed with PLP0000: not well-formed (invalid token)
Environment
- Red Hat Satellite 6.x
Issue
-
Red Hat Satellite 6 repository sync failed with PLP0000: not well-formed (invalid token):
2020-04-28T12:08:18 [I|app|] Current user set to testuser (admin) 2020-04-28T12:08:18 [E|bac|] PLP0000: not well-formed (invalid token): line 156, column 200 (Katello::Errors::PulpError) /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.59/app/lib/actions/pulp/abstract_async_task.rb:122:in `block in external_task=' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.59/app/lib/actions/pulp/abstract_async_task.rb:120:in `each' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.59/app/lib/actions/pulp/abstract_async_task.rb:120:in `external_task=' /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.10.0.59/app/lib/actions/pulp/repository/sync.rb:34:in `external_task=' /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.6.1/lib/dynflow/action/polling.rb:98:in `poll_external_task_with_rescue' /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.1.6.1/lib/dynflow/action/polling.rb:21:in `run'
Resolution
-
Check and verify proxy/ firewall is configured to allow communication between Red Hat Satellite 6 server and Red Hat CDN network.
-
Verify Red Hat CDN URL is set to
https://cdn.redhat.com:WebUI: Content > Subscriptions > Manage Manifet > Red Hat CDN URL = https://cdn.redhat.com > Update
For more KB articles/solutions related to Red Hat Satellite 6.x Repository Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Repository Issues.
Root Cause
-
production.logand/var/log/messagesshows pulp is trying to reachhttps://access.redhat.com/(wrong URL) instead ofhttps://cdn.redhat.comfor downloading contents.Apr 27 14:34:59 satellite.example.com pulp: py.warnings:WARNING: [0a8342b5] (2396-89792) Apr 27 14:34:59 satellite.example.com pulp: pulp_rpm.plugins.importers.yum.sync:INFO: [0a8342b5] Downloading metadata from https://access.redhat.com/management/contracts/12128037/content/dist/rhel/server/7/7Server/x86_64/ceph-osd/2/os/. Apr 27 14:35:00 satellite.example.com pulp: pulp_rpm.plugins.importers.yum.sync:INFO: [0a8342b5] Parsing metadata. Apr 27 14:35:01 satellite.example.com pulp: pulp.server.async.tasks:INFO: [0a8342b5] Task failed : [0a8342b5-d4ad-44b0-bd07-cf68fd5fee76] .. .. Apr 27 14:35:01 satellite.example.com pulp: celery.app.trace:ERROR: [0a8342b5] (2396-89792) Exception: not well-formed (invalid token): line 156, column 200 Apr 27 14:35:01 satellite.example.com pulp: celery.app.trace:INFO: [05bd0f2e] Task pulp.server.async.tasks._release_resource[05bd0f2e-3ba0-4211-888c-ad9087f1355d] succeeded in 0.00406265900006s: None Apr 27 14:35:01 satellite.example.com pulp: pulp.server.event.http:ERROR: [18649966] Received HTTP 404 from HTTP notifier to https://satellite.example.com.bete.ericy.com/katello/api/v2/repositories/sync_complete?token=dapfZVxmzcyFjCmnXi8KUPE4y4k85xhX. Apr 27 14:35:01 satellite.example.com pulp: pulp.server.async.tasks:INFO: [18649966] Task failed : [18649966-667a-4bb6-bb0e-3b1f01db47f0] Apr 27 14:35:01 satellite.example.com pulp: celery.app.trace:ERROR: [18649966] (2408-27040) Task pulp.server.managers.repo.sync.sync[18649966-667a-4bb6-bb0e-3b1f01db47f0] raised unexpected: PulpExecutionException('Importer indicated a failed response',)# grep 'Downloading metadata from' /var/log/messages Apr 30 15:51:42 satellite.example.com pulp: pulp_rpm.plugins.importers.yum.sync:INFO: [94226e79] Downloading metadata from https://access.redhat.com/management/contracts/12128037/content/dist/rhel/server/7/7Server/x86_64/optional/os/. Apr 30 15:51:42 satellite.example.com pulp: pulp_rpm.plugins.importers.yum.sync:INFO: [26db679e] Downloading metadata from https://access.redhat.com/management/contracts/12128037/content/dist/rhel/server/7/7Server/x86_64/os/. Apr 30 15:51:43 satellite.example.com pulp: pulp_rpm.plugins.importers.yum.sync:INFO: [94226e79] Downloading metadata from https://access.redhat.com/management/contracts/12128037/content/dist/rhel/server/7/7Server/x86_64/optional/os/. Apr 30 15:51:43 satellite.example.com pulp: pulp_rpm.plugins.importers.yum.sync:INFO: [26db679e] Downloading metadata from https://access.redhat.com/management/contracts/12128037/content/dist/rhel/server/7/7Server/x86_64/os/.
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.