Repo sync is giving Error: "no running event loop"

Problem:

repo sync is giving Error: "no running event loop"

(pulp) [root@common-yumrepo-z1-1 ~]# pulp rpm repository sync --name el9.5-24-q4-001-google --remote el9.5-24-q4-001-google-remote

repositories_rpm_rpm_list : get https://common-yumrepo-z1-1.lab-us.gcpint.ariba.com/pulp/api/v3/repositories/rpm/rpm/?name=el9.5-24-q4-001-google&offset=0&limit=1

Response: 200

remotes_rpm_rpm_list : get https://common-yumrepo-z1-1.lab-us.gcpint.ariba.com/pulp/api/v3/remotes/rpm/rpm/?name=el9.5-24-q4-001-google-remote&offset=0&limit=1

Response: 200

repositories_rpm_rpm_sync : post https://common-yumrepo-z1-1.lab-us.gcpint.ariba.com/pulp/api/v3/repositories/rpm/rpm/077c139c-441c-417c-8c69-b4b0d3615cf6/sync/

Response: 202

tasks_read : get https://common-yumrepo-z1-1.lab-us.gcpint.ariba.com/pulp/api/v3/tasks/1b9b1642-a161-48cc-aaa9-6d77ccdca9b6/

Response: 200

Started background task /pulp/api/v3/tasks/1b9b1642-a161-48cc-aaa9-6d77ccdca9b6/

Error: Task /pulp/api/v3/tasks/1b9b1642-a161-48cc-aaa9-6d77ccdca9b6/ failed: ‘no running event loop’

Expected outcome:
It should sync the repos

Pulpcore version:

(pulp) [root@common-yumrepo-z1-1 jenkins]# pip list |grep -i pulp
pulp-cli 0.29.2
pulp-container 2.14.16
pulp-file 1.12.0
pulp-glue 0.29.2
pulp-rpm 3.19.12
pulpcore 3.22.32

Operating system - distribution and version:

RHEL 9.5

Other relevant data:

Is it possible at all to upgrade to a newer release and see if the problem still exists? While 3.22 isn’t officially unsupported just yet, it is very very close to end-of-life.

1 Like

We are actually setting up ne pulp hosts , what versions would you recommend us to setup for these ?

pulp-cli
pulp-container
pulp-file
pulp-glue
pulp-rpm
pulpcore

I “know” I have seen this before when the aiohttp version is to new.
But I concur, if there is any chance you can upgrade Pulp that’d be preferable.

Which version of aiohttp is running? We def had to adapt a number of things for the 3.10 update, maybe they didn’t get backported as far as core/3.22?

(pulp) [root@common-yumrepo-z1-1 jenkins]# pip list | grep aiohttp
aiohttp 3.10.10
aiohttp-xmlrpc 1.5.0

The most-recent versions of things are:

  • core/3.69 (includes file/3.69 and certguard/3.69)
  • container/3.22
  • rpm/3.27
  • glue/0.29.2

pulp-cli itself doesn’t need to be installed in the Pulp instance’s containers - it just needs to be somewhere it can “see” Pulp. 0.29.2 is the latest version, you’re good there.

All that being said - looks like we did backport the aiohttp-3.10-related fixes to 3.22. It’s possible we missed one, ot that 3.22 has a codepath that more-recent versions don’t anymore.

In any event - if you’re just starting up, you absolutely want to be using newer versions than core/3.22 and friends!

1 Like