RPM is missing under /var/lib/pulp/media/artifact

**Problem: Im trying to update a server that is subscribed to my foreman katello host. At 50% of the update im getting the error message:
[MIRROR] bcc-tools-0.30.0-9.el9.x86_64.rpm: Status code: 500 for https://foreman.domain.com/pulp/content/Org/Test_Enviroment/CentOS9StreamAll/custom/CentOS9Stream/CentOS9StreamAppStream/Packages/b/bcc-tools-0.30.0-9.el9.x86_64.rpm (IP: 10.38.51.50)
All the network connections are fine so thats not the problem. In the foreman server log /var/log/messages it shows me the message:
Exception: Expected path ‘/var/lib/pulp/media/artifact/46/8ae2610814500b3c3bdd2971d805b4ce95de0c2e3bcf14014de81f7fd1ee8a’ is not found
Feb 7 12:28:56 s-i-wz-patch01 pulpcore-content[4340]: [07/Feb/2025:11:28:56 +0000] “GET /pulp/content/Org/Test_Enviroment/CentOS9StreamAll/custom/CentOS9Stream/CentOS9StreamAppStream/Packages/b/bcc-tools-0.30.0-9.el9.x86_64.rpm HTTP/1.1” 500 245 “-” “libdnf (CentOS Stream 9; generic; Linux.x86_64)”

So the bcc-tools RPM is missing. I already did a full sync and promoted it but its still missing. Any ideas what I can do? Thank you for your help!

**Expected outcome: Update servers without error

**Foreman and Proxy versions: Latest

**Distribution and version: CentOS 9

1 Like

Can you attempt to “repair” the repository? I believe there is an operation like that.

Do you know the command? Ive heard it before but i didnt find a command

I only know how to do these things using the pulp cli.

$ pulp rpm repository version repair --help
Usage: pulp rpm repository version repair [OPTIONS]

Options:
  --repository TEXT  A resource to look for identified by <name> or by <href>.
  --version INTEGER  Repository version number
  --help             Show this message and exit.

But i suspect there is an action somewhere in the gui too.

GOAT! Thank you, did a pulp repair and it works now.

1 Like