Bootstrap failed: Failed to establish TLS connection: underlying network error () #5384
-
I encountered this error message today, and even though I know how to solve it, I thought it could be helpful if we made an "accepted" answer here to help other users which may run into it. When bootstrapping a client to the hub, one might encounter something that looks like a network error:
How do you troubleshoot or fix this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Some things to check:
If you've ruled out the things above relating to IP addresses and firewalling, this is the most likely error message you will find in the cf-serverd logs on the hub:
CFEngine has a couple of variables for which IP addresses to trust (in terms of allowing connections and file transfers). By default, the hub will trust hosts on the same This default, makes it easy to test and usually works, since you are usually testing clients on the same network when first starting out. However, it is recommended to change these values to the IP addresses you actually want to trust, especially for a production setup, but also it might be necessary if you're testing with hosts with more different IP addresses. The fastest way to customize this is to create an augments file called
And put that in
Some configuration changes like this might need an agent run and/or a service restart on the hub:
After this you should be able to run bootstrap again from the client, successfully:
|
Beta Was this translation helpful? Give feedback.
Some things to check:
--bootstrap
argument should always have the IP address where you can reach the hub (both when running the command on the hub and on clients).ping 1.2.3.4
, orcf-net -H 1.2.3.4 connect
.…