TensorBoard can not read summaries on Google Cloud Storage

Issue

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".

Solution

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

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published