Pulp2 to Pulp3 migration fails with the following error - ForemanTasks::TaskError: Task xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx: Katello::Errors::Pulp3Error: cursor "_django_curs_xxxxxxxxxxxxxxx_x" does not exist

Solution Verified - Updated -

Issue

  • Pulp2 to Pulp3 migration fails with the following error:
2024-03-20 11:45:52 -0500: Migrating rpm content to Pulp 3 0/142603Migration failed, You will want to investigate: https://satellite.example.com/foreman_tasks/tasks/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
rake aborted!
ForemanTasks::TaskError: Task xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx: Katello::Errors::Pulp3Error: cursor "_django_curs_140591872157504_1" does not exist
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.1.55/lib/katello/tasks/pulp3_migration.rake:43:in `block (2 levels) in <top (required)>'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
Tasks: TOP => katello:pulp3_migration
(See full trace by running task with --trace)
                                                                      [FAIL]
Failed executing preserve_output=true foreman-rake katello:pulp3_migration, exit status 1
--------------------------------------------------------------------------------
Scenario [Prepare content for Pulp 3] failed.

The following steps ended up in failing state:

  [content-prepare]

Environment

  • Red Hat Satellite 6.9

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content