config.json配置正确,并且放到了配置文件夹下,权限也给了。但是一直处于重启状态,日志如下
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/app/entry.py", line 7, 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 76, in
settings = init_settings()
^^^^^^^^^^^^^^^
File "/app/settings.py", line 67, in init_settings
Config.load(DEFAULT_CONFIG_PATH)
File "/app/settings.py", line 48, in load
raise RuntimeError(f"Failed to load config file: {path}") from e
RuntimeError: Failed to load config file: /app/config/config.json
config.json配置正确,并且放到了配置文件夹下,权限也给了。但是一直处于重启状态,日志如下 The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/app/entry.py", line 7, 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 76, in
settings = init_settings()
^^^^^^^^^^^^^^^
File "/app/settings.py", line 67, in init_settings
Config.load(DEFAULT_CONFIG_PATH)
File "/app/settings.py", line 48, in load
raise RuntimeError(f"Failed to load config file: {path}") from e
RuntimeError: Failed to load config file: /app/config/config.json