Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TensorBoard can not read summaries on Google Cloud Storage

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

like image 834
Shuhei Fujiwara Avatar asked Nov 27 '16 14:11

Shuhei Fujiwara


1 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

like image 138
Alexey Surkov Avatar answered Oct 24 '22 05:10

Alexey Surkov