amtoaer / bili-sync

由 Rust & Tokio 驱动的哔哩哔哩同步工具
https://bili-sync.allwens.work
MIT License
402 stars 34 forks source link

PermissionError: [Errno 13] Permission denied: '/app/config/config.json' #34

Closed Sairacle closed 5 months ago

Sairacle commented 5 months ago

Traceback (most recent call last): File "/app/settings.py", line 58, in save with path.open("w") as f: ^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/pathlib.py", line 1044, in open return io.open(self, mode, buffering, encoding, errors, newline) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PermissionError: [Errno 13] Permission denied: '/app/config/config.json'

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/app/entry.py", line 9, in from commands import ( File "/app/commands.py", line 9, in from models import FavoriteItem File "/app/models.py", line 15, in from settings import settings File "/app/settings.py", line 73, in settings = init_settings() ^^^^^^^^^^^^^^^ File "/app/settings.py", line 70, in init_settings return Config.load(DEFAULT_CONFIG_PATH).save() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/settings.py", line 62, in save raise RuntimeError(f"Failed to save config file: {path}") from e RuntimeError: Failed to save config file: /app/config/config.json