Error registing host to katello

This is the output from /var/log/candlepin/candlepin.log with /candlepin/consumers/2051b07c-748b-4350-9b59-765fd43f9fcb at the bottom.

zgrep "2023-03-28 09:28"  /var/log/candlepin/candlepin.log-2023-03-28.gz
2023-03-28 09:28:12,511 [thread=https-jsse-nio-127.0.0.1-23443-exec-56] [req=3e1f172f-4fc7-4531-9490-7b2da4f813f1, org=, csid=] INFO  org.candlepin.servlet.filter.logging.LoggingFilter - Request: verb=GET, uri=/candlepin/consumers/3f95e8c6-be5f-480a-ab33-3aaa78e1e8f5/certificates/serials
2023-03-28 09:28:12,533 [thread=https-jsse-nio-127.0.0.1-23443-exec-56] [req=3e1f172f-4fc7-4531-9490-7b2da4f813f1, org=BIU, csid=] INFO  org.candlepin.servlet.filter.logging.LoggingFilter - Response: status=200, content-type="application/json", time=22
2023-03-28 09:28:12,620 [thread=https-jsse-nio-127.0.0.1-23443-exec-34] [req=f604f8db-1859-402a-a224-8821af237936, org=, csid=] INFO  org.candlepin.servlet.filter.logging.LoggingFilter - Request: verb=GET, uri=/candlepin/status
2023-03-28 09:28:12,621 [thread=https-jsse-nio-127.0.0.1-23443-exec-34] [req=f604f8db-1859-402a-a224-8821af237936, org=, csid=] INFO  org.candlepin.servlet.filter.logging.LoggingFilter - Response: status=200, content-type="application/json", time=1
2023-03-28 09:28:12,737 [thread=https-jsse-nio-127.0.0.1-23443-exec-51] [req=658ed7ae-3337-453e-b930-0f8a20d89305, org=, csid=] INFO  org.candlepin.servlet.filter.logging.LoggingFilter - Request: verb=GET, uri=/candlepin/consumers/3f95e8c6-be5f-480a-ab33-3aaa78e1e8f5/content_overrides
2023-03-28 09:28:12,741 [thread=https-jsse-nio-127.0.0.1-23443-exec-51] [req=658ed7ae-3337-453e-b930-0f8a20d89305, org=, csid=] INFO  org.candlepin.servlet.filter.logging.LoggingFilter - Response: status=200, content-type="application/json", time=4
2023-03-28 09:28:20,097 [thread=https-jsse-nio-127.0.0.1-23443-exec-48] [req=db7b0859-a761-4fad-bce9-1bd9eb79354d, org=, csid=] INFO  org.candlepin.servlet.filter.logging.LoggingFilter - Request: verb=GET, uri=/candlepin/consumers/5bfc53ae-eb17-43dd-ad34-293dad0b33c6/certificates/serials
2023-03-28 09:28:20,107 [thread=https-jsse-nio-127.0.0.1-23443-exec-48] [req=db7b0859-a761-4fad-bce9-1bd9eb79354d, org=BIU, csid=] INFO  org.candlepin.servlet.filter.logging.LoggingFilter - Response: status=200, content-type="application/json", time=10
2023-03-28 09:28:20,166 [thread=https-jsse-nio-127.0.0.1-23443-exec-19] [req=f2d05cd4-4474-4b5a-8ab5-dd0c1b442ebc, org=, csid=] INFO  org.candlepin.servlet.filter.logging.LoggingFilter - Request: verb=GET, uri=/candlepin/status
2023-03-28 09:28:20,167 [thread=https-jsse-nio-127.0.0.1-23443-exec-19] [req=f2d05cd4-4474-4b5a-8ab5-dd0c1b442ebc, org=, csid=] INFO  org.candlepin.servlet.filter.logging.LoggingFilter - Response: status=200, content-type="application/json", time=1
2023-03-28 09:28:20,220 [thread=https-jsse-nio-127.0.0.1-23443-exec-57] [req=a0bd46b2-05c6-4211-a9a2-477af2cb1213, org=, csid=] INFO  org.candlepin.servlet.filter.logging.LoggingFilter - Request: verb=GET, uri=/candlepin/consumers/5bfc53ae-eb17-43dd-ad34-293dad0b33c6/content_overrides
2023-03-28 09:28:20,224 [thread=https-jsse-nio-127.0.0.1-23443-exec-57] [req=a0bd46b2-05c6-4211-a9a2-477af2cb1213, org=, csid=] INFO  org.candlepin.servlet.filter.logging.LoggingFilter - Response: status=200, content-type="application/json", time=4
2023-03-28 09:28:38,966 [thread=https-jsse-nio-127.0.0.1-23443-exec-55] [req=ec3a413c-196f-4ee2-82f9-cf0e18920a66, org=, csid=] INFO  org.candlepin.servlet.filter.logging.LoggingFilter - Request: verb=GET, uri=/candlepin/status
2023-03-28 09:28:38,968 [thread=https-jsse-nio-127.0.0.1-23443-exec-55] [req=ec3a413c-196f-4ee2-82f9-cf0e18920a66, org=, csid=] INFO  org.candlepin.servlet.filter.logging.LoggingFilter - Response: status=200, content-type="application/json", time=2
2023-03-28 09:28:42,107 [thread=https-jsse-nio-127.0.0.1-23443-exec-37] [req=4e02f75c-bedc-497a-a66c-3f53e87161f4, org=, csid=] INFO  org.candlepin.servlet.filter.logging.LoggingFilter - Request: verb=GET, uri=/candlepin/status
2023-03-28 09:28:42,107 [thread=https-jsse-nio-127.0.0.1-23443-exec-37] [req=4e02f75c-bedc-497a-a66c-3f53e87161f4, org=, csid=] INFO  org.candlepin.servlet.filter.logging.LoggingFilter - Response: status=200, content-type="application/json", time=0
2023-03-28 09:28:42,132 [thread=https-jsse-nio-127.0.0.1-23443-exec-48] [req=4805c5f2-d0a4-4426-a85e-d5ccb4339e3c, org=, csid=] INFO  org.candlepin.servlet.filter.logging.LoggingFilter - Request: verb=GET, uri=/candlepin/status
2023-03-28 09:28:42,133 [thread=https-jsse-nio-127.0.0.1-23443-exec-48] [req=4805c5f2-d0a4-4426-a85e-d5ccb4339e3c, org=, csid=] INFO  org.candlepin.servlet.filter.logging.LoggingFilter - Response: status=200, content-type="application/json", time=1
2023-03-28 09:28:42,298 [thread=https-jsse-nio-127.0.0.1-23443-exec-19] [req=b47b56fb-75be-4a78-b4ef-64d19ca3288a, org=, csid=] INFO  org.candlepin.servlet.filter.logging.LoggingFilter - Request: verb=GET, uri=/candlepin/owners/BIU
2023-03-28 09:28:42,302 [thread=https-jsse-nio-127.0.0.1-23443-exec-19] [req=b47b56fb-75be-4a78-b4ef-64d19ca3288a, org=BIU, csid=] INFO  org.candlepin.servlet.filter.logging.LoggingFilter - Response: status=200, content-type="application/json", time=4
2023-03-28 09:28:42,345 [thread=https-jsse-nio-127.0.0.1-23443-exec-57] [req=d10c7fa8-9855-4472-90b6-196163ffc92f, org=, csid=0b6fcc08-69f6-4f27-add6-01b6f89db9a2] INFO  org.candlepin.servlet.filter.logging.LoggingFilter - Request: verb=GET, uri=/candlepin/activation_keys/04c68ff086f9a4ae0186f9d852570175
2023-03-28 09:28:42,362 [thread=https-jsse-nio-127.0.0.1-23443-exec-57] [req=d10c7fa8-9855-4472-90b6-196163ffc92f, org=BIU, csid=0b6fcc08-69f6-4f27-add6-01b6f89db9a2] INFO  org.candlepin.servlet.filter.logging.LoggingFilter - Response: status=200, content-type="application/json", time=17
2023-03-28 09:28:42,396 [thread=https-jsse-nio-127.0.0.1-23443-exec-55] [req=9c164d6e-0ca9-48b8-a948-775df11b62f0, org=, csid=0b6fcc08-69f6-4f27-add6-01b6f89db9a2] INFO  org.candlepin.servlet.filter.logging.LoggingFilter - Request: verb=POST, uri=/candlepin/environments/c2d4e556c72691b26eeb6e3c59880155/consumers/?activation_keys=cddc8cee-d1f8-444a-a079-87ebcb348dfd
2023-03-28 09:28:42,437 [thread=https-jsse-nio-127.0.0.1-23443-exec-55] [req=9c164d6e-0ca9-48b8-a948-775df11b62f0, org=, csid=0b6fcc08-69f6-4f27-add6-01b6f89db9a2] INFO  org.candlepin.servlet.filter.logging.LoggingFilter - Response: status=200, content-type="application/json", time=41
2023-03-28 09:28:43,118 [thread=https-jsse-nio-127.0.0.1-23443-exec-37] [req=2ec6c8d9-88d1-485e-85cf-399723e50758, org=, csid=0b6fcc08-69f6-4f27-add6-01b6f89db9a2] INFO  org.candlepin.servlet.filter.logging.LoggingFilter - Request: verb=GET, uri=/candlepin/consumers/2051b07c-748b-4350-9b59-765fd43f9fcb
2023-03-28 09:28:43,123 [thread=https-jsse-nio-127.0.0.1-23443-exec-37] [req=2ec6c8d9-88d1-485e-85cf-399723e50758, org=, csid=0b6fcc08-69f6-4f27-add6-01b6f89db9a2] INFO  org.candlepin.resteasy.filter.VerifyAuthorizationFilter - No such entity: Consumer, id: 2051b07c-748b-4350-9b59-765fd43f9fcb
2023-03-28 09:28:43,123 [thread=https-jsse-nio-127.0.0.1-23443-exec-37] [req=2ec6c8d9-88d1-485e-85cf-399723e50758, org=, csid=0b6fcc08-69f6-4f27-add6-01b6f89db9a2] INFO  org.candlepin.servlet.filter.logging.LoggingFilter - Response: status=404, content-type="application/json", time=5

The latest entry at /var/log/candlepin/error.log is from 2023-03-21 so there is no relevant data.

I had a similar issue and this article from redhat helped me resolve it

Additionally, the server was registered on foreman, but ended up in a unknown category, which I found out via dashboard.

@boothepr Thanks,Tried the steps but the outcome didn’t change…

I decided to migrate all hosts to a new server. Thanks for your help
@jeremylenz
@boothepr
@iballou