Hi all,
We are running pulpcore 3.95.3.
After resetting the Pulp database, we are seeing failures in the automatic orphan_cleanup task.
Below is the task detail:
{
“pulp_href”: “/pulp/api/v3/tasks/019caca3-6ab5-7339-be5b-209463b26221/”,
“state”: “failed”,
“name”: “pulpcore.app.tasks.orphan.orphan_cleanup”,
“started_at”: “2026-03-02T04:18:51.844101Z”,
“finished_at”: “2026-03-02T04:18:51.907020Z”,
“error”: {
“description”: “portal “_django_curs_140137546135360_sync_1” does not exist”
}
}
Stack Trace
“traceback”: " File “/usr/local/lib/python3.11/site-packages/pulpcore/tasking/tasks.py”, line 72, in _execute_task\n result = task_function()\n ^^^^^^^^^^^^^^^\n File “/usr/local/lib/python3.11/site-packages/pulpcore/app/tasks/orphan.py”, line 62, in orphan_cleanup\n for bulk_content in queryset_iterator(content):\n File “/usr/local/lib/python3.11/site-packages/pulpcore/app/tasks/orphan.py”, line 34, in queryset_iterator\n primary_key_buffer.append(next(iterator))\n ^^^^^^^^^^^^^^\n File “/usr/local/lib/python3.11/site-packages/django/db/models/query.py”, line 518, in _iterator\n yield from iterable\n File “/usr/local/lib/python3.11/site-packages/django/db/models/query.py”, line 287, in iter\n for row in compiler.results_iter(\n ^^^^^^^^^^^^^^^^^^^^^^\n File “/usr/local/lib/python3.11/site-packages/django/db/models/sql/compiler.py”, line 1513, in results_iter\n results = self.execute_sql(\n ^^^^^^^^^^^^^^^^^\n File “/usr/local/lib/python3.11/site-packages/django/db/models/sql/compiler.py”, line 1562, in execute_sql\n cursor.execute(sql, params)\n File “/usr/local/lib/python3.11/site-packages/django/db/backends/utils.py”, line 67, in execute\n return self._execute_with_wrappers(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File “/usr/local/lib/python3.11/site-packages/django/db/backends/utils.py”, line 80, in _execute_with_wrappers\n return executor(sql, params, many, context)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File “/usr/local/lib/python3.11/site-packages/django/db/backends/utils.py”, line 84, in _execute\n with self.db.wrap_database_errors:\n File “/usr/local/lib/python3.11/site-packages/django/db/utils.py”, line 91, in exit\n raise dj_exc_value.with_traceback(traceback) from exc_value\n File “/usr/local/lib/python3.11/site-packages/django/db/backends/utils.py”, line 89, in _execute\n return self.cursor.execute(sql, params)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File “/usr/local/lib/python3.11/site-packages/psycopg/_server_cursor.py”, line 98, in execute\n raise ex.with_traceback(None)\n",
“description”: “portal “_django_curs_140137546135360_sync_1” does not exist”
Questions
What could cause the portal "... does not exist" error during orphan_cleanup?
We are using:
- pulpcore 3.95.3
- PostgreSQL 13
- External Postgres and Redis
Any guidance would be appreciated.
Thanks.
You only need it to remove artifacts from the filesystem that are for content that is no longer in any repository, and a brand-new installation has no content/repositories/artifacts to clean up.