{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/etcd/issues/5139","repository_url":"https://api.github.com/repos/coreos/etcd","labels_url":"https://api.github.com/repos/coreos/etcd/issues/5139/labels{/name}","comments_url":"https://api.github.com/repos/coreos/etcd/issues/5139/comments","events_url":"https://api.github.com/repos/coreos/etcd/issues/5139/events","html_url":"https://github.com/coreos/etcd/issues/5139","id":149756564,"number":5139,"title":"Getting \"cluster ID mismatch:\" When Starting A New Cluster","user":{"login":"spirrello","id":7174260,"avatar_url":"https://avatars.githubusercontent.com/u/7174260?v=3","gravatar_id":"","url":"https://api.github.com/users/spirrello","html_url":"https://github.com/spirrello","followers_url":"https://api.github.com/users/spirrello/followers","following_url":"https://api.github.com/users/spirrello/following{/other_user}","gists_url":"https://api.github.com/users/spirrello/gists{/gist_id}","starred_url":"https://api.github.com/users/spirrello/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spirrello/subscriptions","organizations_url":"https://api.github.com/users/spirrello/orgs","repos_url":"https://api.github.com/users/spirrello/repos","events_url":"https://api.github.com/users/spirrello/events{/privacy}","received_events_url":"https://api.github.com/users/spirrello/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-04-20T12:42:58Z","updated_at":"2016-04-20T19:50:37Z","closed_at":null,"body":"Hi,\r\n\r\nEvery time I start a new cluster from systemctl, the Etcd process starts but the cluster never \"connects\".  The following error message keep flooding the logs and I can't seem to understand why this is happening.  Can someone point me in the right direction?  I'm running etcd on Centos 7.\r\n\r\n**Error messages from both servers:**\r\n sudo systemctl status etcd\r\n● etcd.service - Etcd Server\r\n   Loaded: loaded (/usr/lib/systemd/system/etcd.service; disabled; vendor preset: disabled)\r\n   Active: active (running) since Wed 2016-04-20 08:20:02 EDT; 7s ago\r\n Main PID: 3052 (etcd)\r\n   Memory: 4.4M\r\n   CGroup: /system.slice/etcd.service\r\n           └─3052 /usr/bin/etcd\r\n\r\nApr 20 08:20:09 StefanoC7-2 etcd[3052]: request sent was ignored (cluster ID mismatch: remote[d02e4310f63aca8f]=337bbf...29778)\r\nApr 20 08:20:09 StefanoC7-2 etcd[3052]: publish error: etcdserver: request timed out\r\nApr 20 08:20:09 StefanoC7-2 etcd[3052]: streaming request ignored (cluster ID mismatch got 337bbf1d89b93fd5 want d0527...29778)\r\nApr 20 08:20:09 StefanoC7-2 etcd[3052]: streaming request ignored (cluster ID mismatch got 337bbf1d89b93fd5 want d0527...29778)\r\nApr 20 08:20:09 StefanoC7-2 etcd[3052]: request sent was ignored (cluster ID mismatch: remote[d02e4310f63aca8f]=337bbf...29778)\r\nApr 20 08:20:09 StefanoC7-2 etcd[3052]: request sent was ignored (cluster ID mismatch: remote[d02e4310f63aca8f]=337bbf...29778)\r\nApr 20 08:20:09 StefanoC7-2 etcd[3052]: streaming request ignored (cluster ID mismatch got 337bbf1d89b93fd5 want d0527...29778)\r\nApr 20 08:20:09 StefanoC7-2 etcd[3052]: streaming request ignored (cluster ID mismatch got 337bbf1d89b93fd5 want d0527...29778)\r\nApr 20 08:20:09 StefanoC7-2 etcd[3052]: request sent was ignored (cluster ID mismatch: remote[d02e4310f63aca8f]=337bbf...29778)\r\nApr 20 08:20:09 StefanoC7-2 etcd[3052]: request sent was ignored (cluster ID mismatch: remote[d02e4310f63aca8f]=337bbf...29778)\r\nHint: Some lines were ellipsized, use -l to show in full.\r\n\r\n\r\n**Here's my config on both servers:**\r\nsudo cat /usr/lib/systemd/system/etcd.service\r\n[Unit]\r\nDescription=Etcd Server\r\nAfter=network.target\r\nAfter=network-online.target\r\nWants=network-online.target\r\n\r\n[Service]\r\nType=notify\r\nWorkingDirectory=/var/lib/etcd/\r\nEnvironmentFile=-/etc/etcd/etcd.conf\r\nUser=etcd\r\n# set GOMAXPROCS to number of processors\r\nExecStart=/usr/bin/etcd\r\nRestart=on-failure\r\nLimitNOFILE=65536\r\n\r\n[Install]\r\nWantedBy=multi-user.target\r\n\r\n**Server 1**\r\nsudo cat /etc/etcd/etcd.conf\r\n[cluster]\r\nETCD_NAME=StefanoC7-1\r\nETCD_INITIAL_ADVERTISE_PEER_URLS=\"http://10.10.16.61:2380\"\r\nETCD_LISTEN_PEER_URLS=\"http://10.10.16.61:2380\"\r\nETCD_DATA_DIR=\"/var/lib/etcd/default.etcd\"\r\nETCD_LISTEN_CLIENT_URLS=\"http://10.10.16.61:2379,http://127.0.0.1:2379\"\r\nETCD_ADVERTISE_CLIENT_URLS=\"http://10.10.16.61:2379\"\r\nETCD_INITIAL_CLUSTER_TOKEN=\"843c4abe-4e8f-4add-8c70-516206dae53b\" #Need to dynamically generate this in the future.\r\nETCD_INITIAL_CLUSTER=\"StefanoC7-1=http://10.10.16.61:2380,StefanoC7-2=http://10.10.16.62:2380\" #Need to research how to build this dynamically\r\nETCD_INITIAL_CLUSTER_STATE=\"new\"\r\n#ETCD_DISCOVERY=\"\"\r\n#ETCD_DISCOVERY_SRV=\"\"\r\n#ETCD_DISCOVERY_FALLBACK=\"proxy\"\r\n#ETCD_DISCOVERY_PROXY=\"\"[stefano@StefanoC7-1 Calico]\r\n\r\n\r\n\r\n**Server 2**\r\nsudo cat /etc/etcd/etcd.conf\r\n[cluster]\r\nETCD_NAME=StefanoC7-2\r\nETCD_INITIAL_ADVERTISE_PEER_URLS=\"http://10.10.16.62:2380\"\r\nETCD_LISTEN_PEER_URLS=\"http://10.10.16.62:2380\"\r\nETCD_DATA_DIR=\"/var/lib/etcd/default.etcd\"\r\nETCD_LISTEN_CLIENT_URLS=\"http://10.10.16.62:2379,http://127.0.0.1:2379\"\r\nETCD_ADVERTISE_CLIENT_URLS=\"http://10.10.16.62:2379\"\r\nETCD_INITIAL_CLUSTER_TOKEN=\"843c4abe-4e8f-4add-8c70-516206dae53b\" #Need to dynamically generate this in the future.\r\nETCD_INITIAL_CLUSTER=\"StefanoC7-2=http://10.10.16.62:2380,StefanoC7-1=http://10.10.16.61:2380\" #Need to research how to build this dynamically\r\nETCD_INITIAL_CLUSTER_STATE=\"new\"\r\n#ETCD_DISCOVERY=\"\"\r\n#ETCD_DISCOVERY_SRV=\"\"\r\n#ETCD_DISCOVERY_FALLBACK=\"proxy\"\r\n#ETCD_DISCOVERY_PROXY=\"\""},"comment":{"url":"https://api.github.com/repos/coreos/etcd/issues/comments/212577471","html_url":"https://github.com/coreos/etcd/issues/5139#issuecomment-212577471","issue_url":"https://api.github.com/repos/coreos/etcd/issues/5139","id":212577471,"user":{"login":"gyuho","id":6799218,"avatar_url":"https://avatars.githubusercontent.com/u/6799218?v=3","gravatar_id":"","url":"https://api.github.com/users/gyuho","html_url":"https://github.com/gyuho","followers_url":"https://api.github.com/users/gyuho/followers","following_url":"https://api.github.com/users/gyuho/following{/other_user}","gists_url":"https://api.github.com/users/gyuho/gists{/gist_id}","starred_url":"https://api.github.com/users/gyuho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gyuho/subscriptions","organizations_url":"https://api.github.com/users/gyuho/orgs","repos_url":"https://api.github.com/users/gyuho/repos","events_url":"https://api.github.com/users/gyuho/events{/privacy}","received_events_url":"https://api.github.com/users/gyuho/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T19:50:37Z","updated_at":"2016-04-20T19:50:37Z","body":"@spirrello Sorry, I am not a systemd expert. Could you clean up the data directory after you back up and restart the cluster? The new configuration will be ignored if data directory exists."}}