{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/etcd/issues/2995","labels_url":"https://api.github.com/repos/coreos/etcd/issues/2995/labels{/name}","comments_url":"https://api.github.com/repos/coreos/etcd/issues/2995/comments","events_url":"https://api.github.com/repos/coreos/etcd/issues/2995/events","html_url":"https://github.com/coreos/etcd/issues/2995","id":88940701,"number":2995,"title":"Cannot connect to the cluster","user":{"login":"gridpocketuser","id":8012830,"avatar_url":"https://avatars.githubusercontent.com/u/8012830?v=3","gravatar_id":"","url":"https://api.github.com/users/gridpocketuser","html_url":"https://github.com/gridpocketuser","followers_url":"https://api.github.com/users/gridpocketuser/followers","following_url":"https://api.github.com/users/gridpocketuser/following{/other_user}","gists_url":"https://api.github.com/users/gridpocketuser/gists{/gist_id}","starred_url":"https://api.github.com/users/gridpocketuser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gridpocketuser/subscriptions","organizations_url":"https://api.github.com/users/gridpocketuser/orgs","repos_url":"https://api.github.com/users/gridpocketuser/repos","events_url":"https://api.github.com/users/gridpocketuser/events{/privacy}","received_events_url":"https://api.github.com/users/gridpocketuser/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-17T07:39:05Z","updated_at":"2015-06-18T14:44:52Z","closed_at":null,"body":"Hello,\r\n\r\nI've installed CoreOS 681.0.0 on 2 machines (bare metal).\r\n\r\nThe cloud-config file used for node1 machine (only the IPs and the hosname are changed for the other one):\r\n\r\n    #cloud-config\r\n    #\r\n    # Set hostname\r\n    hostname: node1\r\n\r\n    # Set ssh key\r\n    ssh_authorized_keys:\r\n    - ssh-rsa KEY\r\n    coreos:\r\n      etcd:\r\n        name: node1\r\n        discovery: https://discovery.etcd.io/TOKEN\r\n        addr: 192.168.1.7:4001\r\n        peer-addr: 192.168.1.7:7001\r\n      fleet:\r\n        public-ip: 192.168.1.7\r\n      units:\r\n        - name: etcd.service\r\n          command: start\r\n        - name: fleet.service\r\n          command: start\r\n\r\nI can log to the machine and issue some basic commands without problem\r\n    - etcdctl ls / --recursive\r\n    - fleetctl list-machines\r\n\r\nWhen I boot the second machine, those commands give an error message:\r\n\r\n    etcdctl ls / --recursive\r\n    Error:  cannot sync with the cluster using endpoints http://127.0.0.1:4001, http://127.0.0.1:2379\r\n\r\n    fleetctl list-machines\r\n    Error retrieving list of active machines: googleapi: Error 503: fleet server unable to communicate with etcd    \r\n\r\nAny idea what can be wrong ?\r\nThanks a lot\r\n\r\n**UPDATE**\r\n\r\nSeems like etcd has not started on boot.\r\n\r\n    $ sudo systemctl status etcd\r\n    ● etcd.service - etcd\r\n       Loaded: loaded (/usr/lib64/systemd/system/etcd.service; static; vendor preset: disabled)\r\n      Drop-In: /run/systemd/system/etcd.service.d\r\n               └─20-cloudinit.conf\r\n       Active: activating (auto-restart) (Result: exit-code) since Wed 2015-06-17 11:29:05 ; 8s ago\r\n      Process: 746 ExecStart=/usr/bin/etcd (code=exited, status=1/FAILURE)\r\n     Main PID: 746 (code=exited, status=1/FAILURE)\r\n\r\n    Jun 17 11:29:05 node2 systemd[1]: Unit etcd.service entered failed state.\r\n    Jun 17 11:29:05 node2 systemd[1]: etcd.service failed.\r\n\r\n\r\n    $ journalctl -u etcd\r\n\r\n    Jun 17 11:34:28 node2 systemd[1]: Started etcd.\r\n    Jun 17 11:34:28 node2 systemd[1]: Starting etcd...\r\n    Jun 17 11:34:28 node2 etcd[1028]: [etcd] Jun 17 11:34:28.099 INFO      | Discovery via https://discovery.etcd.io using prefix /15e12f4ce6d2972b198e3274f0d19f6e.\r\n    Jun 17 11:34:30 node2 etcd[1028]: [etcd] Jun 17 11:34:30.500 WARNING   | Discovery encountered an error: 501: All the given peers are not reachable (Tried to connect to each peer twice and failed) [0]\r\n    Jun 17 11:34:30 node2 systemd[1]: etcd.service: main process exited, code=exited, status=1/FAILURE\r\n    Jun 17 11:34:30 node2 systemd[1]: Unit etcd.service entered failed state.\r\n    Jun 17 11:34:30 node2 systemd[1]: etcd.service failed."},"comment":{"url":"https://api.github.com/repos/coreos/etcd/issues/comments/113180279","html_url":"https://github.com/coreos/etcd/issues/2995#issuecomment-113180279","issue_url":"https://api.github.com/repos/coreos/etcd/issues/2995","id":113180279,"user":{"login":"yichengq","id":2976232,"avatar_url":"https://avatars.githubusercontent.com/u/2976232?v=3","gravatar_id":"","url":"https://api.github.com/users/yichengq","html_url":"https://github.com/yichengq","followers_url":"https://api.github.com/users/yichengq/followers","following_url":"https://api.github.com/users/yichengq/following{/other_user}","gists_url":"https://api.github.com/users/yichengq/gists{/gist_id}","starred_url":"https://api.github.com/users/yichengq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yichengq/subscriptions","organizations_url":"https://api.github.com/users/yichengq/orgs","repos_url":"https://api.github.com/users/yichengq/repos","events_url":"https://api.github.com/users/yichengq/events{/privacy}","received_events_url":"https://api.github.com/users/yichengq/received_events","type":"User","site_admin":false},"created_at":"2015-06-18T14:44:52Z","updated_at":"2015-06-18T14:44:52Z","body":"etcd process and etcd2 service use the same port, so you need to kill the original etcd process. Moreover, the cluster in static bootstrap will not work until all members join the cluster."}}