diff --git a/python/ray/tempfile_services.py b/python/ray/tempfile_services.py index d4e94aec8..791b8a257 100644 --- a/python/ray/tempfile_services.py +++ b/python/ray/tempfile_services.py @@ -64,7 +64,10 @@ def try_to_create_directory(directory_path): "exists.".format(directory_path)) # Change the log directory permissions so others can use it. This is # important when multiple people are using the same machine. + try: os.chmod(directory_path, 0o0777) + except PermissionError: + pass def get_temp_root():