Skip to content

Instantly share code, notes, and snippets.

@pgporada
Created March 9, 2017 16:56
Show Gist options
  • Save pgporada/de9a32e97b10b9b881970d814fb12f45 to your computer and use it in GitHub Desktop.
Save pgporada/de9a32e97b10b9b881970d814fb12f45 to your computer and use it in GitHub Desktop.
# /var/log/consul/consul.log
==> Starting Consul agent...
==> Starting Consul agent RPC...
==> Consul agent running!
Version: 'v0.7.5'
Node ID: '788e2702-f4df-425d-bbad-8e282351f4d5'
Node name: 'ip-172-21-8-118'
Datacenter: 'beta'
Server: false (bootstrap: false)
Client Addr: 0.0.0.0 (HTTP: 8500, HTTPS: -1, DNS: 8600, RPC: 8400)
Cluster Addr: 172.17.22.118 (LAN: 8301, WAN: 8302)
Gossip encrypt: true, RPC-TLS: false, TLS-Incoming: false
Atlas: <disabled>
==> Log data will now stream in as it occurs:
2017/03/09 11:45:27 [INFO] serf: EventMemberJoin: ip-172-21-8-118 172.17.22.118
2017/03/09 11:45:27 [WARN] manager: No servers available
2017/03/09 11:45:27 [ERR] agent: failed to sync remote state: No known Consul servers
2017/03/09 11:45:27 [INFO] agent: Joining cluster...
2017/03/09 11:45:27 [INFO] agent: (LAN) joining: [172.21.8.100]
2017/03/09 11:45:27 [INFO] agent: (LAN) joined: 0 Err: 1 error(s) occurred:
* Failed to join 172.21.8.100: EOF
2017/03/09 11:45:27 [WARN] agent: Join failed: <nil>, retrying in 30s
# consul config
{
"ui": false,
"start_join": [],
"retry_join": ["172.21.8.100"],
"retry_interval": "30s",
"retry_max": 0,
"domain": "consul",
"data_dir": "/opt/consul/data",
"dns_config": {
"allow_stale": true,
"max_stale": "5s",
"node_ttl": "0s",
"service_ttl": {
"*": "0s"
},
"enable_truncate": false,
"only_passing": false
},
"recursors": ["8.8.8.8", "169.254.169.253"],
"log_level": "INFO",
"enable_syslog": true,
"node_name": "ip-172-21-8-118",
"client_addr": "0.0.0.0",
"bind_addr": "172.17.22.118",
"advertise_addr": "172.17.22.118",
"datacenter": "beta",
"encrypt": "XXXXXXXXXXXXXXXXXXXsdf==",
"ports": {
"dns": 8600,
"http": 8500,
"https": -1,
"rpc": 8400,
"serf_lan": 8301,
"serf_wan": 8302,
"server": 8300
},
"rejoin_after_leave": true,
"leave_on_terminate": false
}
# consul members
Node Address Status Type Build Protocol DC
ip-172-21-8-118 172.17.22.118:8301 alive client 0.7.5 2 beta
# /var/log/consul/consul.log
2017/03/09 11:45:18 [ERR] memberlist: failed to receive: No installed keys could decrypt the message from=172.21.8.111:37372
2017/03/09 11:45:27 [ERR] memberlist: failed to receive: No installed keys could decrypt the message from=172.21.8.111:37376
2017/03/09 11:45:57 [ERR] memberlist: failed to receive: No installed keys could decrypt the message from=172.21.8.111:37382
# config
{
"ui": true,
"start_join": [],
"retry_join": [],
"retry_interval": "30s",
"retry_max": 0,
"domain": "consul.",
"data_dir": "/opt/consul/data",
"dns_config": {
"allow_stale": false,
"max_stale": "5s",
"node_ttl": "0s",
"service_ttl": {
"*": "0s"
},
"enable_truncate": false,
"only_passing": false
},
"recursors": ["8.8.8.8", "169.254.169.253"],
"log_level": "INFO",
"enable_syslog": true,
"node_name": "ip-172-21-8-100",
"client_addr": "0.0.0.0",
"bind_addr": "172.21.8.100",
"advertise_addr": "172.21.8.100",
"datacenter": "beta",
"server": true,
"bootstrap_expect": 1,
"disable_remote_exec": true,
"encrypt": "XXXXXXXXXXXXXXXXXXXsdf==",
"ports": {
"dns": 8600,
"http": 8500,
"https": -1,
"rpc": 8400,
"serf_lan": 8301,
"serf_wan": 8302,
"server": 8300
},
"rejoin_after_leave": true,
"leave_on_terminate": false
}
# consul members
Node Address Status Type Build Protocol DC
ip-172-21-8-100 172.21.8.100:8301 alive server 0.7.5 2 beta
ip-172-21-8-112 172.21.8.112:8301 left client 0.7.5 2 beta
# consul keyring --list
==> Gathering installed encryption keys...
==> Done!
WAN:
XXXXXXXXXXXXXXXXXXXsdQ== [1/1]
beta (LAN):
XXXXXXXXXXXXXXXXXXXsdQ== [1/1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment