[Red Hat Satellite 6.2] Repository sync task fails with error : [E] PLP0000: Importer indicated a failed response (Katello::Errors::PulpError)

Solution Unverified - Updated -

Environment

  • Red Hat Satellite 6.2.x

Issue

  • Repository sync task fails with error : [E] PLP0000: Importer indicated a failed response (Katello::Errors::PulpError)

Resolution

  • Stop foreman-tasks service on satellite server:
    • If Satellite is installed on Red Hat Enterprise Linux 7 then use below command:
# systemctl stop foreman-tasks
  • If Satellite is installed on Red Hat Enterprise Linux 6 then use below command:
# service foreman-tasks stop
  • Once foreman-tasks service is stopped then we need to stop running tasks by using below commands:
    # foreman-rake console 

    > ForemanTasks::Task.where(:state => :paused).where(:label => "Actions::Katello::Repository::Sync").destroy_all

    > ForemanTasks::Task.where(:state => :paused).where(:label => "Actions::Pulp::Consumer::GenerateApplicability").destroy_all

    > ForemanTasks::Task.where(:state => :paused).where(:label => "Actions::Katello::System::GenerateApplicability").destroy_all

    > quit
  • Now stop pulp related services, re-initialiaze its database and restart katello services
    # for i in pulp_resource_manager pulp_workers pulp_celerybeat; do service $i stop; done

    # sudo -u apache pulp-manage-db

    # katello-service restart
  • After completing all above steps you can try to refresh the Manifest on the Satellite server.
    Satellite webUI → Go to Content → Red Hat Subscriptions → Click on Manage Manifest → Click on Refresh Manifest.

Root Cause

  • Pulp DB is blocking the sync task.

Diagnostic Steps

  • Check /var/log/foreman/production.log for following error messages:

2017-08-02 03:26:59 [foreman-tasks/action] [E] PLP0000: Importer indicated a failed response (Katello::Errors::PulpError) | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.137/app/lib/actions/pulp/abstract_async_task.rb:121:in `block in external_task=' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.137/app/lib/actions/pulp/abstract_async_task.rb:119:in `each' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.137/app/lib/actions/pulp/abstract_async_task.rb:119:in `external_task=' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.13.6/lib/dynflow/action/polling.rb:98:in `poll_external_task_with_rescue' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.13.6/lib/dynflow/action/polling.rb:21:in `run' | /opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:305:in `block (2 levels) in create_worker' | /opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:304:in `catch' | /opt/theforeman/tfm/root/usr/share/gems/gems/concurrent-ruby-1.0.0/lib/concurrent/executor/ruby_thread_pool_executor.rb:304:in `block in create_worker' | /opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `call' | /opt/theforeman/tfm/root/usr/share/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context' 2017-08-02 03:26:59 [foreman-tasks/action] [E] PLP0000: Importer indicated a failed response (Katello::Errors::PulpError) | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.137/app/lib/actions/pulp/abstract_async_task.rb:121:in `block in external_task=' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.137/app/lib/actions/pulp/abstract_async_task.rb:119:in `each' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.137/app/lib/actions/pulp/abstract_async_task.rb:119:in `external_task=' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.13.6/lib/dynflow/action/polling.rb:98:in `poll_external_task_with_rescue' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.13.6/lib/dynflow/action/polling.rb:21:in `run'

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.

Close

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