"no suitable server found" on hub

410 views
Skip to first unread message

Christian Linden

unread,
Mar 8, 2016, 10:26:15 AM3/8/16
to help-cfengine
Hi,

getting those in logs running on hub with 3.7.2:
Mar  8 16:20:44 hostname[1046]: CFEngine(agent)  No suitable server found

What is it looking for?

Cheers,
Chris


Neil Watson

unread,
Mar 8, 2016, 10:54:07 AM3/8/16
to help-cfengine
Cf-agent can't find the server it's trying to connect to. Run in verbose
to figure out which promise is the issue, or try to rebootstrap.

--
Neil H Watson
Sr. Partner, Architecture and Infrastructure
CFEngine reporting: https://github.com/evolvethinking/delta_reporting
CFEngine policy: https://github.com/evolvethinking/evolve_cfengine_freelib
CFEngine and vim: https://github.com/neilhwatson/vim_cf3
CFEngine support: http://evolvethinking.com

Christian Linden

unread,
Mar 8, 2016, 1:51:40 PM3/8/16
to Neil Watson, help-cfengine
It’s every five minutes in the syslog but cf-agent -v doesn’t show it.
I don’t want to re-bootstrap now.. it’s a hub..
> --
> You received this message because you are subscribed to a topic in the Google Groups "help-cfengine" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/help-cfengine/2cRBp9BXcqg/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to help-cfengin...@googlegroups.com.
> To post to this group, send email to help-c...@googlegroups.com.
> Visit this group at https://groups.google.com/group/help-cfengine.
> For more options, visit https://groups.google.com/d/optout.

Christian Linden

unread,
Mar 8, 2016, 2:13:06 PM3/8/16
to Neil Watson, help-cfengine
even after a successfully re-bootstrapping it continues not to find a suitable server =(


> On 08 Mar 2016, at 16:54, Neil Watson <cfen...@watson-wilson.ca> wrote:
>

Neil Watson

unread,
Mar 8, 2016, 2:15:36 PM3/8/16
to help-cfengine

Run the cf-agent in verbose to find what part of the policy produces
this output.

Christian Linden

unread,
Mar 8, 2016, 3:08:45 PM3/8/16
to Neil Watson, help-cfengine
found it!!! Bless you! =)

c

Dimitrios Apostolou

unread,
Mar 8, 2016, 3:31:10 PM3/8/16
to Christian Linden, Neil Watson, help-cfengine
It's fishy for the hub to output this message, since it's copying
policy from itself. What's the address you used when bootstrapping? Is
it the proper one, try "telnet IPADDR 5308" with that specific address
and see if it's connecting.
> You received this message because you are subscribed to the Google Groups "help-cfengine" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to help-cfengin...@googlegroups.com.

Christian Linden

unread,
Mar 9, 2016, 4:02:44 AM3/9/16
to help-cfengine, lindo...@gmail.com, cfen...@watson-wilson.ca
Hi Dimitrios,

this was a promise which should secure_cp files from the nodes to the hub.
Unfortunately this doesn't work because 5308 is blocked in this direction by company policy =(
This takes me all reporting capabilities =(
.. and makes Martin's messaging more interesting.. 

Chris

Dimitrios Apostolou

unread,
Mar 9, 2016, 8:24:23 AM3/9/16
to Christian Linden, help-cfengine, cfen...@watson-wilson.ca
Christian, if you want reporting without open ports, you can use
"call-collect" capability of CFEngine Enterprise. Call-collect is
re-using on the hub the connections initiated by the clients that are
fetching policy, in order for the hub to ask for reports.

In particular you need to add "call collect interval" in "body server
control" for all hosts, and you need to enable "collect_calls" in the
ACL of the hub. Check the examples here:

https://docs.cfengine.com/lts/reference-components-cf-serverd.html


Dimitris

Nick Anderson

unread,
Mar 9, 2016, 8:59:12 AM3/9/16
to Christian Linden, help-cfengine, cfen...@watson-wilson.ca
On 03/09/2016 03:02 AM, Christian Linden wrote:
> Hi Dimitrios,
>
> this was a promise which should secure_cp files from the nodes to the hub.
> Unfortunately this doesn't work because 5308 is blocked in this
> direction by company policy =(
> This takes me all reporting capabilities =(
> .. and makes Martin's messaging more interesting..

There are *many* different ways to report.

One time I had remote agents post a report they generated about
themselves to a webdav server.

And don't forget about `cf-agent -b host_info_report`

signature.asc

Christian Linden

unread,
Mar 10, 2016, 7:20:47 AM3/10/16
to help-cfengine, lindo...@gmail.com, cfen...@watson-wilson.ca
Useful hints.. Enterprise is still not running here.. but good to know about the call-collect.
Bundle host_info_report is lovely but makes no difference in my case as I just get the info in another file that I need to collect..
Webdav seems a cool choice =)

c
Reply all
Reply to author
Forward
0 new messages