{"action":"created","issue":{"url":"https://api.github.com/repos/pangeo-data/pangeo/issues/148","repository_url":"https://api.github.com/repos/pangeo-data/pangeo","labels_url":"https://api.github.com/repos/pangeo-data/pangeo/issues/148/labels{/name}","comments_url":"https://api.github.com/repos/pangeo-data/pangeo/issues/148/comments","events_url":"https://api.github.com/repos/pangeo-data/pangeo/issues/148/events","html_url":"https://github.com/pangeo-data/pangeo/issues/148","id":303486877,"number":148,"title":"TimeoutError in `examples/xarray-data.ipynb`","user":{"login":"willirath","id":5700886,"avatar_url":"https://avatars2.githubusercontent.com/u/5700886?v=4","gravatar_id":"","url":"https://api.github.com/users/willirath","html_url":"https://github.com/willirath","followers_url":"https://api.github.com/users/willirath/followers","following_url":"https://api.github.com/users/willirath/following{/other_user}","gists_url":"https://api.github.com/users/willirath/gists{/gist_id}","starred_url":"https://api.github.com/users/willirath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willirath/subscriptions","organizations_url":"https://api.github.com/users/willirath/orgs","repos_url":"https://api.github.com/users/willirath/repos","events_url":"https://api.github.com/users/willirath/events{/privacy}","received_events_url":"https://api.github.com/users/willirath/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":40,"created_at":"2018-03-08T13:53:59Z","updated_at":"2018-03-08T21:10:47Z","closed_at":null,"author_association":"NONE","body":"When trying to execute [gce/notebook/examples/xarray-data.ipynb](https://github.com/pangeo-data/pangeo/blob/master/gce/notebook/examples/xarray-data.ipynb) on `pangeo.pydata.org>, I get a TimeoutError from `gcsfs.mapping.GCSMap`.\r\n\r\nFrom the traceback (see below), I gather that this error is raised after a few unsucessful connections / authentications.\r\n\r\n<details>\r\n\r\n```python\r\nimport gcsfs\r\ngcsmap = gcsfs.mapping.GCSMap('pangeo-data/newman-met-ensemble')\r\n```\r\n\r\n```\r\n_call exception: HTTPConnectionPool(host='metadata.google.internal', port=80): Max retries exceeded with url: /computeMetadata/v1/instance/service-accounts/default/?recursive=true (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa314a86550>: Failed to establish a new connection: [Errno 110] Connection timed out',))\r\nTraceback (most recent call last):\r\n  File \"/opt/conda/lib/python3.6/site-packages/urllib3/connection.py\", line 141, in _new_conn\r\n    (self.host, self.port), self.timeout, **extra_kw)\r\n  File \"/opt/conda/lib/python3.6/site-packages/urllib3/util/connection.py\", line 83, in create_connection\r\n    raise err\r\n  File \"/opt/conda/lib/python3.6/site-packages/urllib3/util/connection.py\", line 73, in create_connection\r\n    sock.connect(sa)\r\nTimeoutError: [Errno 110] Connection timed out\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/opt/conda/lib/python3.6/site-packages/urllib3/connectionpool.py\", line 601, in urlopen\r\n    chunked=chunked)\r\n  File \"/opt/conda/lib/python3.6/site-packages/urllib3/connectionpool.py\", line 357, in _make_request\r\n    conn.request(method, url, **httplib_request_kw)\r\n  File \"/opt/conda/lib/python3.6/http/client.py\", line 1239, in request\r\n    self._send_request(method, url, body, headers, encode_chunked)\r\n  File \"/opt/conda/lib/python3.6/http/client.py\", line 1285, in _send_request\r\n    self.endheaders(body, encode_chunked=encode_chunked)\r\n  File \"/opt/conda/lib/python3.6/http/client.py\", line 1234, in endheaders\r\n    self._send_output(message_body, encode_chunked=encode_chunked)\r\n  File \"/opt/conda/lib/python3.6/http/client.py\", line 1026, in _send_output\r\n    self.send(msg)\r\n  File \"/opt/conda/lib/python3.6/http/client.py\", line 964, in send\r\n    self.connect()\r\n  File \"/opt/conda/lib/python3.6/site-packages/urllib3/connection.py\", line 166, in connect\r\n    conn = self._new_conn()\r\n  File \"/opt/conda/lib/python3.6/site-packages/urllib3/connection.py\", line 150, in _new_conn\r\n    self, \"Failed to establish a new connection: %s\" % e)\r\nurllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa314a86550>: Failed to establish a new connection: [Errno 110] Connection timed out\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/opt/conda/lib/python3.6/site-packages/requests/adapters.py\", line 440, in send\r\n    timeout=timeout\r\n  File \"/opt/conda/lib/python3.6/site-packages/urllib3/connectionpool.py\", line 639, in urlopen\r\n    _stacktrace=sys.exc_info()[2])\r\n  File \"/opt/conda/lib/python3.6/site-packages/urllib3/util/retry.py\", line 388, in increment\r\n    raise MaxRetryError(_pool, url, error or ResponseError(cause))\r\nurllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='metadata.google.internal', port=80): Max retries exceeded with url: /computeMetadata/v1/instance/service-accounts/default/?recursive=true (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa314a86550>: Failed to establish a new connection: [Errno 110] Connection timed out',))\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/opt/conda/lib/python3.6/site-packages/google/auth/transport/requests.py\", line 120, in __call__\r\n    **kwargs)\r\n  File \"/opt/conda/lib/python3.6/site-packages/requests/sessions.py\", line 508, in request\r\n    resp = self.send(prep, **send_kwargs)\r\n  File \"/opt/conda/lib/python3.6/site-packages/requests/sessions.py\", line 618, in send\r\n    r = adapter.send(request, **kwargs)\r\n  File \"/opt/conda/lib/python3.6/site-packages/requests/adapters.py\", line 508, in send\r\n    raise ConnectionError(e, request=request)\r\nrequests.exceptions.ConnectionError: HTTPConnectionPool(host='metadata.google.internal', port=80): Max retries exceeded with url: /computeMetadata/v1/instance/service-accounts/default/?recursive=true (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa314a86550>: Failed to establish a new connection: [Errno 110] Connection timed out',))\r\n\r\nThe above exception was the direct cause of the following exception:\r\n\r\nTraceback (most recent call last):\r\n  File \"/opt/conda/lib/python3.6/site-packages/google/auth/compute_engine/credentials.py\", line 90, in refresh\r\n    self._retrieve_info(request)\r\n  File \"/opt/conda/lib/python3.6/site-packages/google/auth/compute_engine/credentials.py\", line 72, in _retrieve_info\r\n    service_account=self._service_account_email)\r\n  File \"/opt/conda/lib/python3.6/site-packages/google/auth/compute_engine/_metadata.py\", line 179, in get_service_account_info\r\n    recursive=True)\r\n  File \"/opt/conda/lib/python3.6/site-packages/google/auth/compute_engine/_metadata.py\", line 115, in get\r\n    response = request(url=url, method='GET', headers=_METADATA_HEADERS)\r\n  File \"/opt/conda/lib/python3.6/site-packages/google/auth/transport/requests.py\", line 124, in __call__\r\n    six.raise_from(new_exc, caught_exc)\r\n  File \"<string>\", line 3, in raise_from\r\ngoogle.auth.exceptions.TransportError: HTTPConnectionPool(host='metadata.google.internal', port=80): Max retries exceeded with url: /computeMetadata/v1/instance/service-accounts/default/?recursive=true (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa314a86550>: Failed to establish a new connection: [Errno 110] Connection timed out',))\r\n\r\nThe above exception was the direct cause of the following exception:\r\n\r\nTraceback (most recent call last):\r\n  File \"/opt/conda/lib/python3.6/site-packages/gcsfs/core.py\", line 431, in _call\r\n    r = meth(self.base + path, params=kwargs, json=json)\r\n  File \"/opt/conda/lib/python3.6/site-packages/requests/sessions.py\", line 521, in get\r\n    return self.request('GET', url, **kwargs)\r\n  File \"/opt/conda/lib/python3.6/site-packages/google/auth/transport/requests.py\", line 198, in request\r\n    self._auth_request, method, url, request_headers)\r\n  File \"/opt/conda/lib/python3.6/site-packages/google/auth/credentials.py\", line 121, in before_request\r\n    self.refresh(request)\r\n  File \"/opt/conda/lib/python3.6/site-packages/google/auth/compute_engine/credentials.py\", line 96, in refresh\r\n    six.raise_from(new_exc, caught_exc)\r\n  File \"<string>\", line 3, in raise_from\r\ngoogle.auth.exceptions.RefreshError: HTTPConnectionPool(host='metadata.google.internal', port=80): Max retries exceeded with url: /computeMetadata/v1/instance/service-accounts/default/?recursive=true (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa314a86550>: Failed to establish a new connection: [Errno 110] Connection timed out',))\r\n_call exception: HTTPConnectionPool(host='metadata.google.internal', port=80): Max retries exceeded with url: /computeMetadata/v1/instance/service-accounts/default/?recursive=true (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa314209080>: Failed to establish a new connection: [Errno 110] Connection timed out',))\r\nTraceback (most recent call last):\r\n  File \"/opt/conda/lib/python3.6/site-packages/urllib3/connection.py\", line 141, in _new_conn\r\n    (self.host, self.port), self.timeout, **extra_kw)\r\n  File \"/opt/conda/lib/python3.6/site-packages/urllib3/util/connection.py\", line 83, in create_connection\r\n    raise err\r\n  File \"/opt/conda/lib/python3.6/site-packages/urllib3/util/connection.py\", line 73, in create_connection\r\n    sock.connect(sa)\r\nTimeoutError: [Errno 110] Connection timed out\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/opt/conda/lib/python3.6/site-packages/urllib3/connectionpool.py\", line 601, in urlopen\r\n    chunked=chunked)\r\n  File \"/opt/conda/lib/python3.6/site-packages/urllib3/connectionpool.py\", line 357, in _make_request\r\n    conn.request(method, url, **httplib_request_kw)\r\n  File \"/opt/conda/lib/python3.6/http/client.py\", line 1239, in request\r\n    self._send_request(method, url, body, headers, encode_chunked)\r\n  File \"/opt/conda/lib/python3.6/http/client.py\", line 1285, in _send_request\r\n    self.endheaders(body, encode_chunked=encode_chunked)\r\n  File \"/opt/conda/lib/python3.6/http/client.py\", line 1234, in endheaders\r\n    self._send_output(message_body, encode_chunked=encode_chunked)\r\n  File \"/opt/conda/lib/python3.6/http/client.py\", line 1026, in _send_output\r\n    self.send(msg)\r\n  File \"/opt/conda/lib/python3.6/http/client.py\", line 964, in send\r\n    self.connect()\r\n  File \"/opt/conda/lib/python3.6/site-packages/urllib3/connection.py\", line 166, in connect\r\n    conn = self._new_conn()\r\n  File \"/opt/conda/lib/python3.6/site-packages/urllib3/connection.py\", line 150, in _new_conn\r\n    self, \"Failed to establish a new connection: %s\" % e)\r\nurllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa314209080>: Failed to establish a new connection: [Errno 110] Connection timed out\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/opt/conda/lib/python3.6/site-packages/requests/adapters.py\", line 440, in send\r\n    timeout=timeout\r\n  File \"/opt/conda/lib/python3.6/site-packages/urllib3/connectionpool.py\", line 639, in urlopen\r\n    _stacktrace=sys.exc_info()[2])\r\n  File \"/opt/conda/lib/python3.6/site-packages/urllib3/util/retry.py\", line 388, in increment\r\n    raise MaxRetryError(_pool, url, error or ResponseError(cause))\r\nurllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='metadata.google.internal', port=80): Max retries exceeded with url: /computeMetadata/v1/instance/service-accounts/default/?recursive=true (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa314209080>: Failed to establish a new connection: [Errno 110] Connection timed out',))\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/opt/conda/lib/python3.6/site-packages/google/auth/transport/requests.py\", line 120, in __call__\r\n    **kwargs)\r\n  File \"/opt/conda/lib/python3.6/site-packages/requests/sessions.py\", line 508, in request\r\n    resp = self.send(prep, **send_kwargs)\r\n  File \"/opt/conda/lib/python3.6/site-packages/requests/sessions.py\", line 618, in send\r\n    r = adapter.send(request, **kwargs)\r\n  File \"/opt/conda/lib/python3.6/site-packages/requests/adapters.py\", line 508, in send\r\n    raise ConnectionError(e, request=request)\r\nrequests.exceptions.ConnectionError: HTTPConnectionPool(host='metadata.google.internal', port=80): Max retries exceeded with url: /computeMetadata/v1/instance/service-accounts/default/?recursive=true (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa314209080>: Failed to establish a new connection: [Errno 110] Connection timed out',))\r\n\r\nThe above exception was the direct cause of the following exception:\r\n\r\nTraceback (most recent call last):\r\n  File \"/opt/conda/lib/python3.6/site-packages/google/auth/compute_engine/credentials.py\", line 90, in refresh\r\n    self._retrieve_info(request)\r\n  File \"/opt/conda/lib/python3.6/site-packages/google/auth/compute_engine/credentials.py\", line 72, in _retrieve_info\r\n    service_account=self._service_account_email)\r\n  File \"/opt/conda/lib/python3.6/site-packages/google/auth/compute_engine/_metadata.py\", line 179, in get_service_account_info\r\n    recursive=True)\r\n  File \"/opt/conda/lib/python3.6/site-packages/google/auth/compute_engine/_metadata.py\", line 115, in get\r\n    response = request(url=url, method='GET', headers=_METADATA_HEADERS)\r\n  File \"/opt/conda/lib/python3.6/site-packages/google/auth/transport/requests.py\", line 124, in __call__\r\n    six.raise_from(new_exc, caught_exc)\r\n  File \"<string>\", line 3, in raise_from\r\ngoogle.auth.exceptions.TransportError: HTTPConnectionPool(host='metadata.google.internal', port=80): Max retries exceeded with url: /computeMetadata/v1/instance/service-accounts/default/?recursive=true (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa314209080>: Failed to establish a new connection: [Errno 110] Connection timed out',))\r\n\r\nThe above exception was the direct cause of the following exception:\r\n\r\nTraceback (most recent call last):\r\n  File \"/opt/conda/lib/python3.6/site-packages/gcsfs/core.py\", line 431, in _call\r\n    r = meth(self.base + path, params=kwargs, json=json)\r\n  File \"/opt/conda/lib/python3.6/site-packages/requests/sessions.py\", line 521, in get\r\n    return self.request('GET', url, **kwargs)\r\n  File \"/opt/conda/lib/python3.6/site-packages/google/auth/transport/requests.py\", line 198, in request\r\n    self._auth_request, method, url, request_headers)\r\n  File \"/opt/conda/lib/python3.6/site-packages/google/auth/credentials.py\", line 121, in before_request\r\n    self.refresh(request)\r\n  File \"/opt/conda/lib/python3.6/site-packages/google/auth/compute_engine/credentials.py\", line 96, in refresh\r\n    six.raise_from(new_exc, caught_exc)\r\n  File \"<string>\", line 3, in raise_from\r\ngoogle.auth.exceptions.RefreshError: HTTPConnectionPool(host='metadata.google.internal', port=80): Max retries exceeded with url: /computeMetadata/v1/instance/service-accounts/default/?recursive=true (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa314209080>: Failed to establish a new connection: [Errno 110] Connection timed out',))\r\n_call exception: HTTPConnectionPool(host='metadata.google.internal', port=80): Max retries exceeded with url: /computeMetadata/v1/instance/service-accounts/default/?recursive=true (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa30fedd470>: Failed to establish a new connection: [Errno 110] Connection timed out',))\r\nTraceback (most recent call last):\r\n  File \"/opt/conda/lib/python3.6/site-packages/urllib3/connection.py\", line 141, in _new_conn\r\n    (self.host, self.port), self.timeout, **extra_kw)\r\n  File \"/opt/conda/lib/python3.6/site-packages/urllib3/util/connection.py\", line 83, in create_connection\r\n    raise err\r\n  File \"/opt/conda/lib/python3.6/site-packages/urllib3/util/connection.py\", line 73, in create_connection\r\n    sock.connect(sa)\r\nTimeoutError: [Errno 110] Connection timed out\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/opt/conda/lib/python3.6/site-packages/urllib3/connectionpool.py\", line 601, in urlopen\r\n    chunked=chunked)\r\n  File \"/opt/conda/lib/python3.6/site-packages/urllib3/connectionpool.py\", line 357, in _make_request\r\n    conn.request(method, url, **httplib_request_kw)\r\n  File \"/opt/conda/lib/python3.6/http/client.py\", line 1239, in request\r\n    self._send_request(method, url, body, headers, encode_chunked)\r\n  File \"/opt/conda/lib/python3.6/http/client.py\", line 1285, in _send_request\r\n    self.endheaders(body, encode_chunked=encode_chunked)\r\n  File \"/opt/conda/lib/python3.6/http/client.py\", line 1234, in endheaders\r\n    self._send_output(message_body, encode_chunked=encode_chunked)\r\n  File \"/opt/conda/lib/python3.6/http/client.py\", line 1026, in _send_output\r\n    self.send(msg)\r\n  File \"/opt/conda/lib/python3.6/http/client.py\", line 964, in send\r\n    self.connect()\r\n  File \"/opt/conda/lib/python3.6/site-packages/urllib3/connection.py\", line 166, in connect\r\n    conn = self._new_conn()\r\n  File \"/opt/conda/lib/python3.6/site-packages/urllib3/connection.py\", line 150, in _new_conn\r\n    self, \"Failed to establish a new connection: %s\" % e)\r\nurllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa30fedd470>: Failed to establish a new connection: [Errno 110] Connection timed out\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/opt/conda/lib/python3.6/site-packages/requests/adapters.py\", line 440, in send\r\n    timeout=timeout\r\n  File \"/opt/conda/lib/python3.6/site-packages/urllib3/connectionpool.py\", line 639, in urlopen\r\n    _stacktrace=sys.exc_info()[2])\r\n  File \"/opt/conda/lib/python3.6/site-packages/urllib3/util/retry.py\", line 388, in increment\r\n    raise MaxRetryError(_pool, url, error or ResponseError(cause))\r\nurllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='metadata.google.internal', port=80): Max retries exceeded with url: /computeMetadata/v1/instance/service-accounts/default/?recursive=true (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa30fedd470>: Failed to establish a new connection: [Errno 110] Connection timed out',))\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/opt/conda/lib/python3.6/site-packages/google/auth/transport/requests.py\", line 120, in __call__\r\n    **kwargs)\r\n  File \"/opt/conda/lib/python3.6/site-packages/requests/sessions.py\", line 508, in request\r\n    resp = self.send(prep, **send_kwargs)\r\n  File \"/opt/conda/lib/python3.6/site-packages/requests/sessions.py\", line 618, in send\r\n    r = adapter.send(request, **kwargs)\r\n  File \"/opt/conda/lib/python3.6/site-packages/requests/adapters.py\", line 508, in send\r\n    raise ConnectionError(e, request=request)\r\nrequests.exceptions.ConnectionError: HTTPConnectionPool(host='metadata.google.internal', port=80): Max retries exceeded with url: /computeMetadata/v1/instance/service-accounts/default/?recursive=true (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa30fedd470>: Failed to establish a new connection: [Errno 110] Connection timed out',))\r\n\r\nThe above exception was the direct cause of the following exception:\r\n\r\nTraceback (most recent call last):\r\n  File \"/opt/conda/lib/python3.6/site-packages/google/auth/compute_engine/credentials.py\", line 90, in refresh\r\n    self._retrieve_info(request)\r\n  File \"/opt/conda/lib/python3.6/site-packages/google/auth/compute_engine/credentials.py\", line 72, in _retrieve_info\r\n    service_account=self._service_account_email)\r\n  File \"/opt/conda/lib/python3.6/site-packages/google/auth/compute_engine/_metadata.py\", line 179, in get_service_account_info\r\n    recursive=True)\r\n  File \"/opt/conda/lib/python3.6/site-packages/google/auth/compute_engine/_metadata.py\", line 115, in get\r\n    response = request(url=url, method='GET', headers=_METADATA_HEADERS)\r\n  File \"/opt/conda/lib/python3.6/site-packages/google/auth/transport/requests.py\", line 124, in __call__\r\n    six.raise_from(new_exc, caught_exc)\r\n  File \"<string>\", line 3, in raise_from\r\ngoogle.auth.exceptions.TransportError: HTTPConnectionPool(host='metadata.google.internal', port=80): Max retries exceeded with url: /computeMetadata/v1/instance/service-accounts/default/?recursive=true (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa30fedd470>: Failed to establish a new connection: [Errno 110] Connection timed out',))\r\n\r\nThe above exception was the direct cause of the following exception:\r\n\r\nTraceback (most recent call last):\r\n  File \"/opt/conda/lib/python3.6/site-packages/gcsfs/core.py\", line 431, in _call\r\n    r = meth(self.base + path, params=kwargs, json=json)\r\n  File \"/opt/conda/lib/python3.6/site-packages/requests/sessions.py\", line 521, in get\r\n    return self.request('GET', url, **kwargs)\r\n  File \"/opt/conda/lib/python3.6/site-packages/google/auth/transport/requests.py\", line 198, in request\r\n    self._auth_request, method, url, request_headers)\r\n  File \"/opt/conda/lib/python3.6/site-packages/google/auth/credentials.py\", line 121, in before_request\r\n    self.refresh(request)\r\n  File \"/opt/conda/lib/python3.6/site-packages/google/auth/compute_engine/credentials.py\", line 96, in refresh\r\n    six.raise_from(new_exc, caught_exc)\r\n  File \"<string>\", line 3, in raise_from\r\ngoogle.auth.exceptions.RefreshError: HTTPConnectionPool(host='metadata.google.internal', port=80): Max retries exceeded with url: /computeMetadata/v1/instance/service-accounts/default/?recursive=true (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa30fedd470>: Failed to establish a new connection: [Errno 110] Connection timed out',))\r\n_call exception: HTTPConnectionPool(host='metadata.google.internal', port=80): Max retries exceeded with url: /computeMetadata/v1/instance/service-accounts/default/?recursive=true (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa30fb88e48>: Failed to establish a new connection: [Errno 110] Connection timed out',))\r\nTraceback (most recent call last):\r\n  File \"/opt/conda/lib/python3.6/site-packages/urllib3/connection.py\", line 141, in _new_conn\r\n    (self.host, self.port), self.timeout, **extra_kw)\r\n  File \"/opt/conda/lib/python3.6/site-packages/urllib3/util/connection.py\", line 83, in create_connection\r\n    raise err\r\n  File \"/opt/conda/lib/python3.6/site-packages/urllib3/util/connection.py\", line 73, in create_connection\r\n    sock.connect(sa)\r\nTimeoutError: [Errno 110] Connection timed out\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/opt/conda/lib/python3.6/site-packages/urllib3/connectionpool.py\", line 601, in urlopen\r\n    chunked=chunked)\r\n  File \"/opt/conda/lib/python3.6/site-packages/urllib3/connectionpool.py\", line 357, in _make_request\r\n    conn.request(method, url, **httplib_request_kw)\r\n  File \"/opt/conda/lib/python3.6/http/client.py\", line 1239, in request\r\n    self._send_request(method, url, body, headers, encode_chunked)\r\n  File \"/opt/conda/lib/python3.6/http/client.py\", line 1285, in _send_request\r\n    self.endheaders(body, encode_chunked=encode_chunked)\r\n  File \"/opt/conda/lib/python3.6/http/client.py\", line 1234, in endheaders\r\n    self._send_output(message_body, encode_chunked=encode_chunked)\r\n  File \"/opt/conda/lib/python3.6/http/client.py\", line 1026, in _send_output\r\n    self.send(msg)\r\n  File \"/opt/conda/lib/python3.6/http/client.py\", line 964, in send\r\n    self.connect()\r\n  File \"/opt/conda/lib/python3.6/site-packages/urllib3/connection.py\", line 166, in connect\r\n    conn = self._new_conn()\r\n  File \"/opt/conda/lib/python3.6/site-packages/urllib3/connection.py\", line 150, in _new_conn\r\n    self, \"Failed to establish a new connection: %s\" % e)\r\nurllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa30fb88e48>: Failed to establish a new connection: [Errno 110] Connection timed out\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/opt/conda/lib/python3.6/site-packages/requests/adapters.py\", line 440, in send\r\n    timeout=timeout\r\n  File \"/opt/conda/lib/python3.6/site-packages/urllib3/connectionpool.py\", line 639, in urlopen\r\n    _stacktrace=sys.exc_info()[2])\r\n  File \"/opt/conda/lib/python3.6/site-packages/urllib3/util/retry.py\", line 388, in increment\r\n    raise MaxRetryError(_pool, url, error or ResponseError(cause))\r\nurllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='metadata.google.internal', port=80): Max retries exceeded with url: /computeMetadata/v1/instance/service-accounts/default/?recursive=true (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa30fb88e48>: Failed to establish a new connection: [Errno 110] Connection timed out',))\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"/opt/conda/lib/python3.6/site-packages/google/auth/transport/requests.py\", line 120, in __call__\r\n    **kwargs)\r\n  File \"/opt/conda/lib/python3.6/site-packages/requests/sessions.py\", line 508, in request\r\n    resp = self.send(prep, **send_kwargs)\r\n  File \"/opt/conda/lib/python3.6/site-packages/requests/sessions.py\", line 618, in send\r\n    r = adapter.send(request, **kwargs)\r\n  File \"/opt/conda/lib/python3.6/site-packages/requests/adapters.py\", line 508, in send\r\n    raise ConnectionError(e, request=request)\r\nrequests.exceptions.ConnectionError: HTTPConnectionPool(host='metadata.google.internal', port=80): Max retries exceeded with url: /computeMetadata/v1/instance/service-accounts/default/?recursive=true (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa30fb88e48>: Failed to establish a new connection: [Errno 110] Connection timed out',))\r\n\r\nThe above exception was the direct cause of the following exception:\r\n\r\nTraceback (most recent call last):\r\n  File \"/opt/conda/lib/python3.6/site-packages/google/auth/compute_engine/credentials.py\", line 90, in refresh\r\n    self._retrieve_info(request)\r\n  File \"/opt/conda/lib/python3.6/site-packages/google/auth/compute_engine/credentials.py\", line 72, in _retrieve_info\r\n    service_account=self._service_account_email)\r\n  File \"/opt/conda/lib/python3.6/site-packages/google/auth/compute_engine/_metadata.py\", line 179, in get_service_account_info\r\n    recursive=True)\r\n  File \"/opt/conda/lib/python3.6/site-packages/google/auth/compute_engine/_metadata.py\", line 115, in get\r\n    response = request(url=url, method='GET', headers=_METADATA_HEADERS)\r\n  File \"/opt/conda/lib/python3.6/site-packages/google/auth/transport/requests.py\", line 124, in __call__\r\n    six.raise_from(new_exc, caught_exc)\r\n  File \"<string>\", line 3, in raise_from\r\ngoogle.auth.exceptions.TransportError: HTTPConnectionPool(host='metadata.google.internal', port=80): Max retries exceeded with url: /computeMetadata/v1/instance/service-accounts/default/?recursive=true (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa30fb88e48>: Failed to establish a new connection: [Errno 110] Connection timed out',))\r\n\r\nThe above exception was the direct cause of the following exception:\r\n\r\nTraceback (most recent call last):\r\n  File \"/opt/conda/lib/python3.6/site-packages/gcsfs/core.py\", line 431, in _call\r\n    r = meth(self.base + path, params=kwargs, json=json)\r\n  File \"/opt/conda/lib/python3.6/site-packages/requests/sessions.py\", line 521, in get\r\n    return self.request('GET', url, **kwargs)\r\n  File \"/opt/conda/lib/python3.6/site-packages/google/auth/transport/requests.py\", line 198, in request\r\n    self._auth_request, method, url, request_headers)\r\n  File \"/opt/conda/lib/python3.6/site-packages/google/auth/credentials.py\", line 121, in before_request\r\n    self.refresh(request)\r\n  File \"/opt/conda/lib/python3.6/site-packages/google/auth/compute_engine/credentials.py\", line 96, in refresh\r\n    six.raise_from(new_exc, caught_exc)\r\n  File \"<string>\", line 3, in raise_from\r\ngoogle.auth.exceptions.RefreshError: HTTPConnectionPool(host='metadata.google.internal', port=80): Max retries exceeded with url: /computeMetadata/v1/instance/service-accounts/default/?recursive=true (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa30fb88e48>: Failed to establish a new connection: [Errno 110] Connection timed out',))\r\n---------------------------------------------------------------------------\r\nTimeoutError                              Traceback (most recent call last)\r\n/opt/conda/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)\r\n    140             conn = connection.create_connection(\r\n--> 141                 (self.host, self.port), self.timeout, **extra_kw)\r\n    142 \r\n\r\n/opt/conda/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)\r\n     82     if err is not None:\r\n---> 83         raise err\r\n     84 \r\n\r\n/opt/conda/lib/python3.6/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)\r\n     72                 sock.bind(source_address)\r\n---> 73             sock.connect(sa)\r\n     74             return sock\r\n\r\nTimeoutError: [Errno 110] Connection timed out\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nNewConnectionError                        Traceback (most recent call last)\r\n/opt/conda/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)\r\n    600                                                   body=body, headers=headers,\r\n--> 601                                                   chunked=chunked)\r\n    602 \r\n\r\n/opt/conda/lib/python3.6/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)\r\n    356         else:\r\n--> 357             conn.request(method, url, **httplib_request_kw)\r\n    358 \r\n\r\n/opt/conda/lib/python3.6/http/client.py in request(self, method, url, body, headers, encode_chunked)\r\n   1238         \"\"\"Send a complete request to the server.\"\"\"\r\n-> 1239         self._send_request(method, url, body, headers, encode_chunked)\r\n   1240 \r\n\r\n/opt/conda/lib/python3.6/http/client.py in _send_request(self, method, url, body, headers, encode_chunked)\r\n   1284             body = _encode(body, 'body')\r\n-> 1285         self.endheaders(body, encode_chunked=encode_chunked)\r\n   1286 \r\n\r\n/opt/conda/lib/python3.6/http/client.py in endheaders(self, message_body, encode_chunked)\r\n   1233             raise CannotSendHeader()\r\n-> 1234         self._send_output(message_body, encode_chunked=encode_chunked)\r\n   1235 \r\n\r\n/opt/conda/lib/python3.6/http/client.py in _send_output(self, message_body, encode_chunked)\r\n   1025         del self._buffer[:]\r\n-> 1026         self.send(msg)\r\n   1027 \r\n\r\n/opt/conda/lib/python3.6/http/client.py in send(self, data)\r\n    963             if self.auto_open:\r\n--> 964                 self.connect()\r\n    965             else:\r\n\r\n/opt/conda/lib/python3.6/site-packages/urllib3/connection.py in connect(self)\r\n    165     def connect(self):\r\n--> 166         conn = self._new_conn()\r\n    167         self._prepare_conn(conn)\r\n\r\n/opt/conda/lib/python3.6/site-packages/urllib3/connection.py in _new_conn(self)\r\n    149             raise NewConnectionError(\r\n--> 150                 self, \"Failed to establish a new connection: %s\" % e)\r\n    151 \r\n\r\nNewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa30fb88e48>: Failed to establish a new connection: [Errno 110] Connection timed out\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nMaxRetryError                             Traceback (most recent call last)\r\n/opt/conda/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)\r\n    439                     retries=self.max_retries,\r\n--> 440                     timeout=timeout\r\n    441                 )\r\n\r\n/opt/conda/lib/python3.6/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)\r\n    638             retries = retries.increment(method, url, error=e, _pool=self,\r\n--> 639                                         _stacktrace=sys.exc_info()[2])\r\n    640             retries.sleep()\r\n\r\n/opt/conda/lib/python3.6/site-packages/urllib3/util/retry.py in increment(self, method, url, response, error, _pool, _stacktrace)\r\n    387         if new_retry.is_exhausted():\r\n--> 388             raise MaxRetryError(_pool, url, error or ResponseError(cause))\r\n    389 \r\n\r\nMaxRetryError: HTTPConnectionPool(host='metadata.google.internal', port=80): Max retries exceeded with url: /computeMetadata/v1/instance/service-accounts/default/?recursive=true (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa30fb88e48>: Failed to establish a new connection: [Errno 110] Connection timed out',))\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nConnectionError                           Traceback (most recent call last)\r\n/opt/conda/lib/python3.6/site-packages/google/auth/transport/requests.py in __call__(self, url, method, body, headers, timeout, **kwargs)\r\n    119                 method, url, data=body, headers=headers, timeout=timeout,\r\n--> 120                 **kwargs)\r\n    121             return _Response(response)\r\n\r\n/opt/conda/lib/python3.6/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)\r\n    507         send_kwargs.update(settings)\r\n--> 508         resp = self.send(prep, **send_kwargs)\r\n    509 \r\n\r\n/opt/conda/lib/python3.6/site-packages/requests/sessions.py in send(self, request, **kwargs)\r\n    617         # Send the request\r\n--> 618         r = adapter.send(request, **kwargs)\r\n    619 \r\n\r\n/opt/conda/lib/python3.6/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)\r\n    507 \r\n--> 508             raise ConnectionError(e, request=request)\r\n    509 \r\n\r\nConnectionError: HTTPConnectionPool(host='metadata.google.internal', port=80): Max retries exceeded with url: /computeMetadata/v1/instance/service-accounts/default/?recursive=true (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa30fb88e48>: Failed to establish a new connection: [Errno 110] Connection timed out',))\r\n\r\nThe above exception was the direct cause of the following exception:\r\n\r\nTransportError                            Traceback (most recent call last)\r\n/opt/conda/lib/python3.6/site-packages/google/auth/compute_engine/credentials.py in refresh(self, request)\r\n     89         try:\r\n---> 90             self._retrieve_info(request)\r\n     91             self.token, self.expiry = _metadata.get_service_account_token(\r\n\r\n/opt/conda/lib/python3.6/site-packages/google/auth/compute_engine/credentials.py in _retrieve_info(self, request)\r\n     71             request,\r\n---> 72             service_account=self._service_account_email)\r\n     73 \r\n\r\n/opt/conda/lib/python3.6/site-packages/google/auth/compute_engine/_metadata.py in get_service_account_info(request, service_account)\r\n    178         'instance/service-accounts/{0}/'.format(service_account),\r\n--> 179         recursive=True)\r\n    180 \r\n\r\n/opt/conda/lib/python3.6/site-packages/google/auth/compute_engine/_metadata.py in get(request, path, root, recursive)\r\n    114 \r\n--> 115     response = request(url=url, method='GET', headers=_METADATA_HEADERS)\r\n    116 \r\n\r\n/opt/conda/lib/python3.6/site-packages/google/auth/transport/requests.py in __call__(self, url, method, body, headers, timeout, **kwargs)\r\n    123             new_exc = exceptions.TransportError(caught_exc)\r\n--> 124             six.raise_from(new_exc, caught_exc)\r\n    125 \r\n\r\n/opt/conda/lib/python3.6/site-packages/six.py in raise_from(value, from_value)\r\n\r\nTransportError: HTTPConnectionPool(host='metadata.google.internal', port=80): Max retries exceeded with url: /computeMetadata/v1/instance/service-accounts/default/?recursive=true (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa30fb88e48>: Failed to establish a new connection: [Errno 110] Connection timed out',))\r\n\r\nThe above exception was the direct cause of the following exception:\r\n\r\nRefreshError                              Traceback (most recent call last)\r\n<ipython-input-5-673fb83bea95> in <module>()\r\n      5 # # Load with Cloud object storage\r\n      6 import gcsfs\r\n----> 7 gcsmap = gcsfs.mapping.GCSMap('pangeo-data/newman-met-ensemble')\r\n      8 ds = xr.open_zarr(gcsmap)\r\n      9 \r\n\r\n/opt/conda/lib/python3.6/site-packages/gcsfs/mapping.py in __init__(self, root, gcs, check, create)\r\n     41             if create:\r\n     42                 self.gcs.mkdir(bucket)\r\n---> 43             elif not self.gcs.exists(bucket):\r\n     44                 raise ValueError(\"Bucket %s does not exist.\"\r\n     45                         \" Create bucket with the ``create=True`` keyword\" %\r\n\r\n<decorator-gen-140> in exists(self, path)\r\n\r\n/opt/conda/lib/python3.6/site-packages/gcsfs/core.py in _tracemethod(f, self, *args, **kwargs)\r\n     49         logger.log(logging.DEBUG - 1, tb_io.getvalue())\r\n     50 \r\n---> 51     return f(self, *args, **kwargs)\r\n     52 \r\n     53 \r\n\r\n/opt/conda/lib/python3.6/site-packages/gcsfs/core.py in exists(self, path)\r\n    768                 return bool(self.info(path))\r\n    769             else:\r\n--> 770                 if bucket in self.buckets:\r\n    771                     return True\r\n    772                 else:\r\n\r\n/opt/conda/lib/python3.6/site-packages/gcsfs/core.py in buckets(self)\r\n    449     def buckets(self):\r\n    450         \"\"\"Return list of available project buckets.\"\"\"\r\n--> 451         return [b[\"name\"] for b in self._list_buckets()[\"items\"]]\r\n    452 \r\n    453     @classmethod\r\n\r\n<decorator-gen-131> in _list_buckets(self)\r\n\r\n/opt/conda/lib/python3.6/site-packages/gcsfs/core.py in _tracemethod(f, self, *args, **kwargs)\r\n     49         logger.log(logging.DEBUG - 1, tb_io.getvalue())\r\n     50 \r\n---> 51     return f(self, *args, **kwargs)\r\n     52 \r\n     53 \r\n\r\n/opt/conda/lib/python3.6/site-packages/gcsfs/core.py in _list_buckets(self)\r\n    568         items = []\r\n    569         page = self._call(\r\n--> 570             'get', 'b/', project=self.project\r\n    571         )\r\n    572 \r\n\r\n<decorator-gen-126> in _call(self, method, path, *args, **kwargs)\r\n\r\n/opt/conda/lib/python3.6/site-packages/gcsfs/core.py in _tracemethod(f, self, *args, **kwargs)\r\n     49         logger.log(logging.DEBUG - 1, tb_io.getvalue())\r\n     50 \r\n---> 51     return f(self, *args, **kwargs)\r\n     52 \r\n     53 \r\n\r\n/opt/conda/lib/python3.6/site-packages/gcsfs/core.py in _call(self, method, path, *args, **kwargs)\r\n    435                 logger.exception(\"_call exception: %s\", e)\r\n    436                 if retry == self.retries - 1:\r\n--> 437                     raise e\r\n    438                 if is_retriable(e):\r\n    439                     # retry\r\n\r\n/opt/conda/lib/python3.6/site-packages/gcsfs/core.py in _call(self, method, path, *args, **kwargs)\r\n    429             try:\r\n    430                 time.sleep(2**retry - 1)\r\n--> 431                 r = meth(self.base + path, params=kwargs, json=json)\r\n    432                 validate_response(r, path)\r\n    433                 break\r\n\r\n/opt/conda/lib/python3.6/site-packages/requests/sessions.py in get(self, url, **kwargs)\r\n    519 \r\n    520         kwargs.setdefault('allow_redirects', True)\r\n--> 521         return self.request('GET', url, **kwargs)\r\n    522 \r\n    523     def options(self, url, **kwargs):\r\n\r\n/opt/conda/lib/python3.6/site-packages/google/auth/transport/requests.py in request(self, method, url, data, headers, **kwargs)\r\n    196 \r\n    197         self.credentials.before_request(\r\n--> 198             self._auth_request, method, url, request_headers)\r\n    199 \r\n    200         response = super(AuthorizedSession, self).request(\r\n\r\n/opt/conda/lib/python3.6/site-packages/google/auth/credentials.py in before_request(self, request, method, url, headers)\r\n    119         # the http request.)\r\n    120         if not self.valid:\r\n--> 121             self.refresh(request)\r\n    122         self.apply(headers)\r\n    123 \r\n\r\n/opt/conda/lib/python3.6/site-packages/google/auth/compute_engine/credentials.py in refresh(self, request)\r\n     94         except exceptions.TransportError as caught_exc:\r\n     95             new_exc = exceptions.RefreshError(caught_exc)\r\n---> 96             six.raise_from(new_exc, caught_exc)\r\n     97 \r\n     98     @property\r\n\r\n/opt/conda/lib/python3.6/site-packages/six.py in raise_from(value, from_value)\r\n\r\nRefreshError: HTTPConnectionPool(host='metadata.google.internal', port=80): Max retries exceeded with url: /computeMetadata/v1/instance/service-accounts/default/?recursive=true (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa30fb88e48>: Failed to establish a new connection: [Errno 110] Connection timed out',))\r\n```\r\n\r\n</details>\r\n\r\n(Edit:  Clarify that this was done on `pangeo.pydata.org`)"},"comment":{"url":"https://api.github.com/repos/pangeo-data/pangeo/issues/comments/371625533","html_url":"https://github.com/pangeo-data/pangeo/issues/148#issuecomment-371625533","issue_url":"https://api.github.com/repos/pangeo-data/pangeo/issues/148","id":371625533,"user":{"login":"yuvipanda","id":30430,"avatar_url":"https://avatars2.githubusercontent.com/u/30430?v=4","gravatar_id":"","url":"https://api.github.com/users/yuvipanda","html_url":"https://github.com/yuvipanda","followers_url":"https://api.github.com/users/yuvipanda/followers","following_url":"https://api.github.com/users/yuvipanda/following{/other_user}","gists_url":"https://api.github.com/users/yuvipanda/gists{/gist_id}","starred_url":"https://api.github.com/users/yuvipanda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuvipanda/subscriptions","organizations_url":"https://api.github.com/users/yuvipanda/orgs","repos_url":"https://api.github.com/users/yuvipanda/repos","events_url":"https://api.github.com/users/yuvipanda/events{/privacy}","received_events_url":"https://api.github.com/users/yuvipanda/received_events","type":"User","site_admin":false},"created_at":"2018-03-08T21:10:47Z","updated_at":"2018-03-08T21:10:47Z","author_association":"NONE","body":"Indeed, if you can get away with purely anonymous access I'd recommend doing so :)"}}
{"actor":{"display_login":"yuvipanda"}}