OK, now I have an even bigger problem. I have deleted all the Content Views, the Lifecycle Environment and all the dependencies around them (well, I believed I had…), created a new Content View with just the needed repositories - and I can’t even publish that Content View to the “Library” anymore.
2021-07-01T18:27:27 [I|app|16a17d7d] Parameters: {"searches"=>[{"type"=>"task", "task_id"=>"1451e3b5-d5d4-43ba-93bb-e164be1da5f2", "search_id"=>"1"}], "task"=>{}}
2021-07-01T18:27:27 [I|app|16a17d7d] Completed 200 OK in 80ms (Views: 0.8ms | ActiveRecord: 3.6ms | Allocations: 89868)
2021-07-01T18:27:30 [I|app|c274e17f] CONTENT_INDEX type=Katello::Rpm duration=6530.27
2021-07-01T18:27:30 [I|app|c274e17f] CONTENT_INDEX type=Katello::Rpm duration=6972.04
2021-07-01T18:27:30 [I|app|c274e17f] CONTENT_INDEX type=Katello::Rpm duration=7001.45
2021-07-01T18:27:30 [I|app|c274e17f] CONTENT_INDEX type=Katello::ModuleStream duration=3717.91
2021-07-01T18:27:31 [I|app|e83eb914] Started POST "/foreman_tasks/api/tasks/bulk_search" for 127.0.0.1 at 2021-07-01 18:27:31 +0200
2021-07-01T18:27:31 [I|app|e83eb914] Processing by ForemanTasks::Api::TasksController#bulk_search as HTML
2021-07-01T18:27:31 [I|app|e83eb914] Parameters: {"searches"=>[{"type"=>"task", "task_id"=>"1451e3b5-d5d4-43ba-93bb-e164be1da5f2", "search_id"=>"1"}], "task"=>{}}
2021-07-01T18:27:31 [I|app|e83eb914] Completed 200 OK in 77ms (Views: 0.8ms | ActiveRecord: 3.7ms | Allocations: 89868)
2021-07-01T18:27:34 [I|app|c274e17f] CONTENT_INDEX type=Katello::ModuleStream duration=4452.94
2021-07-01T18:27:34 [I|app|c274e17f] CONTENT_INDEX type=Katello::ModuleStream duration=4221.74
2021-07-01T18:27:34 [I|app|c274e17f] CONTENT_INDEX type=Katello::ModuleStream duration=4274.65
2021-07-01T18:27:35 [I|app|c274e17f] CONTENT_INDEX type=Katello::Erratum duration=4249.89
2021-07-01T18:27:35 [I|app|c274e17f] CONTENT_INDEX type=Katello::Erratum duration=126.26
2021-07-01T18:27:36 [I|app|373fb6c1] Started POST "/foreman_tasks/api/tasks/bulk_search" for 127.0.0.1 at 2021-07-01 18:27:36 +0200
2021-07-01T18:27:36 [I|app|373fb6c1] Processing by ForemanTasks::Api::TasksController#bulk_search as HTML
2021-07-01T18:27:36 [I|app|373fb6c1] Parameters: {"searches"=>[{"type"=>"task", "task_id"=>"1451e3b5-d5d4-43ba-93bb-e164be1da5f2", "search_id"=>"1"}], "task"=>{}}
2021-07-01T18:27:36 [I|app|6d9cbf71] Started GET "/notification_recipients" for 127.0.0.1 at 2021-07-01 18:27:36 +0200
2021-07-01T18:27:36 [I|app|6d9cbf71] Processing by NotificationRecipientsController#index as JSON
2021-07-01T18:27:36 [I|app|6d9cbf71] Completed 200 OK in 13ms (Views: 0.2ms | ActiveRecord: 6.1ms | Allocations: 4090)
2021-07-01T18:27:36 [I|app|373fb6c1] Completed 200 OK in 99ms (Views: 0.7ms | ActiveRecord: 14.8ms | Allocations: 95793)
2021-07-01T18:27:38 [I|app|c274e17f] CONTENT_INDEX type=Katello::Erratum duration=3227.1
2021-07-01T18:27:38 [I|app|c274e17f] CONTENT_INDEX type=Katello::Erratum duration=3514.67
2021-07-01T18:27:38 [I|app|c274e17f] CONTENT_INDEX type=Katello::PackageGroup duration=3465.31
2021-07-01T18:27:38 [I|app|c274e17f] CONTENT_INDEX type=Katello::PackageGroup duration=383.92
2021-07-01T18:27:38 [I|app|c274e17f] CONTENT_INDEX type=Katello::PackageGroup duration=3620.49
2021-07-01T18:27:39 [I|app|c274e17f] CONTENT_INDEX type=Katello::PackageGroup duration=945.17
2021-07-01T18:27:39 [I|app|c274e17f] CONTENT_INDEX type=Katello::Srpm duration=930.7
2021-07-01T18:27:39 [I|app|c274e17f] CONTENT_INDEX type=Katello::Srpm duration=887.62
2021-07-01T18:27:39 [I|app|c274e17f] CONTENT_INDEX type=Katello::Srpm duration=846.2
2021-07-01T18:27:40 [I|app|c274e17f] CONTENT_INDEX type=Katello::Srpm duration=636.75
2021-07-01T18:27:40 [I|aud|c274e17f] Katello::Repository (326) update event on distribution_version , 8
2021-07-01T18:27:40 [I|aud|c274e17f] Katello::Repository (326) update event on distribution_arch , x86_64
2021-07-01T18:27:40 [I|aud|c274e17f] Katello::Repository (326) update event on distribution_family , CentOS Linux
2021-07-01T18:27:40 [I|aud|c274e17f] Katello::Repository (326) update event on distribution_bootable , true
2021-07-01T18:27:40 [I|aud|c274e17f] Katello::Repository (327) update event on distribution_version , 8
2021-07-01T18:27:40 [I|aud|c274e17f] Katello::Repository (327) update event on distribution_arch , x86_64
2021-07-01T18:27:40 [I|aud|c274e17f] Katello::Repository (327) update event on distribution_family , CentOS-Plus
2021-07-01T18:27:40 [I|aud|c274e17f] Katello::Repository (327) update event on distribution_bootable , false
2021-07-01T18:27:40 [I|aud|c274e17f] Katello::Repository (329) update event on distribution_version , 8
2021-07-01T18:27:40 [I|aud|c274e17f] Katello::Repository (329) update event on distribution_arch , x86_64
2021-07-01T18:27:40 [I|aud|c274e17f] Katello::Repository (329) update event on distribution_family , CentOS-Extras
2021-07-01T18:27:40 [I|aud|c274e17f] Katello::Repository (329) update event on distribution_bootable , false
2021-07-01T18:27:40 [I|aud|c274e17f] Katello::Repository (326) update event on distribution_variant , AppStream,BaseOS
2021-07-01T18:27:40 [I|aud|c274e17f] Katello::Repository (329) update event on distribution_variant , extras
2021-07-01T18:27:40 [I|aud|c274e17f] Katello::Repository (327) update event on distribution_variant , plus
2021-07-01T18:27:40 [I|app|c274e17f] CONTENT_INDEX type=Katello::Rpm duration=16717.29
2021-07-01T18:27:42 [I|app|7078b68f] Started POST "/foreman_tasks/api/tasks/bulk_search" for 127.0.0.1 at 2021-07-01 18:27:42 +0200
2021-07-01T18:27:42 [I|app|7078b68f] Processing by ForemanTasks::Api::TasksController#bulk_search as HTML
2021-07-01T18:27:42 [I|app|7078b68f] Parameters: {"searches"=>[{"type"=>"task", "task_id"=>"1451e3b5-d5d4-43ba-93bb-e164be1da5f2", "search_id"=>"1"}], "task"=>{}}
2021-07-01T18:27:42 [I|app|7078b68f] Completed 200 OK in 81ms (Views: 0.7ms | ActiveRecord: 3.9ms | Allocations: 90317)
2021-07-01T18:27:43 [I|app|c274e17f] CONTENT_INDEX type=Katello::ModuleStream duration=3334.61
2021-07-01T18:27:44 [I|app|c274e17f] CONTENT_INDEX type=Katello::Rpm duration=3627.59
2021-07-01T18:27:44 [I|app|c274e17f] CONTENT_INDEX type=Katello::Rpm duration=3795.06
2021-07-01T18:27:45 [I|app|c274e17f] CONTENT_INDEX type=Katello::ModuleStream duration=1912.37
2021-07-01T18:27:45 [I|app|c274e17f] CONTENT_INDEX type=Katello::Erratum duration=2320.44
2021-07-01T18:27:46 [I|app|c274e17f] CONTENT_INDEX type=Katello::ModuleStream duration=1802.39
2021-07-01T18:27:46 [I|app|c274e17f] CONTENT_INDEX type=Katello::Rpm duration=5601.27
2021-07-01T18:27:46 [I|app|c274e17f] CONTENT_INDEX type=Katello::Erratum duration=202.02
2021-07-01T18:27:46 [I|app|c274e17f] CONTENT_INDEX type=Katello::Erratum duration=287.37
2021-07-01T18:27:46 [I|app|c274e17f] CONTENT_INDEX type=Katello::Rpm duration=6011.1
2021-07-01T18:27:46 [I|app|c274e17f] CONTENT_INDEX type=Katello::PackageGroup duration=327.89
2021-07-01T18:27:46 [I|app|c274e17f] CONTENT_INDEX type=Katello::PackageGroup duration=118.0
2021-07-01T18:27:46 [I|app|c274e17f] CONTENT_INDEX type=Katello::PackageGroup duration=136.08
2021-07-01T18:27:46 [I|app|4b2da617] Started GET "/notification_recipients" for 127.0.0.1 at 2021-07-01 18:27:46 +0200
2021-07-01T18:27:46 [I|app|4b2da617] Processing by NotificationRecipientsController#index as JSON
2021-07-01T18:27:46 [I|app|4b2da617] Completed 200 OK in 7ms (Views: 0.1ms | ActiveRecord: 1.0ms | Allocations: 2144)
2021-07-01T18:27:46 [I|app|c274e17f] CONTENT_INDEX type=Katello::ModuleStream duration=328.44
2021-07-01T18:27:46 [I|app|c274e17f] CONTENT_INDEX type=Katello::ModuleStream duration=145.29
2021-07-01T18:27:46 [I|app|c274e17f] CONTENT_INDEX type=Katello::Srpm duration=233.35
2021-07-01T18:27:46 [I|app|c274e17f] CONTENT_INDEX type=Katello::Srpm duration=248.66
2021-07-01T18:27:46 [I|app|c274e17f] CONTENT_INDEX type=Katello::Srpm duration=252.22
2021-07-01T18:27:46 [I|app|c274e17f] CONTENT_INDEX type=Katello::Erratum duration=260.66
2021-07-01T18:27:46 [I|app|c274e17f] CONTENT_INDEX type=Katello::Erratum duration=273.63
2021-07-01T18:27:46 [I|aud|c274e17f] Katello::Repository (325) update event on distribution_version , 8
2021-07-01T18:27:46 [I|aud|c274e17f] Katello::Repository (325) update event on distribution_arch , x86_64
2021-07-01T18:27:46 [I|aud|c274e17f] Katello::Repository (325) update event on distribution_family , CentOS Linux
2021-07-01T18:27:46 [I|aud|c274e17f] Katello::Repository (325) update event on distribution_bootable , false
2021-07-01T18:27:46 [I|aud|c274e17f] Katello::Repository (325) update event on distribution_variant , AppStream
2021-07-01T18:27:46 [I|app|c274e17f] CONTENT_INDEX type=Katello::PackageGroup duration=229.62
2021-07-01T18:27:46 [I|app|c274e17f] CONTENT_INDEX type=Katello::PackageGroup duration=246.29
2021-07-01T18:27:47 [I|app|c274e17f] CONTENT_INDEX type=Katello::Rpm duration=165.92
2021-07-01T18:27:47 [I|app|c274e17f] CONTENT_INDEX type=Katello::Srpm duration=151.78
2021-07-01T18:27:47 [I|app|c274e17f] CONTENT_INDEX type=Katello::Rpm duration=732.76
2021-07-01T18:27:49 [I|app|29d46605] Started POST "/foreman_tasks/api/tasks/bulk_search" for 127.0.0.1 at 2021-07-01 18:27:49 +0200
2021-07-01T18:27:49 [I|app|29d46605] Processing by ForemanTasks::Api::TasksController#bulk_search as HTML
2021-07-01T18:27:49 [I|app|29d46605] Parameters: {"searches"=>[{"type"=>"task", "task_id"=>"1451e3b5-d5d4-43ba-93bb-e164be1da5f2", "search_id"=>"1"}], "task"=>{}}
2021-07-01T18:27:49 [I|app|29d46605] Completed 200 OK in 73ms (Views: 0.7ms | ActiveRecord: 3.4ms | Allocations: 90652)
2021-07-01T18:27:56 [I|app|0042f162] Started GET "/notification_recipients" for 127.0.0.1 at 2021-07-01 18:27:56 +0200
2021-07-01T18:27:56 [I|app|0042f162] Processing by NotificationRecipientsController#index as JSON
2021-07-01T18:27:56 [I|app|0042f162] Completed 200 OK in 7ms (Views: 0.1ms | ActiveRecord: 0.8ms | Allocations: 2144)
2021-07-01T18:27:57 [I|app|e100d068] Started POST "/foreman_tasks/api/tasks/bulk_search" for 127.0.0.1 at 2021-07-01 18:27:57 +0200
2021-07-01T18:27:57 [I|app|e100d068] Processing by ForemanTasks::Api::TasksController#bulk_search as HTML
2021-07-01T18:27:57 [I|app|e100d068] Parameters: {"searches"=>[{"type"=>"task", "task_id"=>"1451e3b5-d5d4-43ba-93bb-e164be1da5f2", "search_id"=>"1"}], "task"=>{}}
2021-07-01T18:27:57 [I|app|e100d068] Completed 200 OK in 76ms (Views: 0.8ms | ActiveRecord: 3.4ms | Allocations: 90652)
2021-07-01T18:27:58 [I|app|c274e17f] CONTENT_INDEX type=Katello::Srpm duration=11097.98
2021-07-01T18:27:58 [I|app|c274e17f] CONTENT_INDEX type=Katello::ModuleStream duration=11075.98
2021-07-01T18:27:58 [I|app|c274e17f] CONTENT_INDEX type=Katello::ModuleStream duration=10512.28
2021-07-01T18:27:58 [I|app|c274e17f] CONTENT_INDEX type=Katello::Rpm duration=11230.71
2021-07-01T18:27:58 [I|aud|c274e17f] Katello::Repository (330) update event on distribution_version , 8
2021-07-01T18:27:58 [I|aud|c274e17f] Katello::Repository (330) update event on distribution_arch , x86_64
2021-07-01T18:27:58 [I|aud|c274e17f] Katello::Repository (330) update event on distribution_family , CentOS Linux
2021-07-01T18:27:58 [I|aud|c274e17f] Katello::Repository (330) update event on distribution_bootable , false
2021-07-01T18:27:58 [I|app|c274e17f] CONTENT_INDEX type=Katello::Erratum duration=150.88
2021-07-01T18:27:58 [I|aud|c274e17f] Katello::Repository (330) update event on distribution_variant , PowerTools
2021-07-01T18:27:58 [I|app|c274e17f] CONTENT_INDEX type=Katello::Erratum duration=153.79
2021-07-01T18:27:58 [I|app|c274e17f] CONTENT_INDEX type=Katello::ModuleStream duration=139.08
2021-07-01T18:27:58 [I|app|c274e17f] CONTENT_INDEX type=Katello::PackageGroup duration=115.15
2021-07-01T18:27:58 [I|app|c274e17f] CONTENT_INDEX type=Katello::PackageGroup duration=91.4
2021-07-01T18:27:58 [I|app|c274e17f] CONTENT_INDEX type=Katello::Erratum duration=97.52
2021-07-01T18:27:58 [I|app|c274e17f] CONTENT_INDEX type=Katello::Srpm duration=98.93
2021-07-01T18:27:58 [I|app|c274e17f] CONTENT_INDEX type=Katello::Srpm duration=112.86
2021-07-01T18:27:58 [I|app|c274e17f] CONTENT_INDEX type=Katello::PackageGroup duration=106.24
2021-07-01T18:27:58 [I|app|c274e17f] CONTENT_INDEX type=Katello::Srpm duration=104.67
2021-07-01T18:28:01 [E|bac|c274e17f] Error message: the server returns an error
c274e17f | HTTP status code: 400
c274e17f | Response headers: {"date"=>"Thu, 01 Jul 2021 16:28:01 GMT", "server"=>"gunicorn/20.0.4", "content-type"=>"application/json", "vary"=>"Accept,Cookie", "allow"=>"GET, POST, HEAD, OPTIONS", "x-frame-options"=>"SAMEORIGIN", "content-length"=>"62", "correlation-id"=>"b583277dfe3c414fa516dd2c73bb33ab", "access-control-expose-headers"=>"Correlation-ID", "via"=>"1.1 foreman-app01-prod.dom.tld", "connection"=>"close"}
c274e17f | Response body: {"publication":["Invalid hyperlink - Object does not exist."]} (PulpRpmClient::ApiError)
c274e17f | /usr/share/gems/gems/pulp_rpm_client-3.10.0/lib/pulp_rpm_client/api_client.rb:81:in `call_api'
c274e17f | /usr/share/gems/gems/pulp_rpm_client-3.10.0/lib/pulp_rpm_client/api/distributions_rpm_api.rb:79:in `create_with_http_info'
c274e17f | /usr/share/gems/gems/pulp_rpm_client-3.10.0/lib/pulp_rpm_client/api/distributions_rpm_api.rb:28:in `create'
c274e17f | /usr/share/gems/gems/katello-4.0.1.2/app/services/katello/pulp3/repository.rb:262:in `create_distribution'
c274e17f | /usr/share/gems/gems/katello-4.0.1.2/app/services/katello/pulp3/repository.rb:246:in `refresh_distributions'
c274e17f | /usr/share/gems/gems/katello-4.0.1.2/app/lib/actions/pulp3/repository/refresh_distribution.rb:27:in `invoke_external_task'
c274e17f | /usr/share/gems/gems/dynflow-1.4.8/lib/dynflow/action/polling.rb:84:in `initiate_external_action'
c274e17f | /usr/share/gems/gems/dynflow-1.4.8/lib/dynflow/action/polling.rb:19:in `run'
c274e17f | /usr/share/gems/gems/dynflow-1.4.8/lib/dynflow/action/cancellable.rb:14:in `run'
c274e17f | /usr/share/gems/gems/katello-4.0.1.2/app/lib/actions/pulp3/abstract_async_task.rb:10:in `run'
c274e17f | /usr/share/gems/gems/dynflow-1.4.8/lib/dynflow/action.rb:571:in `block (3 levels) in execute_run'
c274e17f | /usr/share/gems/gems/dynflow-1.4.8/lib/dynflow/middleware/stack.rb:27:in `pass'
c274e17f | /usr/share/gems/gems/dynflow-1.4.8/lib/dynflow/middleware.rb:19:in `pass'
How do I go from here?