Skip to content

Instantly share code, notes, and snippets.

@jlsherrill
Last active April 22, 2021 17:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlsherrill/19003b646c9d4a1623da301e46ec2263 to your computer and use it in GitHub Desktop.
Save jlsherrill/19003b646c9d4a1623da301e46ec2263 to your computer and use it in GitHub Desktop.
Cursor not found during content migration
Prepare content for Pulp 3: 
Checking for valid Katello configuraton.
Starting task.
2021-04-21 20:50:47 -0400: Pre-migrating Pulp 2 ERRATUM content (general info) 43078/57958Migration failed, You will want to investigate: https://dhcp-8-29-228.lab.eng.rdu2.redhat.com/foreman_tasks/tasks/6b1d5918-1ecd-4628-b77f-ae128352c85e
rake aborted!
ForemanTasks::TaskError: Task 6b1d5918-1ecd-4628-b77f-ae128352c85e: Katello::Errors::Pulp3Error: Cursor not found, cursor id: 179922846418, full error: {'ok': 0.0, 'errmsg': 'Cursor not found, cursor id: 179922846418', 'code': 43, 'codeName': 'CursorNotFound'}
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.1.27/lib/katello/tasks/pulp3_migration.rake:35:in `block (2 levels) in <top (required)>'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'
Tasks: TOP => katello:pulp3_migration
(See full trace by running task with --trace)

Create a directory and file:

mkdir /etc/systemd/system/pulpcore-worker@.service.d/
vi  /etc/systemd/system/pulpcore-worker@.service.d/settings.conf

with contents:

[Service]
User=pulp
Environment=PULP_CONTENT_PREMIGRATION_BATCH_SIZE=50

Restart services:

systemctl daemon-reload
foreman-maintain service restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment