Created
March 24, 2015 19:50
-
-
Save pcorliss/5f04f78e600b7f738b35 to your computer and use it in GitHub Desktop.
A working and non-working example of ubuntu 12.04 versus debian jessie. Fix is to remove the data-dir and start from scratch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
admin@ip-172-31-16-81:~$ sudo /usr/local/bin/consul agent -server -config-dir /etc/consul.d -data-dir /mnt/consul -bind=172.31.16.81 -bootstrap-expect=1 | |
==> WARNING: BootstrapExpect Mode is specified as 1; this is the same as Bootstrap mode. | |
==> WARNING: Bootstrap mode enabled! Do not enable unless necessary | |
==> WARNING: It is highly recommended to set GOMAXPROCS higher than 1 | |
==> Starting Consul agent... | |
==> Starting Consul agent RPC... | |
==> Consul agent running! | |
Node name: 'ip-172-31-16-81' | |
Datacenter: 'dc1' | |
Server: true (bootstrap: true) | |
Client Addr: 127.0.0.1 (HTTP: 8500, HTTPS: -1, DNS: 8600, RPC: 8400) | |
Cluster Addr: 172.31.16.81 (LAN: 8301, WAN: 8302) | |
Gossip encrypt: false, RPC-TLS: false, TLS-Incoming: false | |
Atlas: <disabled> | |
==> Log data will now stream in as it occurs: | |
2015/03/24 19:48:47 [INFO] serf: EventMemberJoin: ip-172-31-16-81 172.31.16.81 | |
2015/03/24 19:48:47 [INFO] serf: EventMemberJoin: ip-172-31-16-81.dc1 172.31.16.81 | |
2015/03/24 19:48:47 [INFO] raft: Node at 172.31.16.81:8300 [Follower] entering Follower state | |
2015/03/24 19:48:47 [INFO] consul: adding server ip-172-31-16-81 (Addr: 172.31.16.81:8300) (DC: dc1) | |
2015/03/24 19:48:47 [INFO] consul: adding server ip-172-31-16-81.dc1 (Addr: 172.31.16.81:8300) (DC: dc1) | |
2015/03/24 19:48:47 [ERR] agent: failed to sync remote state: No cluster leader | |
2015/03/24 19:48:48 [WARN] raft: Heartbeat timeout reached, starting election | |
2015/03/24 19:48:48 [INFO] raft: Node at 172.31.16.81:8300 [Candidate] entering Candidate state | |
2015/03/24 19:48:48 [INFO] raft: Election won. Tally: 1 | |
2015/03/24 19:48:48 [INFO] raft: Node at 172.31.16.81:8300 [Leader] entering Leader state | |
2015/03/24 19:48:48 [INFO] consul: cluster leadership acquired | |
2015/03/24 19:48:48 [INFO] consul: New leader elected: ip-172-31-16-81 | |
2015/03/24 19:48:48 [INFO] raft: Disabling EnableSingleNode (bootstrap) | |
2015/03/24 19:48:48 [INFO] raft: Added peer :8300, starting replication | |
2015/03/24 19:48:48 [ERR] raft: Failed to AppendEntries to :8300: dial tcp :8300: connection refused | |
2015/03/24 19:48:48 [INFO] raft: Removed peer :8300, stopping replication (Index: 13) | |
2015/03/24 19:48:48 [INFO] raft: Added peer :8300, starting replication | |
2015/03/24 19:48:48 [ERR] raft: Failed to AppendEntries to :8300: dial tcp :8300: connection refused | |
2015/03/24 19:48:48 [ERR] raft: Failed to AppendEntries to :8300: dial tcp :8300: connection refused | |
2015/03/24 19:48:48 [INFO] raft: Removed peer :8300, stopping replication (Index: 157) | |
2015/03/24 19:48:48 [ERR] raft: Failed to AppendEntries to :8300: dial tcp :8300: connection refused |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ubuntu | |
ubuntu@ip-172-31-6-76:~$ sudo netstat -plant | grep consul | |
tcp 0 0 172.31.6.76:8302 0.0.0.0:* LISTEN 4176/consul | |
tcp 0 0 127.0.0.1:8400 0.0.0.0:* LISTEN 4176/consul | |
tcp 0 0 127.0.0.1:8500 0.0.0.0:* LISTEN 4176/consul | |
tcp 0 0 127.0.0.1:8600 0.0.0.0:* LISTEN 4176/consul | |
tcp 0 0 172.31.6.76:8300 0.0.0.0:* LISTEN 4176/consul | |
tcp 0 0 172.31.6.76:8301 0.0.0.0:* LISTEN 4176/consul | |
# Debian | |
admin@ip-172-31-16-81:~$ sudo netstat -plant | grep consul | |
tcp 0 0 172.31.16.81:8300 0.0.0.0:* LISTEN 6101/consul | |
tcp 0 0 172.31.16.81:8301 0.0.0.0:* LISTEN 6101/consul | |
tcp 0 0 172.31.16.81:8302 0.0.0.0:* LISTEN 6101/consul | |
tcp 0 0 127.0.0.1:8400 0.0.0.0:* LISTEN 6101/consul | |
tcp 0 0 127.0.0.1:8500 0.0.0.0:* LISTEN 6101/consul | |
tcp 0 0 127.0.0.1:8600 0.0.0.0:* LISTEN 6101/consul | |
tcp 0 0 172.31.16.81:39692 54.243.197.108:443 ESTABLISHED 6101/consul |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ubuntu@ip-172-31-6-76:~$ sudo /usr/local/bin/consul agent -server -config-dir /etc/consul.d -data-dir /mnt/consul -bind=172.31.6.76 -bootstrap-expect=1 | |
==> WARNING: BootstrapExpect Mode is specified as 1; this is the same as Bootstrap mode. | |
==> WARNING: Bootstrap mode enabled! Do not enable unless necessary | |
==> WARNING: It is highly recommended to set GOMAXPROCS higher than 1 | |
==> Starting Consul agent... | |
==> Starting Consul agent RPC... | |
==> Consul agent running! | |
Node name: 'ip-172-31-6-76' | |
Datacenter: 'dc1' | |
Server: true (bootstrap: true) | |
Client Addr: 127.0.0.1 (HTTP: 8500, HTTPS: -1, DNS: 8600, RPC: 8400) | |
Cluster Addr: 172.31.6.76 (LAN: 8301, WAN: 8302) | |
Gossip encrypt: false, RPC-TLS: false, TLS-Incoming: false | |
Atlas: <disabled> | |
==> Log data will now stream in as it occurs: | |
2015/03/24 19:47:52 [INFO] serf: EventMemberJoin: ip-172-31-6-76 172.31.6.76 | |
2015/03/24 19:47:52 [INFO] serf: EventMemberJoin: ip-172-31-6-76.dc1 172.31.6.76 | |
2015/03/24 19:47:52 [INFO] raft: Node at 172.31.6.76:8300 [Follower] entering Follower state | |
2015/03/24 19:47:52 [WARN] serf: Failed to re-join any previously known node | |
2015/03/24 19:47:52 [WARN] serf: Failed to re-join any previously known node | |
2015/03/24 19:47:53 [INFO] consul: adding server ip-172-31-6-76 (Addr: 172.31.6.76:8300) (DC: dc1) | |
2015/03/24 19:47:53 [INFO] consul: adding server ip-172-31-6-76.dc1 (Addr: 172.31.6.76:8300) (DC: dc1) | |
2015/03/24 19:47:53 [ERR] agent: failed to sync remote state: No cluster leader | |
2015/03/24 19:47:54 [WARN] raft: Heartbeat timeout reached, starting election | |
2015/03/24 19:47:54 [INFO] raft: Node at 172.31.6.76:8300 [Candidate] entering Candidate state | |
2015/03/24 19:47:54 [INFO] raft: Election won. Tally: 1 | |
2015/03/24 19:47:54 [INFO] raft: Node at 172.31.6.76:8300 [Leader] entering Leader state | |
2015/03/24 19:47:54 [INFO] consul: cluster leadership acquired | |
2015/03/24 19:47:54 [INFO] raft: Disabling EnableSingleNode (bootstrap) | |
2015/03/24 19:47:54 [INFO] consul: New leader elected: ip-172-31-6-76 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment