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.
I landed up on the link below which says Kick is not possible for windows agents. Not sure how true this is...
https://ask.puppet.com/question/14234/port-8139-not-opened-when-running-as-a-windows-service/