title: issue with adding a new member in etcd cluster
body: <p>I have 3 node etcd cluster running on docker</p>
  <pre><code>Node1:
  
  etcd-advertise-client-urls: &quot;http://sensu-backend1:2379&quot;
  etcd-initial-advertise-peer-urls: &quot;http://sensu-backend3:2380&quot;
  etcd-initial-cluster: &quot;sensu-backend1=http://sensu-backend1:2380,sensu-backend2=http://sensu-backend2:2380,sensu-backend3=http://sensu-backend3:2380&quot;
  etcd-initial-cluster-state: &quot;new&quot; # new or existing
  etcd-listen-client-urls: &quot;http://0.0.0.0:2379&quot;
  etcd-listen-peer-urls: &quot;http://0.0.0.0:2380&quot;
  etcd-name: &quot;sensu-backend1&quot;
  
  Node2:
  
  etcd-advertise-client-urls: &quot;http://sensu-backend2:2379&quot;
  etcd-initial-advertise-peer-urls: &quot;http://sensu-backend3:2380&quot;
  etcd-initial-cluster: &quot;sensu-backend1=http://sensu-backend1:2380,sensu-backend2=http://sensu-backend2:2380,sensu-backend3=http://sensu-backend3:2380&quot;
  etcd-initial-cluster-state: &quot;new&quot; # new or existing
  etcd-listen-client-urls: &quot;http://0.0.0.0:2379&quot;
  etcd-listen-peer-urls: &quot;http://0.0.0.0:2380&quot;
  etcd-name: &quot;sensu-backend2&quot;```
  
  Node3:
  
  etcd-advertise-client-urls: &quot;http://sensu-backend3:2379&quot;
  etcd-initial-advertise-peer-urls: &quot;http://sensu-backend3:2380&quot;
  etcd-initial-cluster: &quot;sensu-backend1=http://sensu-backend1:2380,sensu-backend2=http://sensu-backend2:2380,sensu-backend3=http://sensu-backend3:2380&quot;
  etcd-initial-cluster-state: &quot;new&quot; # new or existing
  etcd-listen-client-urls: &quot;http://0.0.0.0:2379&quot;
  etcd-listen-peer-urls: &quot;http://0.0.0.0:2380&quot;
  etcd-name: &quot;sensu-backend3&quot;
  </code></pre>
  <p>I am running each node as a docker service without persisting the etcd data directory.
  When I start all the nodes together etcd forms the cluster.</p>
  <p>If I delete one node and try to add as <strong>etcd-initial-cluster-state: &quot;existing&quot;</strong> then I get following error
  <code>{&quot;component&quot;:&quot;etcd&quot;,&quot;level&quot;:&quot;fatal&quot;,&quot;msg&quot;:&quot;tocommit(6264) is out of range [lastIndex(0)]. Was the raft log corrupted, truncated, or lost?&quot;,&quot;pkg&quot;:&quot;raft&quot;,&quot;time&quot;:&quot;2020-12-09T11:32:55Z&quot;}</code></p>
  <p>After stopping etcd, I deleted the node from cluster using <strong>etcdctl member remove </strong> . When I restart container with empty etcd data directory then I get cluster id mismatch error.</p>
  <p><code>{&quot;component&quot;:&quot;backend&quot;,&quot;error&quot;:&quot;error starting etcd: error validating peerURLs {ClusterID:4bccd6f485bb66f5 Members:[\u0026{ID:2ea5b7e4c09185e2 RaftAttributes:{PeerURLs:[http://sensu-backend1:2380]} Attributes:{Name:sensu-backend1 ClientURLs:[http://sensu-backend1:2379]}} \u0026{ID:9e83e7f64749072d RaftAttributes:{PeerURLs:[http://sensu-backend2:2380]} Attributes:{Name:sensu-backend2 ClientURLs:[http://sensu-backend2:2379]}}] RemovedMemberIDs:[]}: member count is unequal&quot;} </code></p>
  <p>Please help me on fixing the issue.</p>