Capsule Sync fails with 'PLP0000: Importer indicated a failed response' error on Red Hat Satellite.
Environment
- Red Hat Satellite 6.4 and above.
Issue
-
During a capsule sync, the error
PLP0000: Importer indicated a failed responseis generated in/var/log/foreman/production.logon the Red Hat Satellite server. -
The
pulp.server.managers.repo.sync.synctask on the Satellite shows the following traceback:traceback: | Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/celery/app/trace.py", line 367, in trace_task R = retval = fun(*args, **kwargs) File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 529, in __call__ return super(Task, self).__call__(*args, **kwargs) File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 107, in __call__ return super(PulpTask, self).__call__(*args, **kwargs) File "/usr/lib/python2.7/site-packages/celery/app/trace.py", line 622, in __protected_call__ return self.run(*args, **kwargs) File "/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py", line 827, in sync raise pulp_exceptions.PulpExecutionException(_('Importer indicated a failed response')) PulpExecutionException: Importer indicated a failed response -
On the Capsule, under the
/var/log/messagesfile, logging will indicate that an attempt to retrieve metadata from the Satellite resulted in aNot Founderror.
Resolution
- Refresh the affected Content View by re-publishing and selecting the
Force Yum Metadata Regenerationcheckbox option.
For more KB articles/solutions related to Red Hat Satellite 6.x Capsule Sync Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x Capsule Sync Issues
Root Cause
-
Broken symlinks in the pulp repository's filesystem structure caused the capsule to fail retrieve the metadata.
-
The cause of the broken symlinks is unknown, but it is currently suspected of happening during a Content View publish task.
Diagnostic Steps
-
The
PLP0000: Importer indicated a failed responseis a fairly generic error indicating that something went wrong. Since it occurred during a Capsule sync attempt, examining the Capsule logs during the time of failure yields more information. -
In the
/var/log/messagesof the capsule, the following example shows that pulp attempted to retrieve the metadata for a specified repository, ultimately resulting in a "Not Found". The pulp importer then throws an IOError and raises the exceptionPulpExecutionException: Importer indicated a failed responsewhich is reported by the Satellite.pulp: celery.worker.strategy:INFO: Received task: pulp.server.managers.repo.sync.sync[e858253b-bb36-415a-842c-ccab5eaaf779] pulp: pulp_rpm.plugins.importers.yum.sync:INFO: [e858253b] Downloading metadata from https://satellite.example.com/pulp/repos/Organization /LifecycleEnv/ContentView_name/custom/product/repo_name/. pulp: pulp_rpm.plugins.importers.yum.sync:INFO: [e858253b] Parsing metadata. pulp: pulp_rpm.plugins.importers.yum.sync:INFO: [e858253b] Downloading metadata from https://satellite.example.com/pulp/repos/Organization /LifecycleEnv/ContentView_name/custom/product/repo_name/. pulp: pulp_rpm.plugins.importers.yum.sync:INFO: [e858253b] Parsing metadata. pulp: pulp_rpm.plugins.importers.yum.sync:INFO: [e858253b] Downloading metadata from https://satellite.example.com/pulp/repos/Organization/LifecycleEnv/ContentView_name/custom/product/repo_name/. pulp: pulp_rpm.plugins.importers.yum.sync:INFO: [e858253b] Parsing metadata. pulp: pulp_rpm.plugins.importers.yum.sync:INFO: [e858253b] Downloading metadata from https://satellite.example.com/pulp/repos/Organization/LifecycleEnv/ContentView_name/custom/product/repo_name/. pulp: pulp_rpm.plugins.importers.yum.sync:INFO: [e858253b] Parsing metadata. pulp: pulp_rpm.plugins.importers.yum.sync:INFO: [e858253b] Downloading metadata files. pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: [e858253b] (13646-48000) Not Found pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: [e858253b] (13646-48000) Traceback (most recent call last): pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: [e858253b] (13646-48000) File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers /yum/sync.py", line 263, in run pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: [e858253b] (13646-48000) metadata_files = self.get_metadata(metadata_files) pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: [e858253b] (13646-48000) File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/sync.py", line 450, in get_metadatapulp: pulp_rpm.plugins.importers.yum.sync:ERROR: [e858253b] (13646-48000) metadata_files.download_metadata_files() pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: [e858253b] (13646-48000) File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers /yum/repomd/metadata.py", line 217, in download_metadata_files pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: [e858253b] (13646-48000) raise IOError(error_report.error_msg) pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: [e858253b] (13646-48000) IOError: Not Found pulp: pulp.server.async.tasks:INFO: [e858253b] Task failed : [e858253b-bb36-415a-842c-ccab5eaaf779] pulp: celery.app.trace:ERROR: [e858253b] (13646-48000) Task pulp.server.managers.repo.sync.sync[e858253b-bb36-415a-842c-ccab5eaaf779] raised unexpected: PulpExecutionException('Importer indicated a failed response',) pulp: celery.app.trace:ERROR: [e858253b] (13646-48000) Traceback (most recent call last): pulp: celery.app.trace:ERROR: [e858253b] (13646-48000) File "/usr/lib/python2.7/site-packages/celery/app/trace.py", line 367, in trace_task pulp: celery.app.trace:ERROR: [e858253b] (13646-48000) R = retval = fun(*args, **kwargs) pulp: celery.app.trace:ERROR: [e858253b] (13646-48000) File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 529, in __call__ pulp: celery.app.trace:ERROR: [e858253b] (13646-48000) return super(Task, self).__call__(*args, **kwargs) pulp: celery.app.trace:ERROR: [e858253b] (13646-48000) File "/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py", line 107, in __call__ pulp: celery.app.trace:ERROR: [e858253b] (13646-48000) return super(PulpTask, self).__call__(*args, **kwargs) pulp: celery.app.trace:ERROR: [e858253b] (13646-48000) File "/usr/lib/python2.7/site-packages/celery/app/trace.py", line 622, in __protected_call__ pulp: celery.app.trace:ERROR: [e858253b] (13646-48000) return self.run(*args, **kwargs) pulp: celery.app.trace:ERROR: [e858253b] (13646-48000) File "/usr/lib/python2.7/site-packages/pulp/server/controllers/repository.py", line 827, in sync pulp: celery.app.trace:ERROR: [e858253b] (13646-48000) raise pulp_exceptions.PulpExecutionException(_('Importer indicated a failed response')) pulp: celery.app.trace:ERROR: [e858253b] (13646-48000) PulpExecutionException: Importer indicated a failed response -
Examining the "repodata" files under the repository's directory structure on the Satellite will show it not linked to a valid file.
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.