Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Foreman will not start after accidental Puppet upgrade, claims port 443 is already in use.

Summary: We accidentally upgraded puppetserver-2.4.0 to 2.7.2 without preparation. This broke everything. We downgraded the package and Puppet will now start, but it cannot speak to Foreman. Foreman will not start, it insists that port 443 is already in use.

Background: The person who set all this up is no longer with the company and left NO documentation of any sort. I am very new to Puppet myself. I know my way around Linux but I know next to nothing about Puppet.

The issue: We had a working Puppet 2.4.0 server, on a CentOS 7 host, with Foreman. An admin noticed that no security updates were running on the puppet server and ran "yum -y update" and walked away. This upgraded Puppet, among other things. The upgraded puppet would not start. I downgraded puppet to 2.4.0 again and it starts, but the logs show only items like this:

2017-08-15 15:05:40,090 ERROR [qtp274685303-70] [puppetserver] Puppet Server Error: Could not find node ''; cannot compile
2017-08-15 15:05:40,792 WARN  [qtp274685303-68] [c.p.p.ShellUtils] Executed an external process which logged to STDERR: Could not send facts to Foreman: Connection refused - connect(2)

Foreman itself is set to run under httpd, but httpd will not start with the error

Aug 15 14:58:24 httpd[8571]: (98)Address already in use: AH00072: make_sock: could not bind to address
Aug 15 14:58:24 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE

There's nothing running on port 443. netstat -nat shows nothing on 443. lsof -iTCP:443 shows nothing on 443. fuser -v 443/tcp shows nothing. ps aux |grep httpd shows nothing, ps aux |grep foreman shows

foreman+  3080  0.0  0.3 296676 25496 ?        Sl   14:44   0:00 ruby /usr/share/foreman-proxy/bin/smart-proxy

I know nothing about maintaining Foreman or puppet. I did not set up this server and I have zero documentation from the person who did. Can anyone help me find where to even start?