Pulpcore-worker error

I tried to run pulpcore-worker and got the below errors

podman run --name pulp-worker pulp-minimal:3.69.2 pulpcore-worker

Traceback (most recent call last):
File “/usr/local/bin/pulpcore-worker”, line 8, in
sys.exit(worker())
File “/usr/local/lib/python3.9/site-packages/click/core.py”, line 1157, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/click/core.py”, line 1078, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python3.9/site-packages/click/core.py”, line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python3.9/site-packages/click/core.py”, line 783, in invoke
return __callback(*args, **kwargs)
File “/usr/local/lib/python3.9/site-packages/pulpcore/tasking/entrypoint.py”, line 43, in worker
PulpcoreWorker().run(burst=burst)
File “/usr/local/lib/python3.9/site-packages/pulpcore/tasking/worker.py”, line 542, in run
self.handle_available_tasks()
File “/usr/local/lib/python3.9/site-packages/pulpcore/tasking/worker.py”, line 482, in handle_available_tasks
keep_looping = self.unblock_tasks()
File “/usr/local/lib/python3.9/site-packages/pulpcore/tasking/worker.py”, line 309, in unblock_tasks
_(“Running task %s was not previously marked unblocked. Fixing.”, task.pk)
TypeError: gettext() takes 1 positional argument but 2 were given

Has anyone seen this before?

The pulpcore and plugins version are
“versions”: {
“deb”: “3.5.0”,
“rpm”: “3.27.2”,
“core”: “3.69.2”,
“file”: “3.69.2”,
“maven”: “0.8.1”,
“ostree”: “2.4.4”,
“python”: “3.12.5”,
“ansible”: “0.23.1”,
“certguard”: “3.69.2”,
“container”: “2.22.1”

Thanks

1 Like

No, but I know exactly that line of code.
Are you in the middle of (or at least close to) an upgrade?

OK, I see, the problem has been solved. But if fear you are not using a y-version of pulpcore that will receive any updates. Can you try again with pulpcore 3.73 or 3.85?

1 Like

I’m encountering a conflict while trying to build with pulpcore==3.85.1.

pip reports:

INFO: pip is looking at multiple versions of django-storages[boto3] to determine which version is compatible with other requirements.
ERROR: Cannot install django-storages[boto3]==1.14.6 and pulpcore[s3]==3.85.1 because these package versions have conflicting dependencies.

The conflict seems to be caused by:

  • pulpcore[s3]==3.85.1 requiring django-storages==1.14.6 with the s3 extra
  • django-storages[boto3]==1.14.6 pulling in its own dependencies for the same base package

I also tried using pulpcore==3.84.0. That version allowed me to start pulp-worker, but I still have a task stuck in the running state. I attempted to destroy the task, but it failed with a generic error and no detailed message.