config.json配置正确,并确放到了config文件夹下了,权限也给了,但是不知道为何群晖docker运行后一直处于重启状态,部分日志如下,最后一句是载入配置文件失败,试了很多次,还是不行。
Traceback (most recent call last):
File "/app/settings.py", line 46, in load
return Config.schema().loads(f.read())
^^^^^^^^
File "", line 322, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc8 in position 819: invalid continuation byte
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
Traceback (most recent call last):
File "/app/settings.py", line 46, in load
return Config.schema().loads(f.read())
^^^^^^^^
File "", line 322, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc8 in position 819: invalid continuation byte
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配置正确,并确放到了config文件夹下了,权限也给了,但是不知道为何群晖docker运行后一直处于重启状态,部分日志如下,最后一句是载入配置文件失败,试了很多次,还是不行。 Traceback (most recent call last): File "/app/settings.py", line 46, in load return Config.schema().loads(f.read()) ^^^^^^^^ File "", line 322, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc8 in position 819: invalid continuation byte
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
Traceback (most recent call last):
File "/app/settings.py", line 46, in load
return Config.schema().loads(f.read())
^^^^^^^^
File "", line 322, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc8 in position 819: invalid continuation byte
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