When I try to connect a second secure node to the first I get the following messages in the log:
I180615 18:46:43.504247 100 gossip/client.go:129 [n?] started gossip client to cockroach1.mynetwork.local:26257
I180615 18:46:43.509325 29 storage/stores.go:331 [n?] read 0 node addresses from persistent storage
I180615 18:46:43.509424 29 storage/stores.go:350 [n?] wrote 1 node addresses to persistent storage
I180615 18:46:43.509441 29 server/node.go:653 [n?] connecting to gossip network to verify cluster ID…
I180615 18:46:43.509489 29 server/node.go:678 [n?] node connected via gossip and verified as part of cluster “c731ee5f-1f9d-42fc-a7de-74aca3570db7”
W180615 18:47:13.487444 330 server/server.go:1267 The server appears to be unable to contact the other nodes in the cluster. Please try
- starting the other nodes, if you haven’t already
- double-checking that the ‘–join’ and ‘–host’ flags are set up correctly
- running the ‘cockroach init’ command if you are trying to initialize a new cluster
If problems persist, please see https://www.cockroachlabs.com/docs/v2.0/cluster-setup-troubleshooting.html.
I180615 18:47:19.432002 134 gossip/gossip.go:1306 [n?] node has connected to cluster via gossip
I180615 18:47:19.432102 134 storage/stores.go:350 [n?] wrote 1 node addresses to persistent storage
How do I troubleshoot this further?
I have two nodes that succesfully connect in --insecure mode. When I clean the nodes and retry with the --certs-dir option, the first node comes up without a problem. The second however shows the log messages above and doesn’t show up in the web interface overview of the first node.