0

我突然无法在我的 Google Cloud Platform 帐户上运行 Tensorboard。

my-username@my-projectp:~$ tensorboard --logdir gs://my_bucket --host localhost --port 8088
TensorBoard 0.4.0rc3 at http://localhost:8088 (Press CTRL+C to quit)
Exception in thread Reloader:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/local/lib/python2.7/dist-packages/tensorboard/backend/application.py", line 350, in _reload_forever
    reload_multiplexer(multiplexer, path_to_run)
  File "/usr/local/lib/python2.7/dist-packages/tensorboard/backend/application.py", line 322, in reload_multiplexer
    multiplexer.AddRunsFromDirectory(path, name)
  File "/usr/local/lib/python2.7/dist-packages/tensorboard/backend/event_processing/plugin_event_multiplexer.py", line 175, in AddRunsFromDirectory
    for subdir in GetLogdirSubdirectories(path):
  File "/usr/local/lib/python2.7/dist-packages/tensorboard/backend/event_processing/plugin_event_multiplexer.py", line 445, in <genexpr>
    subdir
  File "/usr/local/lib/python2.7/dist-packages/tensorboard/backend/event_processing/io_wrapper.py", line 50, in ListRecursively
    for dir_path, _, filenames in tf.gfile.Walk(top):
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/lib/io/file_io.py", line 518, in walk
    for subitem in walk(os.path.join(top, subdir), in_order):
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/lib/io/file_io.py", line 518, in walk
    for subitem in walk(os.path.join(top, subdir), in_order):
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/lib/io/file_io.py", line 518, in walk
    for subitem in walk(os.path.join(top, subdir), in_order):
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/lib/io/file_io.py", line 518, in walk
    for subitem in walk(os.path.join(top, subdir), in_order):
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/lib/io/file_io.py", line 499, in walk
    listing = list_directory(top)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/lib/io/file_io.py", line 478, in list_directory
    compat.as_bytes(dirname), status)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/errors_impl.py", line 473, in __exit__
    c_api.TF_GetCode(self.status.status))
PermissionDeniedError: /etc/docker; Permission denied

如何解决这个问题?

4

1 回答 1

1

找到了答案。看起来像 Cloud Shell 或 Tensorflow 中的错误。问题是我gs://在 Tensorflow 的model-dir值中添加了两次。因此,Tensorflow 尝试读取的一些日志位于类似的路径下

gs://my_bucket/models/model_xyz/gs://my_bucket/models/model_xyz

gs:我的云存储帐户中确实有一个目录。其中还有一个名为/. 删除gs:目录解决了这个问题。

于 2018-01-08T22:39:13.800 回答