{"action":"created","issue":{"url":"https://api.github.com/repos/jlund/streisand/issues/206","labels_url":"https://api.github.com/repos/jlund/streisand/issues/206/labels{/name}","comments_url":"https://api.github.com/repos/jlund/streisand/issues/206/comments","events_url":"https://api.github.com/repos/jlund/streisand/issues/206/events","html_url":"https://github.com/jlund/streisand/issues/206","id":118490518,"number":206,"title":"Fail on retrieve ip address of new droplet","user":{"login":"ddvzlnz","id":15989479,"avatar_url":"https://avatars.githubusercontent.com/u/15989479?v=3","gravatar_id":"","url":"https://api.github.com/users/ddvzlnz","html_url":"https://github.com/ddvzlnz","followers_url":"https://api.github.com/users/ddvzlnz/followers","following_url":"https://api.github.com/users/ddvzlnz/following{/other_user}","gists_url":"https://api.github.com/users/ddvzlnz/gists{/gist_id}","starred_url":"https://api.github.com/users/ddvzlnz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddvzlnz/subscriptions","organizations_url":"https://api.github.com/users/ddvzlnz/orgs","repos_url":"https://api.github.com/users/ddvzlnz/repos","events_url":"https://api.github.com/users/ddvzlnz/events{/privacy}","received_events_url":"https://api.github.com/users/ddvzlnz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-23T22:45:19Z","updated_at":"2015-11-23T23:00:55Z","closed_at":null,"body":"Hi, I'm new to digital ocean and wanted to try this out.  I'm running streisand on an ubuntu 14,043 server vm here in the office.  When I run streisand it fails at:\r\nTASK: [genesis-digitalocean | Retrieve the IP address of the new Droplet] *****\r\nThe last line of the error is \"IndexError: list index out of range\"\r\nIf I open a browser and log into DO the new droplet is there.  Here is the session.  Please let me know if there is something I can try.\r\n\r\nwfcadmin@bhc1:~/streisand$ ./streisand\r\n\r\n  S T R E I S A N D  \r\n\r\nWhich provider are you using?\r\n  1. Amazon\r\n  2. DigitalOcean\r\n  3. Google\r\n  4. Linode\r\n  5. Rackspace\r\n: 2\r\n\r\n\r\nWhat region should the server be located in?\r\n  1.  Amsterdam        (Datacenter 2)\r\n  2.  Amsterdam        (Datacenter 3)\r\n  3.  Frankfurt\r\n  4.  London\r\n  5.  New York         (Datacenter 1)\r\n  6.  New York         (Datacenter 2)\r\n  7.  New York         (Datacenter 3)\r\n  8.  San Francisco\r\n  9.  Singapore\r\n  10. Toronto\r\nPlease choose the number of your region. Press enter for default (#2) region.\r\n [2]: 7\r\n\r\nWhat should the server be named? Press enter for default (streisand).\r\n [streisand]: \r\n\r\n\r\nNew API access tokens can be generated in the DigitalOcean control panel. When generating a new token, please note that the Write Scope is necessary in order to create Droplets.\r\nhttps://cloud.digitalocean.com/settings/applications\r\n\r\nWhat is your DigitalOcean Access Token?\r\n: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX (I typed \"X\" over the real token here and below in the error message)\r\n\r\n\r\nIf you haven't done so already, you must add your SSH public key in the DigitalOcean control panel.\r\nhttps://cloud.digitalocean.com/settings/security\r\n\r\nWhat is the name of the DigitalOcean SSH key that you would like to use?\r\n [streisand]: \r\n\r\nStreisand will now set up your server. This process usually takes around ten minutes. Press Enter to begin setup...\r\n: \r\n\r\nPLAY [Provision the DigitalOcean Server] ************************************** \r\n\r\nGATHERING FACTS *************************************************************** \r\nok: [127.0.0.1]\r\n\r\nTASK: [genesis-digitalocean | Retrieve the SSH key ID using the name that was provided] *** \r\nchanged: [127.0.0.1]\r\n\r\nTASK: [genesis-digitalocean | Create the server. If this task fails with an \"invalid region\" error, then DigitalOcean is temporarily not allowing new 512MB Droplets to be provisioned in the selected region. You can either try the same region again later, or choose a different location.] *** \r\nchanged: [127.0.0.1]\r\n\r\nTASK: [genesis-digitalocean | Retrieve the IP address of the new Droplet] ***** \r\nfailed: [127.0.0.1] => {\"changed\": true, \"cmd\": \"curl -s -X GET -H 'Content-Type: application/json' -H 'Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' \\\"https://api.digitalocean.com/v2/droplets/8986939\\\" | python -c 'import json; import sys; j = json.loads(sys.stdin.read()); print j[\\\"droplet\\\"][\\\"networks\\\"][\\\"v4\\\"][0][\\\"ip_address\\\"]'\", \"delta\": \"0:00:00.184688\", \"end\": \"2015-11-23 17:32:03.163761\", \"rc\": 1, \"start\": \"2015-11-23 17:32:02.979073\", \"warnings\": [\"Consider using get_url module rather than running curl\"]}\r\nstderr: Traceback (most recent call last):\r\n  File \"<string>\", line 1, in <module>\r\nIndexError: list index out of range\r\n\r\nFATAL: all hosts have already failed -- aborting\r\n\r\nPLAY RECAP ******************************************************************** \r\n           to retry, use: --limit @/home/wfcadmin/digitalocean.retry\r\n\r\n127.0.0.1                  : ok=3    changed=2    unreachable=0    failed=1   \r\n\r\nwfcadmin@bhc1:~/streisand$ "},"comment":{"url":"https://api.github.com/repos/jlund/streisand/issues/comments/159095165","html_url":"https://github.com/jlund/streisand/issues/206#issuecomment-159095165","issue_url":"https://api.github.com/repos/jlund/streisand/issues/206","id":159095165,"user":{"login":"benpoliquin","id":2567956,"avatar_url":"https://avatars.githubusercontent.com/u/2567956?v=3","gravatar_id":"","url":"https://api.github.com/users/benpoliquin","html_url":"https://github.com/benpoliquin","followers_url":"https://api.github.com/users/benpoliquin/followers","following_url":"https://api.github.com/users/benpoliquin/following{/other_user}","gists_url":"https://api.github.com/users/benpoliquin/gists{/gist_id}","starred_url":"https://api.github.com/users/benpoliquin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benpoliquin/subscriptions","organizations_url":"https://api.github.com/users/benpoliquin/orgs","repos_url":"https://api.github.com/users/benpoliquin/repos","events_url":"https://api.github.com/users/benpoliquin/events{/privacy}","received_events_url":"https://api.github.com/users/benpoliquin/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T23:00:55Z","updated_at":"2015-11-23T23:00:55Z","body":"Ironically, I am having this same issue right now. I did delete and fire up a new droplet and it fixed this, but then I get this error: https://github.com/jlund/streisand/issues/198\r\nMy ssh key is correct, unlike the poster of that issue.  Even deleted and re added my key multiple times to test.  "}}