Forum: Cfengine Help
Subject: Re: Connection reset by peer
Author: mwlarsen
Link to topic: https://cfengine.com/forum/read.php?3,17728,17740#msg-17740

neilhwatson Wrote:
-------------------------------------------------------
> Is the server running and answering on the correct
> port?

Yes:

10.2.1.219:

# netstat -npl | grep cf-
tcp        0      0 :::5308                     :::*                        
LISTEN      705/cf-serverd

# telnet 10.2.1.219 5308
Trying 10.2.1.219...
Connected to t01cfengine01 (10.2.1.219).
Escape character is '^]'.

# cf-runagent -H 10.2.1.219 -v

cf3 ...........................................................................
cf3  * Hailing 10.2.1.219 : 5308, with options "" (serial)
cf3 ...........................................................................
cf3 No existing connection to 10.2.1.219 is established...
cf3 Set cfengine port number to 5308 = 5308
cf3  -> Connect to 10.2.1.219 = 10.2.1.219 on port 5308
cf3 LastSaw host 10.2.1.219 now
cf3 Loaded /var/cfengine/ppkeys/root-10.2.1.219.pub
cf3 .....................[.h.a.i.l.].................................
cf3 Strong authentication of server=10.2.1.219 connection confirmed
cf3  !!  Unspecified server refusal (see verbose server output)cf3 Couldn't recv
cf3  !!! System error for recv: "Connection reset by peer"

10.2.1.220:

# netstat -npl | grep cf-
tcp        0      0 :::5308                     :::*                        
LISTEN      12748/cf-serverd

# telnet 10.2.1.220 5308
Trying 10.2.1.220...
Connected to t01cfpolicy01 (10.2.1.220).
Escape character is '^]'.

# cf-runagent -H 10.2.1.220 -v

cf3 ...........................................................................
cf3 * Hailing 10.2.1.220 : 5308, with options "" (serial)
cf3 ...........................................................................
cf3 No existing connection to 10.2.1.220 is established...
cf3 Set cfengine port number to 5308 = 5308
cf3 -> Connect to 10.2.1.220 = 10.2.1.220 on port 5308
cf3 LastSaw host 10.2.1.220 now
cf3 Loaded /var/cfengine/ppkeys/root-10.2.1.220.pub
cf3 .....................[.h.a.i.l.].................................
cf3 Strong authentication of server=10.2.1.220 connection confirmed
cf3  !!  Unspecified server refusal (see verbose server output)cf3 Couldn't recv
cf3  !!! System error for recv: "Connection reset by peer"


BTW, I had a typo in my initial description of the problem. I said the boxes 
were on 10.2.0, they're actually on 10.2.1.

Thanks for your help!

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to