You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying out these examples with the pangeo binder.
In pangeo.pydata.org, the following code works:
ds=xr.open_zarr(gcsfs.GCSMap('pangeo-data/SOSE')
But in hub.binder.pangeo.io, it fails with
_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 0x7f8d48ca4ac8>: Failed to establish a new connection: [Errno 110] Connection timed out',))
Traceback (most recent call last):
File "/srv/conda/lib/python3.6/site-packages/urllib3/connection.py", line 141, in _new_conn
(self.host, self.port), self.timeout, **extra_kw)
File "/srv/conda/lib/python3.6/site-packages/urllib3/util/connection.py", line 83, in create_connection
raise err
File "/srv/conda/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out
In more detail, gcsfs is supposed to try the auth mechanisms in the following order (if not supplied), ['google_default', 'cache', 'cloud', 'anon'], meaning that if no credentials are found, you fall back to anon. Why this isn't working, I don't know, it'd be worthwhile finding out what kind of auth it thinks was successfully established.
I have a feeling this is related to the automatic blocking of access to the metadata server which occurs in zero2jupyterhub-k8s. We override this here for pangeo.pydata.org. But probably not for binder.
I am trying out these examples with the pangeo binder.
In pangeo.pydata.org, the following code works:
But in hub.binder.pangeo.io, it fails with
I find I need to do
which is significantly uglier and more complicated.
Can we somehow make anonymous tokens the default for gcsfs?
cc @martindurant, @jhamman
The text was updated successfully, but these errors were encountered: