Yesterday, I have installed a new Foreman server, and I am relatively new to Foreman.
I tried to replace Foreman’s existing self-signed certificate using these instructions:
https://docs.theforeman.org/3.4/Installing_Server/index-katello.html#Configuring_Server_with_a_Custom_SSL_Certificate_foreman
The idea was to add more SAN names to the self-signed certificate.
The update (using foreman-installer --scenario katello --certs-update-server --certs-update-server-ca
) went wrong, and Foreman now doesn’t work anymore as a result. The webserver doesn’t respond at all.
It seems that one of the main errors is:
A smart proxy seems to have been refreshed without pulpcore being running. Please refresh the smart proxy after ensuring that pulpcore services are running.
or in more detail:
# foreman-installer --scenario katello --certs-server-cert "/root/foreman_cert/foreman_ssl_cert.pem" --certs-server-key "/root/foreman_cert/foreman_ssl_key.pem" --certs-server-ca-cert "/root/foreman_cert/foreman_ssl_cert.pem" --certs-update-server --certs-update-server-ca
2023-02-02 15:56:06 [NOTICE] [root] Loading installer configuration. This will take some time.
2023-02-02 15:56:08 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2023-02-02 15:56:08 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
Marking certificate /root/ssl-build/foreman.company.org/foreman.company.org-apache for update
Marking certificate /root/ssl-build/foreman.company.org/foreman.company.org-foreman-proxy for update
Marking certificate /root/ssl-build/katello-server-ca for update
2023-02-02 15:56:13 [NOTICE] [configure] Starting system configuration.
2023-02-02 15:56:22 [NOTICE] [configure] 250 configuration steps out of 1383 steps complete.
2023-02-02 15:56:25 [NOTICE] [configure] 500 configuration steps out of 1385 steps complete.
2023-02-02 15:56:28 [NOTICE] [configure] 750 configuration steps out of 1390 steps complete.
2023-02-02 15:56:28 [NOTICE] [configure] 1000 configuration steps out of 1394 steps complete.
2023-02-02 15:57:01 [ERROR ] [configure] Systemd start for foreman failed!
2023-02-02 15:57:01 [ERROR ] [configure] journalctl log for foreman:
2023-02-02 15:57:01 [ERROR ] [configure] -- Logs begin at Thu 2023-02-02 15:39:32 CET, end at Thu 2023-02-02 15:57:01 CET. --
2023-02-02 15:57:01 [ERROR ] [configure] Feb 02 15:56:53 foreman.company.org systemd[1]: Starting Foreman...
2023-02-02 15:57:01 [ERROR ] [configure] Feb 02 15:56:56 foreman.company.org foreman[17803]: => Booting Puma
2023-02-02 15:57:01 [ERROR ] [configure] Feb 02 15:56:56 foreman.company.org foreman[17803]: => Rails 6.1.7 application starting in production
2023-02-02 15:57:01 [ERROR ] [configure] Feb 02 15:56:56 foreman.company.org foreman[17803]: => Run `bin/rails server --help` for more startup options
2023-02-02 15:57:01 [ERROR ] [configure] Feb 02 15:57:00 foreman.company.org foreman[17803]: Exiting
2023-02-02 15:57:01 [ERROR ] [configure] Feb 02 15:57:00 foreman.company.org foreman[17803]: /usr/share/gems/gems/katello-4.7.1/app/services/katello/repository_type_manager.rb:29:in `fix_pulp3_capabilities': A smart proxy seems to have been refreshed without pulpcore being running. Please refresh the smart proxy after ensuring that pulpcore services are running. (Katello::Errors::PulpcoreMissingCapabilities)
2023-02-02 15:57:01 [ERROR ] [configure] Feb 02 15:57:00 foreman.company.org foreman[17803]: from /usr/share/gems/gems/katello-4.7.1/app/services/katello/repository_type_manager.rb:35:in `enabled_repository_types'
2023-02-02 15:57:01 [ERROR ] [configure] Feb 02 15:57:00 foreman.company.org foreman[17803]: from /usr/share/gems/gems/katello-4.7.1/app/services/katello/repository_type_manager.rb:79:in `generic_content_types'
2023-02-02 15:57:01 [ERROR ] [configure] Feb 02 15:57:00 foreman.company.org foreman[17803]: from /usr/share/gems/gems/katello-4.7.1/app/controllers/katello/api/v2/generic_content_units_controller.rb:5:in `block in <class:GenericContentUnitsController>'
Foreman and Proxy versions:
3.5.1
Foreman and Proxy plugin versions:
Katello 4.7.1
Distribution and version:
CentOS 8 Stream
How to I get Foreman back running?