Failed: 'relation "core_basedistribution" does not exist

Hello,

I do as the below to remove a rpm repository ( the rpm repository has autopublish enabled.)

  • first, rpm distribution destroy
  • 2nd, rpm remote destroy
  • 3rd, rpm repository destory

The above procedure was working well before. But today on 2nd step, I got the error:
…Error: Task /pulp/api/v3/tasks/01991517-692e-7431-97bf-721b1e6a13b6/ failed: ‘relation “core_basedistribution” does not exist
LINE 1: UPDATE “core_basedistribution” SET “remote_id” = NULL WHERE …
^’

So I leave this remote there, just destroy the distribution and repository.
How to fix this error? it is possible?

Thanks in advance!

Our pulp3 has: pulpcore 3.8à.1, pulp_rpm 3.30.1.

pulp status output

{
“versions”: [
{
“component”: “core”,
“version”: “3.80.1”,
“package”: “pulpcore”,
“module”: “pulpcore.app”,
“domain_compatible”: true
},
{
“component”: “ansible”,
“version”: “0.26.0”,
“package”: “pulp-ansible”,
“module”: “pulp_ansible.app”,
“domain_compatible”: false
},
{
“component”: “container”,
“version”: “2.25.1”,
“package”: “pulp-container”,
“module”: “pulp_container.app”,
“domain_compatible”: true
},
{
“component”: “deb”,
“version”: “3.5.2”,
“package”: “pulp_deb”,
“module”: “pulp_deb.app”,
“domain_compatible”: false
},
{
“component”: “maven”,
“version”: “0.10.1”,
“package”: “pulp-maven”,
“module”: “pulp_maven.app”,
“domain_compatible”: true
},
{
“component”: “ostree”,
“version”: “2.4.8”,
“package”: “pulp-ostree”,
“module”: “pulp_ostree.app”,
“domain_compatible”: true
},
{
“component”: “python”,
“version”: “3.16.0”,
“package”: “pulp-python”,
“module”: “pulp_python.app”,
“domain_compatible”: true
},
{
“component”: “rpm”,
“version”: “3.30.1”,
“package”: “pulp-rpm”,
“module”: “pulp_rpm.app”,
“domain_compatible”: true
},
{
“component”: “certguard”,
“version”: “3.80.1”,
“package”: “pulpcore”,
“module”: “pulp_certguard.app”,
“domain_compatible”: true
},
{
“component”: “file”,
“version”: “3.80.1”,
“package”: “pulpcore”,
“module”: “pulp_file.app”,
“domain_compatible”: true
}
],
“online_workers”: [
{
“pulp_href”: “/pulp/api/v3/workers/0198e10f-9d14-78e2-b3ba-1f4eaf30851d/”,
“prn”: “prn:core.worker:0198e10f-9d14-78e2-b3ba-1f4eaf30851d”,
“pulp_created”: “2025-08-25T11:49:13.621909Z”,
“pulp_last_updated”: “2025-08-25T11:49:13.621929Z”,
“name”: “1@16023972e850”,
“last_heartbeat”: “2025-09-04T20:00:28.107900Z”,
“versions”: {
“deb”: “3.5.2”,
“rpm”: “3.30.1”,
“core”: “3.80.1”,
“file”: “3.80.1”,
“maven”: “0.10.1”,
“ostree”: “2.4.8”,
“python”: “3.16.0”,
“ansible”: “0.26.0”,
“certguard”: “3.80.1”,
“container”: “2.25.1”
},
“current_task”: null
},
{
“pulp_href”: “/pulp/api/v3/workers/0198e10f-a2fe-702f-a013-37c9a23c0911/”,
“prn”: “prn:core.worker:0198e10f-a2fe-702f-a013-37c9a23c0911”,
“pulp_created”: “2025-08-25T11:49:15.135252Z”,
“pulp_last_updated”: “2025-08-25T11:49:15.135270Z”,
“name”: “1@f84c5de392c3”,
“last_heartbeat”: “2025-09-04T20:00:27.021903Z”,
“versions”: {
“deb”: “3.5.2”,
“rpm”: “3.30.1”,
“core”: “3.80.1”,
“file”: “3.80.1”,
“maven”: “0.10.1”,
“ostree”: “2.4.8”,
“python”: “3.16.0”,
“ansible”: “0.26.0”,
“certguard”: “3.80.1”,
“container”: “2.25.1”
},
“current_task”: “/pulp/api/v3/tasks/01991647-b716-78e1-8337-1d7025ee5886/”
}
],
“online_api_apps”: [
{
“name”: “15@pulp-api”,
“last_heartbeat”: “2025-09-04T20:00:33.836583Z”,
“versions”: {
“deb”: “3.5.2”,
“rpm”: “3.30.1”,
“core”: “3.80.1”,
“file”: “3.80.1”,
“maven”: “0.10.1”,
“ostree”: “2.4.8”,
“python”: “3.16.0”,
“ansible”: “0.26.0”,
“certguard”: “3.80.1”,
“container”: “2.25.1”
}
},
{
“name”: “14@pulp-api”,
“last_heartbeat”: “2025-09-04T20:00:33.846489Z”,
“versions”: {
“deb”: “3.5.2”,
“rpm”: “3.30.1”,
“core”: “3.80.1”,
“file”: “3.80.1”,
“maven”: “0.10.1”,
“ostree”: “2.4.8”,
“python”: “3.16.0”,
“ansible”: “0.26.0”,
“certguard”: “3.80.1”,
“container”: “2.25.1”
}
}
],
“online_content_apps”: [
{
“name”: “17@pulp-content”,
“last_heartbeat”: “2025-09-04T20:00:33.773723Z”,
“versions”: {
“deb”: “3.5.2”,
“rpm”: “3.30.1”,
“core”: “3.80.1”,
“file”: “3.80.1”,
“maven”: “0.10.1”,
“ostree”: “2.4.8”,
“python”: “3.16.0”,
“ansible”: “0.26.0”,
“certguard”: “3.80.1”,
“container”: “2.25.1”
}
},
{
“name”: “16@pulp-content”,
“last_heartbeat”: “2025-09-04T20:00:33.770053Z”,
“versions”: {
“deb”: “3.5.2”,
“rpm”: “3.30.1”,
“core”: “3.80.1”,
“file”: “3.80.1”,
“maven”: “0.10.1”,
“ostree”: “2.4.8”,
“python”: “3.16.0”,
“ansible”: “0.26.0”,
“certguard”: “3.80.1”,
“container”: “2.25.1”
}
}
],
“database_connection”: {
“connected”: true
},
“redis_connection”: {
“connected”: false
},
“storage”: {
“total”: 4292870144000,
“used”: 3327246266368,
“free”: 965623877632
},
“content_settings”: {
“content_origin”: “http://pulp_content:24816”,
“content_path_prefix”: “/pulp/content/”
},
“domain_enabled”: false
}