eto-ai / rikai

Parquet-based ML data format optimized for working with unstructured data
https://rikai.readthedocs.io/en/latest/
Apache License 2.0
137 stars 19 forks source link

Permission denied when log models to mlflow on Mac #499

Open eddyxu opened 2 years ago

eddyxu commented 2 years ago
  File "/Users/lei/miniforge3/envs/rikai/lib/python3.9/site-packages/mlflow/models/model.py", line 188, in log
    mlflow.tracking.fluent.log_artifacts(local_path, artifact_path)
  File "/Users/lei/miniforge3/envs/rikai/lib/python3.9/site-packages/mlflow/tracking/fluent.py", line 584, in log_artifacts
    MlflowClient().log_artifacts(run_id, local_dir, artifact_path)
  File "/Users/lei/miniforge3/envs/rikai/lib/python3.9/site-packages/mlflow/tracking/client.py", line 977, in log_artifacts
    self._tracking_client.log_artifacts(run_id, local_dir, artifact_path)
  File "/Users/lei/miniforge3/envs/rikai/lib/python3.9/site-packages/mlflow/tracking/_tracking_service/client.py", line 334, in log_artifacts
    self._get_artifact_repo(run_id).log_artifacts(local_dir, artifact_path)
  File "/Users/lei/miniforge3/envs/rikai/lib/python3.9/site-packages/mlflow/store/artifact/local_artifact_repo.py", line 57, in log_artifacts
    mkdir(artifact_dir)
  File "/Users/lei/miniforge3/envs/rikai/lib/python3.9/site-packages/mlflow/utils/file_utils.py", line 113, in mkdir
    raise e
  File "/Users/lei/miniforge3/envs/rikai/lib/python3.9/site-packages/mlflow/utils/file_utils.py", line 110, in mkdir
    os.makedirs(target)
  File "/Users/lei/miniforge3/envs/rikai/lib/python3.9/os.py", line 215, in makedirs
    makedirs(head, exist_ok=exist_ok)
  File "/Users/lei/miniforge3/envs/rikai/lib/python3.9/os.py", line 215, in makedirs
    makedirs(head, exist_ok=exist_ok)
  File "/Users/lei/miniforge3/envs/rikai/lib/python3.9/os.py", line 215, in makedirs
    makedirs(head, exist_ok=exist_ok)
  [Previous line repeated 2 more times]
  File "/Users/lei/miniforge3/envs/rikai/lib/python3.9/os.py", line 225, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/var/lib/mlflow'

Environment:

da-liii commented 2 years ago

not a bug, you are setting the mlflow sqlite3 path to /var/lib/mlflow, changing it to /tmp will solve the problem.

eddyxu commented 2 years ago

Is that still the same issue that I used docker-compose -f .github/docker-compose.yml up -d to start mlflow?

These errors happened during unit tests on my mac.