Failures on brand new Katello 3.5 and 3.6 install

I installed Katello 3.6 on a brand new system running Rocky Linux 8. The first time I logged in to the console I noticed this:

|pulp|FAIL|undefined method `pulp_url’ for nil:NilClass|
|pulp_auth|FAIL|Skipped pulp_auth check after failed pulp check|

So then I reverted the system via a snapshot and tried Katello 3.5. Same error.
Just for fun I restarted the system then looked at foremain-maintain status and found these errors:

Oct 06 13:05:08 gp2us1opsfm01-main01a.example.net foreman[16416]:         before or while processing the request.
Oct 06 13:05:08 gp2us1opsfm01-main01a.example.net foreman[16469]: E, [2022-10-06T13:05:08.942970 #16469] ERROR -- /connector-database-core: Receiving envelopes failed on PG::ConnectionBad: PQconsumeInput() server closed the connection unexpectedly
Oct 06 13:05:08 gp2us1opsfm01-main01a.example.net foreman[16469]:         This probably means the server terminated abnormally
Oct 06 13:05:08 gp2us1opsfm01-main01a.example.net foreman[16469]:         before or while processing the request.
Oct 06 13:05:08 gp2us1opsfm01-main01a.example.net foreman[16455]: E, [2022-10-06T13:05:08.958208 #16455] ERROR -- /connector-database-core: Receiving envelopes failed on PG::ConnectionBad: PQconsumeInput() server closed the connection unexpectedly
Oct 06 13:05:08 gp2us1opsfm01-main01a.example.net foreman[16455]:         This probably means the server terminated abnormally
Oct 06 13:05:08 gp2us1opsfm01-main01a.example.net foreman[16455]:         before or while processing the request.
Oct 06 13:05:08 gp2us1opsfm01-main01a.example.net foreman[16447]: E, [2022-10-06T13:05:08.959998 #16447] ERROR -- /connector-database-core: Receiving envelopes failed on PG::ConnectionBad: PQconsumeInput() server closed the connection unexpectedly
Oct 06 13:05:08 gp2us1opsfm01-main01a.example.net foreman[16447]:         This probably means the server terminated abnormally
Oct 06 13:05:08 gp2us1opsfm01-main01a.example.net foreman[16447]:         before or while processing the request.
^M                                                                                ^M/ displaying httpd

This is what I used to install foreman/Katello:

foreman-installer --scenario katello \
    --tuning default \
    --enable-foreman \
    --enable-katello \
    --enable-foreman-cli     \
    --enable-foreman-cli-ansible \
    --enable-foreman-cli-katello \
    --no-enable-foreman-cli-discovery \
    --no-enable-foreman-cli-openscap \
    --no-enable-foreman-cli-remote-execution \
    --no-enable-foreman-cli-webhooks \
    --no-enable-foreman-compute-ec2 \
    --no-enable-foreman-compute-vmware \
    --no-enable-foreman-proxy \
    --no-enable-foreman-proxy-content

It doesn’t make a lot of sense to me not to let foreman-installer configure the necessary proxies to operate the server.

Good not realize I had left those two lines in there. I’ll recreate from
the snapshot without those lines.

I went back to the base snapshot which is really just the OS. Did the prep work to install Katello 3.6 and then ran foreman-installer --scenario katello. This generated errors too:

2022-10-06 20:56:49 [DEBUG ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/unless: rake aborted!
2022-10-06 20:56:49 [DEBUG ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/unless: ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR:  relation "hosts" does not exist
2022-10-06 20:56:49 [DEBUG ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/unless: LINE 8:  WHERE a.attrelid = '"hosts"'::regclass
2022-10-06 20:56:49 [DEBUG ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/unless:                             ^

Do you mean Katello 4.6? Katello 3.6 is from 2018, I definitely would not recommend installing that on a brand new system.