{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/fleet/issues/1080","labels_url":"https://api.github.com/repos/coreos/fleet/issues/1080/labels{/name}","comments_url":"https://api.github.com/repos/coreos/fleet/issues/1080/comments","events_url":"https://api.github.com/repos/coreos/fleet/issues/1080/events","html_url":"https://github.com/coreos/fleet/issues/1080","id":53259157,"number":1080,"title":"fleetctl: INFO client.go:291: Failed getting response from http://127.0.0.1:4001/: too many redirects","user":{"login":"Ke-Dou","id":6414439,"avatar_url":"https://avatars.githubusercontent.com/u/6414439?v=3","gravatar_id":"","url":"https://api.github.com/users/Ke-Dou","html_url":"https://github.com/Ke-Dou","followers_url":"https://api.github.com/users/Ke-Dou/followers","following_url":"https://api.github.com/users/Ke-Dou/following{/other_user}","gists_url":"https://api.github.com/users/Ke-Dou/gists{/gist_id}","starred_url":"https://api.github.com/users/Ke-Dou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ke-Dou/subscriptions","organizations_url":"https://api.github.com/users/Ke-Dou/orgs","repos_url":"https://api.github.com/users/Ke-Dou/repos","events_url":"https://api.github.com/users/Ke-Dou/events{/privacy}","received_events_url":"https://api.github.com/users/Ke-Dou/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/coreos/fleet/labels/needs-more","name":"needs-more","color":"bfdadc"},{"url":"https://api.github.com/repos/coreos/fleet/labels/support-request","name":"support-request","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-02T15:46:59Z","updated_at":"2015-01-09T03:15:05Z","closed_at":null,"body":"Hi,\r\n\r\nI am learning vagrant, coreos and fleet. \r\nI followed the examples in a tutoral, and they worked well. But when I try to create a new cluster with 3 nodes, and do a \"fleetctl list-machines\", I got the following error message:\r\n\r\n```\r\n$ fleetctl list-machines\r\n2015/01/02 10:40:12 INFO client.go:291: Failed getting response from http://127.0.0.1:4001/: too many redirects\r\n2015/01/02 10:40:12 ERROR client.go:213: Unable to get result for {Get /_coreos.com/fleet/machines}, retrying in 100ms\r\n2015/01/02 10:40:13 INFO client.go:291: Failed getting response from http://127.0.0.1:4001/: too many redirects\r\n2015/01/02 10:40:13 ERROR client.go:213: Unable to get result for {Get /_coreos.com/fleet/machines}, retrying in 200ms\r\n2015/01/02 10:40:13 INFO client.go:291: Failed getting response from http://127.0.0.1:4001/: too many redirects\r\n2015/01/02 10:40:13 ERROR client.go:213: Unable to get result for {Get /_coreos.com/fleet/machines}, retrying in 400ms\r\n2015/01/02 10:40:13 INFO client.go:291: Failed getting response from http://127.0.0.1:4001/: too many redirects\r\n2015/01/02 10:40:13 ERROR client.go:213: Unable to get result for {Get /_coreos.com/fleet/machines}, retrying in 800ms\r\n2015/01/02 10:40:14 INFO client.go:291: Failed getting response from http://127.0.0.1:4001/: too many redirects\r\n2015/01/02 10:40:14 ERROR client.go:213: Unable to get result for {Get /_coreos.com/fleet/machines}, retrying in 1s\r\n2015/01/02 10:40:15 INFO client.go:291: Failed getting response from http://127.0.0.1:4001/: too many redirects\r\n2015/01/02 10:40:15 ERROR client.go:213: Unable to get result for {Get /_coreos.com/fleet/machines}, retrying in 1s\r\n2015/01/02 10:40:15 ERROR fleetctl.go:212: error attempting to check latest fleet version in Registry: timeout reached\r\n2015/01/02 10:40:15 INFO client.go:291: Failed getting response from http://127.0.0.1:4001/: too many redirects\r\n2015/01/02 10:40:15 ERROR client.go:213: Unable to get result for {Get /_coreos.com/fleet/machines}, retrying in 100ms\r\n2015/01/02 10:40:16 INFO client.go:291: Failed getting response from http://127.0.0.1:4001/: too many redirects\r\n2015/01/02 10:40:16 ERROR client.go:213: Unable to get result for {Get /_coreos.com/fleet/machines}, retrying in 200ms\r\n2015/01/02 10:40:16 INFO client.go:291: Failed getting response from http://127.0.0.1:4001/: too many redirects\r\n2015/01/02 10:40:16 ERROR client.go:213: Unable to get result for {Get /_coreos.com/fleet/machines}, retrying in 400ms\r\n2015/01/02 10:40:16 INFO client.go:291: Failed getting response from http://127.0.0.1:4001/: too many redirects\r\n2015/01/02 10:40:16 ERROR client.go:213: Unable to get result for {Get /_coreos.com/fleet/machines}, retrying in 800ms\r\n2015/01/02 10:40:17 INFO client.go:291: Failed getting response from http://127.0.0.1:4001/: too many redirects\r\n2015/01/02 10:40:17 ERROR client.go:213: Unable to get result for {Get /_coreos.com/fleet/machines}, retrying in 1s\r\n2015/01/02 10:40:18 INFO client.go:291: Failed getting response from http://127.0.0.1:4001/: too many redirects\r\n2015/01/02 10:40:18 ERROR client.go:213: Unable to get result for {Get /_coreos.com/fleet/machines}, retrying in 1s\r\nError retrieving list of active machines: timeout reached\r\n```\r\n\r\n\r\nAny ideas will be appreciated!\r\n\r\nThanks in advance,\r\nKe"},"comment":{"url":"https://api.github.com/repos/coreos/fleet/issues/comments/69287837","html_url":"https://github.com/coreos/fleet/issues/1080#issuecomment-69287837","issue_url":"https://api.github.com/repos/coreos/fleet/issues/1080","id":69287837,"user":{"login":"Voltir","id":889215,"avatar_url":"https://avatars.githubusercontent.com/u/889215?v=3","gravatar_id":"","url":"https://api.github.com/users/Voltir","html_url":"https://github.com/Voltir","followers_url":"https://api.github.com/users/Voltir/followers","following_url":"https://api.github.com/users/Voltir/following{/other_user}","gists_url":"https://api.github.com/users/Voltir/gists{/gist_id}","starred_url":"https://api.github.com/users/Voltir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Voltir/subscriptions","organizations_url":"https://api.github.com/users/Voltir/orgs","repos_url":"https://api.github.com/users/Voltir/repos","events_url":"https://api.github.com/users/Voltir/events{/privacy}","received_events_url":"https://api.github.com/users/Voltir/received_events","type":"User","site_admin":false},"created_at":"2015-01-09T03:15:05Z","updated_at":"2015-01-09T03:15:05Z","body":"```\r\n#cloud-config\r\n\r\n---\r\ncoreos:\r\n  etcd:\r\n    discovery: https://discovery.etcd.io/9a9e13adc730019d358b37f707959d6d\r\n    addr: $public_ipv4:4001\r\n    peer-addr: $public_ipv4:7001\r\n  fleet:\r\n    public-ip: $public_ipv4\r\n  units:\r\n  - name: etcd.service\r\n    command: start\r\n  - name: fleet.service\r\n    command: start\r\n  - name: docker-tcp.socket\r\n    command: start\r\n    enable: true\r\n    content: |\r\n      [Unit]\r\n      Description=Docker Socket for the API\r\n\r\n      [Socket]\r\n      ListenStream=2375\r\n      Service=docker.service\r\n      BindIPv6Only=both\r\n\r\n      [Install]\r\n      WantedBy=sockets.target\r\n  - name: skydns.service\r\n    enable: false\r\n    content: |\r\n      [Unit]\r\n      Description=Skydns\r\n      After=docker.service\r\n      After=docker.service\r\n      After=fleet.service\r\n\r\n      [Service]\r\n      Environment=\"ETCD_MACHINES=10.1.42.1:4001\"\r\n      Environment=\"SKYDNS_DOMAIN=skydns.local\"\r\n      Environment=\"SKYDNS_NAMESERVERS=8.8.8.8:53,8.8.4.4:53\"\r\n      ExecStop=/usr/bin/docker stop skydns\r\n      ExecStart=/usr/bin/docker run -p 10.1.42.1:53:53/udp --name skydns -e SKYDNS_DOMAIN=skydns.local -e SKYDNS_NAMESERVERS=8.8.8.8:53,8.8.4.4:53 -e ETCD_MACHINES=10.1.42.1:4001 skynetservices/skydns -addr 0.0.0.0:53\r\n      Restart=always\r\n\r\n      [X-Fleet]\r\n      Global=true\r\n - name: registrator.service\r\n    enable: false\r\n    content: |\r\n      [Unit]\r\n      Description=Registrator\r\n      After=docker.service\r\n      Requires=docker.service\r\n      After=etcd.service\r\n      After=fleet.service\r\n\r\n      [Service]\r\n      ExecStop=/usr/bin/docker stop registrator\r\n      EnvironmentFile=/etc/environment\r\n      ExecStart=/usr/bin/docker run -v /var/run/docker.sock:/tmp/docker.sock --name registrator -h $COREOS_PRIVATE_IPV4 progrium/registrator skydns2://10.1.42.1:4001/skydns.local\r\n      Restart=always\r\n\r\n      [X-Fleet]\r\n      Global=true\r\n  - name: primordial.service\r\n    command: start\r\n    content: |\r\n      [Unit]\r\n      Description=Load and start fleet services\r\n      After=fleet.service\r\n      Requires=fleet.service\r\n      After=etcd.service\r\n      Requires=etcd.service\r\n      [Service]\r\n      Type=oneshot\r\n      RemainAfterExit=yes\r\n      ExecStart=/usr/bin/fleetctl start /etc/systemd/system/skydns.service\r\n      ExecStart=/usr/bin/fleetctl start /etc/systemd/system/registrator.service\r\n```\r\nI am attempting to get this working: https://github.com/CBarraford/coreos-vagrant-skydns-registrator\r\n\r\nI am just trying docker and coreos for the first time, trying to figure out how all this stuff works. I noticed that my initial setup worked fairly well, all the services came up and working properly. Then I did a vagrant destroy and tried to rebuild and I started running into all kinds of weird issues -- machines not coming up, services not starting, etc."}}