Closed monwolf closed 4 years ago
The Consul logs will likely have a more detailed explanation of the problem.
Good monring thanks for the advise, I tried to execute consul in "trace mode" but I'm not able to see anything wrong:
/usr/bin/consul agent -config-dir=/opt/consul/conf -log-level=trace
WARNING: LAN keyring exists but -encrypt given, using keyring
==> Starting Consul agent...
==> Consul agent running!
Version: 'v1.2.0'
Node ID: 'c6e560ae-551c-1dc9-41f6-aaaed240cff3'
Node name: 'ildes01'
Datacenter: 'bardock' (Segment: '')
Server: false (Bootstrap: false)
Client Addr: [127.0.0.1] (HTTP: -1, HTTPS: 8500, DNS: 8600)
Cluster Addr: 10.10.0.128 (LAN: 8301, WAN: 8302)
Encrypt: Gossip: true, TLS-Outgoing: true, TLS-Incoming: true
==> Log data will now stream in as it occurs:
2018/07/17 07:42:36 [INFO] serf: EventMemberJoin: ildes01 10.10.0.128
2018/07/17 07:42:36 [DEBUG] agent: restored service definition "_nomad-task-uya2ltnegrulmybmhl6e7f3krkqypb2b" from "/opt/consul/data/services/1eeec430722bec3dc8bc18122a17917c"
2018/07/17 07:42:36 [DEBUG] agent: restored service definition "_nomad-client-iisg2jfy4ykv57yhf2oxzqrrxfdeghy4" from "/opt/consul/data/services/dbca3984643c6d3aaabc42121670215d"
2018/07/17 07:42:36 [DEBUG] agent: restored health check "9e71d1d465ef90c6d1ce95ec006a390969014166" from "/opt/consul/data/checks/052736bd31672306e8254efc01cfc810"
2018/07/17 07:42:36 [DEBUG] agent/proxy: managed Connect proxy manager started
2018/07/17 07:42:36 [WARN] agent/proxy: running as root, will not start managed proxies
2018/07/17 07:42:36 [INFO] agent: Started DNS server 127.0.0.1:8600 (tcp)
2018/07/17 07:42:36 [INFO] agent: Started DNS server 127.0.0.1:8600 (udp)
2018/07/17 07:42:36 [INFO] agent: Started HTTPS server on [::]:8500 (tcp)
2018/07/17 07:42:36 [INFO] agent: started state syncer
2018/07/17 07:42:36 [INFO] agent: Retry join LAN is supported for: aliyun aws azure digitalocean gce os scaleway softlayer triton
2018/07/17 07:42:36 [INFO] agent: Joining LAN cluster...
2018/07/17 07:42:36 [INFO] agent: (LAN) joining: [10.10.0.125]
2018/07/17 07:42:36 [WARN] manager: No servers available
2018/07/17 07:42:36 [ERR] agent: failed to sync remote state: No known Consul servers
2018/07/17 07:42:36 [DEBUG] memberlist: Initiating push/pull sync with: 10.10.0.125:8301
2018/07/17 07:42:36 [WARN] memberlist: Refuting a suspect message (from: ildes01)
2018/07/17 07:42:36 [INFO] serf: EventMemberJoin: des01 10.10.0.125
2018/07/17 07:42:36 [DEBUG] serf: Refuting an older leave intent
2018/07/17 07:42:36 [INFO] agent: (LAN) joined: 1 Err: <nil>
2018/07/17 07:42:36 [DEBUG] agent: systemd notify failed: No socket
2018/07/17 07:42:36 [INFO] agent: Join LAN completed. Synced with 1 initial agents
2018/07/17 07:42:36 [INFO] consul: adding server des01 (Addr: tcp/10.10.0.125:8300) (DC: bardock)
2018/07/17 07:42:36 [DEBUG] http: Request GET /v1/kv/config/openid-server.properties?recurse&wait=55s&index=110507 (22.661137ms) from=172.17.0.2:54594
2018/07/17 07:42:36 [DEBUG] http: Request GET /v1/kv/config/openid-server.yaml?recurse&wait=55s&index=110507 (1.256058ms) from=172.17.0.2:54598
2018/07/17 07:42:36 [DEBUG] serf: messageJoinType: ildes01
2018/07/17 07:42:36 [DEBUG] serf: messageJoinType: ildes01
2018/07/17 07:42:36 [DEBUG] serf: messageJoinType: ildes01
2018/07/17 07:42:36 [DEBUG] serf: messageJoinType: ildes01
2018/07/17 07:42:37 [DEBUG] agent: Skipping remote check "serfHealth" since it is managed automatically
2018/07/17 07:42:37 [INFO] agent: Synced service "_nomad-task-uya2ltnegrulmybmhl6e7f3krkqypb2b"
2018/07/17 07:42:37 [INFO] agent: Synced service "_nomad-client-iisg2jfy4ykv57yhf2oxzqrrxfdeghy4"
2018/07/17 07:42:37 [DEBUG] agent: Check "9e71d1d465ef90c6d1ce95ec006a390969014166" in sync
2018/07/17 07:42:37 [DEBUG] agent: Node info in sync
2018/07/17 07:42:37 [DEBUG] agent: Service "_nomad-task-uya2ltnegrulmybmhl6e7f3krkqypb2b" in sync
2018/07/17 07:42:37 [DEBUG] agent: Service "_nomad-client-iisg2jfy4ykv57yhf2oxzqrrxfdeghy4" in sync
2018/07/17 07:42:37 [DEBUG] agent: Check "9e71d1d465ef90c6d1ce95ec006a390969014166" in sync
2018/07/17 07:42:37 [DEBUG] agent: Node info in sync
2018/07/17 07:42:38 [DEBUG] agent: Check "9e71d1d465ef90c6d1ce95ec006a390969014166" is passing
2018/07/17 07:42:38 [DEBUG] agent: Service "_nomad-task-uya2ltnegrulmybmhl6e7f3krkqypb2b" in sync
2018/07/17 07:42:38 [DEBUG] agent: Service "_nomad-client-iisg2jfy4ykv57yhf2oxzqrrxfdeghy4" in sync
2018/07/17 07:42:38 [INFO] agent: Synced check "9e71d1d465ef90c6d1ce95ec006a390969014166"
2018/07/17 07:42:38 [DEBUG] agent: Node info in sync
2018/07/17 07:42:38 [DEBUG] memberlist: Stream connection from=10.10.0.130:32429
2018/07/17 07:42:43 [DEBUG] memberlist: Stream connection from=10.10.0.127:61038
Sorry for the delay, I was on holiday. I've been able to discover the issue, I had a typo in my config file:
tls_cert_file = "/opt/consul/ssl/client-ildes01.pem"
tls_cert_file = "/opt/consul/ssl/client-ildes01-key.pem"
I doubled the property tls_cert_file without set tls_cert_file . I think this behaviour could be "handled" by the application and show a warning message when you put a certificate without key.
Good monring, I'm trying to setup a cluster of vault (v0.10.3) using consul as backend. In this setup I have 2 tipes of consul, 1 node is the server and the other are members of this consul client. When I tried to run vault in the client node I saw this error message:
This error didn't happen on the consul server. In the next line I pasted the output of run consul members to show the state of my cluster.
I generated the SSL certificates using cfssl and cfssljson in my ansible playbook:
If I inspect with openssl the certificates I'm able to see all de alternetivenames that I provided.
Server certificate:
Client certificate:
Reproduction Steps
Steps to reproduce this issue, eg:
Client configuration:
Server configuration:
Server config:
Client config:
/usr/bin/vault server -config=/opt/vault/conf
Log Fragments
After run vault in the client node I saw this logs:
May be I need some other SAN or flag in the certificate? I spend few hours reviewing your documentation for my alls seems good, but It don't start. Could you help me with this issue?