Skip to content

Instantly share code, notes, and snippets.

@dictvm
Created August 10, 2017 09:16
Show Gist options
  • Save dictvm/d4afcaa38e5422c745c41709ddd1cecc to your computer and use it in GitHub Desktop.
Save dictvm/d4afcaa38e5422c745c41709ddd1cecc to your computer and use it in GitHub Desktop.
/usr/local/bin/consul agent -server -data-dir data -retry-join 'provider=aws tag_key=foo tag_value=bar' -bind 127.0.0.1
==> Starting Consul agent...
==> Consul agent running!
Version: 'v0.9.1'
Node ID: '6c5ffc4d-268a-f96c-dae2-b0bfc39f5e5c'
Node name: 'ip-172-21-70-31'
Datacenter: 'dc1'
Server: true (bootstrap: false)
Client Addr: 127.0.0.1 (HTTP: 8500, HTTPS: -1, DNS: 8600)
Cluster Addr: 127.0.0.1 (LAN: 8301, WAN: 8302)
Gossip encrypt: false, RPC-TLS: false, TLS-Incoming: false
==> Log data will now stream in as it occurs:
2017/08/10 09:14:13 [INFO] raft: Initial configuration (index=0): []
2017/08/10 09:14:13 [INFO] raft: Node at 127.0.0.1:8300 [Follower] entering Follower state (Leader: "")
2017/08/10 09:14:13 [INFO] serf: EventMemberJoin: ip-172-21-70-31.dc1 127.0.0.1
2017/08/10 09:14:13 [INFO] serf: EventMemberJoin: ip-172-21-70-31 127.0.0.1
2017/08/10 09:14:13 [INFO] agent: Started DNS server 127.0.0.1:8600 (udp)
2017/08/10 09:14:13 [WARN] serf: Failed to re-join any previously known node
2017/08/10 09:14:13 [WARN] serf: Failed to re-join any previously known node
2017/08/10 09:14:13 [INFO] consul: Adding LAN server ip-172-21-70-31 (Addr: tcp/127.0.0.1:8300) (DC: dc1)
2017/08/10 09:14:13 [INFO] consul: Handled member-join event for server "ip-172-21-70-31.dc1" in area "wan"
2017/08/10 09:14:13 [INFO] agent: Started DNS server 127.0.0.1:8600 (tcp)
2017/08/10 09:14:13 [INFO] agent: Started HTTP server on 127.0.0.1:8500
2017/08/10 09:14:13 [INFO] agent: Retry join is supported for: aws azure gce softlayer
2017/08/10 09:14:13 [INFO] agent: Joining cluster...
2017/08/10 09:14:13 [INFO] discover-aws: Looking up region
2017/08/10 09:14:13 [INFO] discover-aws: Region is eu-west-1
2017/08/10 09:14:13 [INFO] discover-aws: Filter instances by foo=bar
2017/08/10 09:14:13 [INFO] agent: Discovered servers:
2017/08/10 09:14:13 [WARN] agent: Join failed: No servers to join, retrying in 30s
2017/08/10 09:14:19 [WARN] raft: no known peers, aborting election
2017/08/10 09:14:20 [ERR] agent: failed to sync remote state: No cluster leader
2017/08/10 09:14:32 [ERR] http: Request GET /v1/catalog/nodes, error: No cluster leader from=127.0.0.1:53462
2017/08/10 09:14:33 [ERR] http: Request GET /v1/catalog/services, error: No cluster leader from=127.0.0.1:53464
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment