tensorflow / tensorflow/tensorboard

macOS Mojave protected directory traversal fails with PermissionDeniedError

Open
#1,680 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

core:backend type:bug
Dominant language
TypeScript
Stars
7.2k
Forks
1.7k
Avg merge
4d 22h
Merged PRs (30d)
1

Description

Hello!

I am trying to launch tensorboard without success. I am running a MBP with Mojave and anaconda latest version. Tried already to wipe out TensorFlow installation and running it in a clean new environment. Installed using conda install tensorflow.

I am getting this error, can you guys help me out to fix it.

TensorBoard 1.12.0 at http://duda-mbp.hbs.edu:6006 (Press CTRL+C to quit)
Exception in thread Reloader:
Traceback (most recent call last):
  File "/Users/storopoli/anaconda3/envs/tensorflow/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/Users/storopoli/anaconda3/envs/tensorflow/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/storopoli/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorboard/backend/application.py", line 386, in _reload
    multiplexer.AddRunsFromDirectory(path, name)
  File "/Users/storopoli/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorboard/backend/event_processing/plugin_event_multiplexer.py", line 181, in AddRunsFromDirectory
    for subdir in io_wrapper.GetLogdirSubdirectories(path):
  File "/Users/storopoli/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorboard/backend/event_processing/io_wrapper.py", line 194, in <genexpr>
    subdir
  File "/Users/storopoli/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorboard/backend/event_processing/io_wrapper.py", line 151, in ListRecursivelyViaWalking
    for dir_path, _, filenames in tf.gfile.Walk(top):
  File "/Users/storopoli/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/lib/io/file_io.py", line 535, in walk
    for subitem in walk(os.path.join(top, subdir), in_order):
  File "/Users/storopoli/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/lib/io/file_io.py", line 535, in walk
    for subitem in walk(os.path.join(top, subdir), in_order):
  File "/Users/storopoli/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/lib/io/file_io.py", line 535, in walk
    for subitem in walk(os.path.join(top, subdir), in_order):
  File "/Users/storopoli/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/lib/io/file_io.py", line 516, in walk
    listing = list_directory(top)
  File "/Users/storopoli/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/lib/io/file_io.py", line 494, in list_directory
    compat.as_bytes(dirname), status)
  File "/Users/storopoli/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/framework/errors_impl.py", line 528, in __exit__
    c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.PermissionDeniedError: /Users/storopoli/Library/Application Support/CallHistoryTransactions; Operation not permitted

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the reported call path through tensorboard/backend/event_processing/io_wrapper.py and tensorflow/python/lib/io/file_io.py, especially ListRecursivelyViaWalking and walk. Reproduce the Mojave failure against the protected CallHistoryTransactions directory, then establish the expected handling for PermissionDeniedError and add a regression test if the project’s existing tests cover this traversal.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, python
Domain
data-visualization, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.