Puppet (err): Could not retrieve catalog from remote server: Net::ReadTimeOut

asked 2018-04-10 16:55:52 -0600

NewPuppet gravatar image

I am running puppet 3.8.3 on Centos 6. Trying to build a windows box connecting to this puppetmaster. It starts running, I can even telnet from windows to puppetmaster server, but when it tries to start a new connection to puppet on 8140 port, it freezes for about 3 minutes, then it throws the error:

Puppet (err): Could not retrieve catalog from remote server: Net::ReadTimeOut

Puppetmaster is running in server. Its PID matches the one assigned to "ruby" in port 8140 when I do a netstat -tnlp.

But I notice I cannot start httpd because someone else (ruby/puppet?) is already assigned to port 8140. The only way to start httpd is:

  1. Stop puppetmaster (service puppetmaster stop) - then the port 8140 becomes available
  2. Start httpd (service httpd start) - then it takes all 3 ports: 8140, 80, 443
  3. Start puppetmaster (service puppetmaster start) - then I can see a pid in /var/run/puppet/master.pid but this pid is not listed when I type ps -ef | grep puppet when I check the status of puppetmaster (service puppetmaster status) it says : "puppet dead but pid file exists"

Am I getting the Net::ReadTimeOut error because httpd cannot be attached to 8140 AND the puppetmaster PID ? If so, how can I solve this?

edit retag flag offensive close merge delete