Hi All
Please help identifying the problem.
Problem:
Cleanup keeps failing.
https --auth admin:passwd POST https://ita01.group.net:30082/pulp/api/v3/repair/
Pulp-minimal:3.35
Expected outcome:
Cleanup to succeed.
Pulpcore version:
"versions": {
"deb": "3.0.0",
"rpm": "3.22.4",
"core": "3.35.0",
"file": "1.14.5",
"maven": "0.6.0",
"ostree": "2.1.3",
"python": "3.10.0",
"ansible": "0.20.0",
"certguard": "1.6.5",
"container": "2.16.2"
}
Pulp plugins installed and their versions:
Operating system - distribution and version:
Containers runs on SLES15SP5
Other relevant data:
Task 1
pulp task show --href /pulp/api/v3/tasks/018af592-9339-741c-992c-8cce730b3528/
{
"pulp_href": "/pulp/api/v3/tasks/018af592-9339-741c-992c-8cce730b3528/",
"pulp_created": "2023-10-03T14:45:38.496468+02:00",
"state": "failed",
"name": "pulpcore.app.tasks.repository.repair_all_artifacts",
"logging_cid": "ec33e45ab2dd4067bd86f28611f35071",
"created_by": "/pulp/api/v3/users/1/",
"started_at": "2023-10-03T14:45:38.697973+02:00",
"finished_at": "2023-10-03T21:13:26.450606+02:00",
"error": {
"reason": "Task process died unexpectedly with exitcode 1."
},
"worker": "/pulp/api/v3/workers/018af58f-c9f9-79df-86db-ad6a062e296d/",
"parent_task": null,
"child_tasks": [],
"task_group": null,
"progress_reports": [
{
"message": "Identify missing units",
"code": "repair.missing",
"state": "completed",
"total": null,
"done": 0,
"suffix": null
},
{
"message": "Identify corrupted units",
"code": "repair.corrupted",
"state": "completed",
"total": null,
"done": 0,
"suffix": null
},
{
"message": "Repair corrupted units",
"code": "repair.repaired",
"state": "completed",
"total": null,
"done": 0,
"suffix": null
}
],
"created_resources": [],
"reserved_resources_record": [
"/api/v3/repair/",
"shared:/pulp/api/v3/domains/01897284-ff96-78ee-8ff8-9dcf388d08eb/"
]
}
2023-10-03T14:42:16.747514147+02:00 stderr F + /usr/bin/wait_on_postgres.py
2023-10-03T14:42:20.611980015+02:00 stdout F Waiting on postgresql to start...
2023-10-03T14:42:20.611980015+02:00 stdout F Postgres started.
2023-10-03T14:42:20.750398770+02:00 stderr F + /usr/bin/wait_on_database_migrations.sh
2023-10-03T14:42:20.752791055+02:00 stdout F Checking for database migrations
2023-10-03T14:42:29.302394540+02:00 stdout F Database migrated!
2023-10-03T14:42:29.302859836+02:00 stderr F + export PATH=/usr/local/bin:/usr/bin/
2023-10-03T14:42:29.302859836+02:00 stderr F + PATH=/usr/local/bin:/usr/bin/
2023-10-03T14:42:29.302895415+02:00 stderr F + exec pulpcore-worker
2023-10-03T14:42:35.832077860+02:00 stderr F pulp [None]: pulpcore.tasking.entrypoint:INFO: Starting distributed type worker
2023-10-03T14:42:35.924086104+02:00 stderr F pulp [None]: pulpcore.tasking.worker:INFO: New worker '1@fed12e36e8aa' discovered
2023-10-03T14:42:36.014747471+02:00 stderr F pulp [None]: pulpcore.tasking.worker:INFO: Cleaning up task 018af4f0-d40b-7a97-a2e1-cae6690a6a16 and marking as failed. Reason: Worker has gone missing.
2023-10-03T14:45:38.705740225+02:00 stderr F pulp [ec33e45ab2dd4067bd86f28611f35071]: pulpcore.tasking.tasks:INFO: Starting task 018af592-9339-741c-992c-8cce730b3528
2023-10-03T14:45:38.706093780+02:00 stderr F pulp [ec33e45ab2dd4067bd86f28611f35071]: pulpcore.app.tasks.repository:INFO: Repairing artifacts.'
2023-10-03T21:13:26.407610951+02:00 stderr F Process Process-1:
2023-10-03T21:13:26.407610951+02:00 stderr F Traceback (most recent call last):
2023-10-03T21:13:26.407610951+02:00 stderr F File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 89, in _execute
2023-10-03T21:13:26.407610951+02:00 stderr F return self.cursor.execute(sql, params)
2023-10-03T21:13:26.407610951+02:00 stderr F File "/usr/local/lib/python3.8/site-packages/psycopg/cursor.py", line 737, in execute
2023-10-03T21:13:26.407610951+02:00 stderr F raise ex.with_traceback(None)
2023-10-03T21:13:26.407610951+02:00 stderr F psycopg.OperationalError: consuming input failed: EOF detected
2023-10-03T21:13:26.407610951+02:00 stderr F
2023-10-03T21:13:26.407610951+02:00 stderr F The above exception was the direct cause of the following exception:
2023-10-03T21:13:26.407610951+02:00 stderr F
2023-10-03T21:13:26.407610951+02:00 stderr F Traceback (most recent call last):
2023-10-03T21:13:26.407610951+02:00 stderr F File "/usr/lib64/python3.8/multiprocessing/process.py", line 315, in _bootstrap
2023-10-03T21:13:26.407610951+02:00 stderr F self.run()
2023-10-03T21:13:26.407610951+02:00 stderr F File "/usr/lib64/python3.8/multiprocessing/process.py", line 108, in run
2023-10-03T21:13:26.407610951+02:00 stderr F self._target(*self._args, **self._kwargs)
2023-10-03T21:13:26.407610951+02:00 stderr F File "/usr/local/lib/python3.8/site-packages/pulpcore/tasking/worker.py", line 496, in _perform_task
2023-10-03T21:13:26.407610951+02:00 stderr F execute_task(task)
2023-10-03T21:13:26.407610951+02:00 stderr F File "/usr/local/lib/python3.8/site-packages/pulpcore/tasking/tasks.py", line 48, in execute_task
2023-10-03T21:13:26.407610951+02:00 stderr F contextvars.copy_context().run(_execute_task, task)
2023-10-03T21:13:26.407610951+02:00 stderr F File "/usr/local/lib/python3.8/site-packages/pulpcore/tasking/tasks.py", line 76, in _execute_task
2023-10-03T21:13:26.407610951+02:00 stderr F task.set_completed()
2023-10-03T21:13:26.407610951+02:00 stderr F File "/usr/local/lib/python3.8/site-packages/pulpcore/app/models/task.py", line 175, in set_completed
2023-10-03T21:13:26.407610951+02:00 stderr F rows = Task.objects.filter(pk=self.pk, state=TASK_STATES.RUNNING).update(
2023-10-03T21:13:26.407610951+02:00 stderr F File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 1206, in update
2023-10-03T21:13:26.407610951+02:00 stderr F rows = query.get_compiler(self.db).execute_sql(CURSOR)
2023-10-03T21:13:26.407610951+02:00 stderr F File "/usr/local/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1984, in execute_sql
2023-10-03T21:13:26.407610951+02:00 stderr F cursor = super().execute_sql(result_type)
2023-10-03T21:13:26.407610951+02:00 stderr F File "/usr/local/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1562, in execute_sql
2023-10-03T21:13:26.407610951+02:00 stderr F cursor.execute(sql, params)
2023-10-03T21:13:26.407610951+02:00 stderr F File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 67, in execute
2023-10-03T21:13:26.407610951+02:00 stderr F return self._execute_with_wrappers(
2023-10-03T21:13:26.407610951+02:00 stderr F File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
2023-10-03T21:13:26.407610951+02:00 stderr F return executor(sql, params, many, context)
2023-10-03T21:13:26.407610951+02:00 stderr F File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 89, in _execute
2023-10-03T21:13:26.407610951+02:00 stderr F return self.cursor.execute(sql, params)
2023-10-03T21:13:26.407610951+02:00 stderr F File "/usr/local/lib/python3.8/site-packages/django/db/utils.py", line 91, in __exit__
2023-10-03T21:13:26.407610951+02:00 stderr F raise dj_exc_value.with_traceback(traceback) from exc_value
2023-10-03T21:13:26.407610951+02:00 stderr F File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 89, in _execute
2023-10-03T21:13:26.407610951+02:00 stderr F return self.cursor.execute(sql, params)
2023-10-03T21:13:26.407610951+02:00 stderr F File "/usr/local/lib/python3.8/site-packages/psycopg/cursor.py", line 737, in execute
2023-10-03T21:13:26.407610951+02:00 stderr F raise ex.with_traceback(None)
2023-10-03T21:13:26.407610951+02:00 stderr F django.db.utils.OperationalError: consuming input failed: EOF detected
2023-10-03T21:13:26.427985879+02:00 stderr F pulp [None]: pulpcore.tasking.worker:WARNING: Task process for 018af592-9339-741c-992c-8cce730b3528 exited with non zero exitcode 1.
2023-10-03T21:13:26.441036039+02:00 stderr F pulp [None]: pulpcore.tasking.worker:INFO: Cleaning up task 018af592-9339-741c-992c-8cce730b3528 and marking as failed. Reason: Task process died unexpectedly with exitcode 1.
2023-10-04T04:05:52.436712601+02:00 stderr F pulp [0fc145d73e984678852e2508b4cd32d3]: pulpcore.tasking.tasks:INFO: Starting task 018af86f-34f1-7c27-8ebb-77fd384e0852
2023-10-04T04:05:52.451443468+02:00 stderr F pulp [0fc145d73e984678852e2508b4cd32d3]: pulp_rpm.app.tasks.synchronizing:INFO: Synchronizing: repository=upstream-SLES12-SP5-Pool remote=remote_upstream-SLES12-SP5-Pool
Task 2
pulp task show --uuid 018af947-8d72-779c-9fc6-7276114e745e
{
"pulp_href": "/pulp/api/v3/tasks/018af947-8d72-779c-9fc6-7276114e745e/",
"pulp_created": "2023-10-04T08:02:10.712482+02:00",
"state": "failed",
"name": "pulpcore.app.tasks.repository.repair_all_artifacts",
"logging_cid": "d18b434379844fc9bcab7b5cc38c8784",
"created_by": "/pulp/api/v3/users/1/",
"started_at": "2023-10-04T08:02:11.065654+02:00",
"finished_at": "2023-10-04T15:16:05.857742+02:00",
"error": {
"reason": "Task process died unexpectedly with exitcode 1."
},
"worker": "/pulp/api/v3/workers/018af58f-c9f9-79df-86db-ad6a062e296d/",
"parent_task": null,
"child_tasks": [],
"task_group": null,
"progress_reports": [
{
"message": "Identify missing units",
"code": "repair.missing",
"state": "completed",
"total": null,
"done": 0,
"suffix": null
},
{
"message": "Identify corrupted units",
"code": "repair.corrupted",
"state": "completed",
"total": null,
"done": 0,
"suffix": null
},
{
"message": "Repair corrupted units",
"code": "repair.repaired",
"state": "completed",
"total": null,
"done": 0,
"suffix": null
}
],
"created_resources": [],
"reserved_resources_record": [
"/api/v3/repair/",
"shared:/pulp/api/v3/domains/01897284-ff96-78ee-8ff8-9dcf388d08eb/"
]
}
2023-10-04T07:58:16.779250845+02:00 stderr F pulp [d91ed6554c004e29b464c9fde5f54451]: pulpcore.tasking.tasks:INFO: Task completed 018af8e9-9518-76d5-95a5-2d48aa9950bc
2023-10-04T07:58:16.923536821+02:00 stderr F pulp [9cc10983e95b427282de716b82f7c33d]: pulpcore.tasking.tasks:INFO: Starting task 018af8e9-9c3e-7c80-bb1e-fa898290f0d6
2023-10-04T07:58:19.526500590+02:00 stderr F pulp [9cc10983e95b427282de716b82f7c33d]: pulpcore.tasking.tasks:INFO: Task completed 018af8e9-9c3e-7c80-bb1e-fa898290f0d6
2023-10-04T07:58:19.708167927+02:00 stderr F pulp [640ae4ef2fce457baf1b00463db23b5c]: pulpcore.tasking.tasks:INFO: Starting task 018af8e9-a30d-77a7-a3f2-075051ca2784
2023-10-04T08:01:41.081997570+02:00 stderr F pulp [640ae4ef2fce457baf1b00463db23b5c]: pulpcore.tasking.tasks:INFO: Task completed 018af8e9-a30d-77a7-a3f2-075051ca2784
2023-10-04T08:02:11.072955901+02:00 stderr F pulp [d18b434379844fc9bcab7b5cc38c8784]: pulpcore.tasking.tasks:INFO: Starting task 018af947-8d72-779c-9fc6-7276114e745e
2023-10-04T08:02:11.073307087+02:00 stderr F pulp [d18b434379844fc9bcab7b5cc38c8784]: pulpcore.app.tasks.repository:INFO: Repairing artifacts.'
2023-10-04T15:16:05.806204684+02:00 stderr F Process Process-88:
2023-10-04T15:16:05.806204684+02:00 stderr F Traceback (most recent call last):
2023-10-04T15:16:05.806204684+02:00 stderr F File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 89, in _execute
2023-10-04T15:16:05.806204684+02:00 stderr F return self.cursor.execute(sql, params)
2023-10-04T15:16:05.806204684+02:00 stderr F File "/usr/local/lib/python3.8/site-packages/psycopg/cursor.py", line 737, in execute
2023-10-04T15:16:05.806204684+02:00 stderr F raise ex.with_traceback(None)
2023-10-04T15:16:05.806204684+02:00 stderr F psycopg.OperationalError: consuming input failed: EOF detected
2023-10-04T15:16:05.806204684+02:00 stderr F
2023-10-04T15:16:05.806204684+02:00 stderr F The above exception was the direct cause of the following exception:
2023-10-04T15:16:05.806204684+02:00 stderr F
2023-10-04T15:16:05.806204684+02:00 stderr F Traceback (most recent call last):
2023-10-04T15:16:05.806204684+02:00 stderr F File "/usr/lib64/python3.8/multiprocessing/process.py", line 315, in _bootstrap
2023-10-04T15:16:05.806204684+02:00 stderr F self.run()
2023-10-04T15:16:05.806204684+02:00 stderr F File "/usr/lib64/python3.8/multiprocessing/process.py", line 108, in run
2023-10-04T15:16:05.806204684+02:00 stderr F self._target(*self._args, **self._kwargs)
2023-10-04T15:16:05.806204684+02:00 stderr F File "/usr/local/lib/python3.8/site-packages/pulpcore/tasking/worker.py", line 496, in _perform_task
2023-10-04T15:16:05.806204684+02:00 stderr F execute_task(task)
2023-10-04T15:16:05.806204684+02:00 stderr F File "/usr/local/lib/python3.8/site-packages/pulpcore/tasking/tasks.py", line 48, in execute_task
2023-10-04T15:16:05.806204684+02:00 stderr F contextvars.copy_context().run(_execute_task, task)
2023-10-04T15:16:05.806204684+02:00 stderr F File "/usr/local/lib/python3.8/site-packages/pulpcore/tasking/tasks.py", line 76, in _execute_task
2023-10-04T15:16:05.806204684+02:00 stderr F task.set_completed()
2023-10-04T15:16:05.806204684+02:00 stderr F File "/usr/local/lib/python3.8/site-packages/pulpcore/app/models/task.py", line 175, in set_completed
2023-10-04T15:16:05.806204684+02:00 stderr F rows = Task.objects.filter(pk=self.pk, state=TASK_STATES.RUNNING).update(
2023-10-04T15:16:05.806204684+02:00 stderr F File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 1206, in update
2023-10-04T15:16:05.806204684+02:00 stderr F rows = query.get_compiler(self.db).execute_sql(CURSOR)
2023-10-04T15:16:05.806204684+02:00 stderr F File "/usr/local/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1984, in execute_sql
2023-10-04T15:16:05.806204684+02:00 stderr F cursor = super().execute_sql(result_type)
2023-10-04T15:16:05.806204684+02:00 stderr F File "/usr/local/lib/python3.8/site-packages/django/db/models/sql/compiler.py", line 1562, in execute_sql
2023-10-04T15:16:05.806204684+02:00 stderr F cursor.execute(sql, params)
2023-10-04T15:16:05.806204684+02:00 stderr F File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 67, in execute
2023-10-04T15:16:05.806204684+02:00 stderr F return self._execute_with_wrappers(
2023-10-04T15:16:05.806204684+02:00 stderr F File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 80, in _execute_with_wrappers
2023-10-04T15:16:05.806204684+02:00 stderr F return executor(sql, params, many, context)
2023-10-04T15:16:05.806204684+02:00 stderr F File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 89, in _execute
2023-10-04T15:16:05.806204684+02:00 stderr F return self.cursor.execute(sql, params)
2023-10-04T15:16:05.806204684+02:00 stderr F File "/usr/local/lib/python3.8/site-packages/django/db/utils.py", line 91, in __exit__
2023-10-04T15:16:05.806204684+02:00 stderr F raise dj_exc_value.with_traceback(traceback) from exc_value
2023-10-04T15:16:05.806204684+02:00 stderr F File "/usr/local/lib/python3.8/site-packages/django/db/backends/utils.py", line 89, in _execute
2023-10-04T15:16:05.806204684+02:00 stderr F return self.cursor.execute(sql, params)
2023-10-04T15:16:05.806204684+02:00 stderr F File "/usr/local/lib/python3.8/site-packages/psycopg/cursor.py", line 737, in execute
2023-10-04T15:16:05.806204684+02:00 stderr F raise ex.with_traceback(None)
2023-10-04T15:16:05.806204684+02:00 stderr F django.db.utils.OperationalError: consuming input failed: EOF detected
2023-10-04T15:16:05.831377744+02:00 stderr F pulp [None]: pulpcore.tasking.worker:WARNING: Task process for 018af947-8d72-779c-9fc6-7276114e745e exited with non zero exitcode 1.
2023-10-04T15:16:05.844915163+02:00 stderr F pulp [None]: pulpcore.tasking.worker:INFO: Cleaning up task 018af947-8d72-779c-9fc6-7276114e745e and marking as failed. Reason: Task process died unexpectedly with exitcode 1.
Thank you.