I have installed puppet agent (windows) and master successfully. When i download the node from agent it works fine (puppet agent -t ) and the nodes are pulled successfully.
But when i trigger the same from the puppet master, i get connection error as below.
Error: Host agent01 failed: Connection refused - connect(2)
I did a wireshark in agent machine and i could see the connection made to agent at port 8139 and is responded with a red ACK message.
Since the connection has reached the agent, am assuming agent rejected the connection. Could some one please help me fix this problem.
Puppet.conf at agent
[main]
server=puppetmaster.localsky.biz
autoflush=true
environment=production
pluginsync=true
listen = true
[agent]
auth.conf at agent:
path /
method find, search, save
auth yes
allow puppetmaster.localsky.biz
However, if i run puppet agent --no-daemonize --debug
from the Powershell console, the build gets pushed successsfully.
So the failure happens only if run the agent from Puppet Agent as windows service.
connection refusedquite distinctly indicates that the port in question is not open. Can you check the list of listening ports while the agent is running? (Also, make sure that the background agent is in fact running.) Failing all that, please add the output ofpuppet agent --configprint allto your question. - Felix Frank