TensorBoard can not read summaries on Google Cloud Storage

Question:

When I used TensorBoard with TensorFlow v0.9.0, TensorFlow can read summaries on Google Cloud Storage as tensorboard --logdir=gs://....

However, TensorBoard with TensorFlow v0.11.0 can not read it.
Did something change from v0.9.0 to v0.11.0?

The error message is as follow.

W tensorflow/core/platform/cloud/google_auth_provider.cc:151] All attempts to get a Google authentication bearer token failed, returning an empty token. Retrieving token from files failed with "Unavailable: libcurl failed with error code 23: Failed writing body (101 != 188)". Retrieving token from GCE failed with "Unavailable: Unexpected response code 0".

Asked By: Shuhei Fujiwara

||

Answers:

Could you please try running gcloud auth application-default login ? After that TensorBoard should be able to get the required credentials for accessing GCS.

The reason is that TensorBoard now uses the Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials

Answered By: Alexey Surkov

In addition to the accepted answer please make sure to install fsspec and gcsfs packages.

pip install fsspec gcsfs
Answered By: Aman Maghan