Today I ran into an odd error on my foreman server. I had enabled auto-updates on Rocky Linux, and overnight httpd got updated. Today I found my foreman unresponsive, or rather: refusing to connect.
Well in fact the foreman was fine, but the httpd service (Apache2) did not start giving out that line above. Typical error when there are multiple ssl configurations pointing to that port.
The solution was to run the foreman installer again without any arguments:
$ foreman-installer
This uses puppet in the background to recreate the required configurations, and indeed the service worked afterwards again. Turns out that the ssl.conf was added by the upgrade, but is actually in the way.
-rw-r--r--. 1 root root 3353 Feb 27 16:02 05-foreman.conf
drwxr-xr-x. 2 root root 4096 Feb 27 16:02 05-foreman.d
-rw-r--r--. 1 root root 4028 Jun 5 15:42 05-foreman-ssl.conf
drwxr-xr-x. 2 root root 4096 Feb 27 16:02 05-foreman-ssl.d
All sorted, back to business.
Happy coding!