mirror of
https://github.com/justlovemaki/AIClient-2-API.git
synced 2026-04-25 09:25:59 +03:00
[GH-ISSUE #250] 容器重启后配置文件和提供商池数据丢失,无法正确加载宿主机路径中的配置文件 #176
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/AIClient-2-API-justlovemaki#176
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @chang910520-dev on GitHub (Jan 16, 2026).
Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/250
问题描述:
在使用
AIClient-2-API容器时,我按照文档的指示配置了宿主机的目录并挂载到容器内。然而,容器在启动时仍然无法加载配置文件,提示找不到以下文件:通过查看容器内的
/app/configs目录,我发现该目录下有一些默认生成的文件,如api-potluck-data.json、plugins.json和token-store.json,但缺少了上述必需的配置文件。我已经确认宿主机上
/Volumes/MDISK/AIClient/app/config路径为空,因此容器无法从该目录加载配置文件。我已经尝试通过设置正确的权限(使用chmod -R 777)并重新启动容器,但问题仍未解决。后果:
/Volumes/MDISK/AIClient/app/config上的目录权限虽然已设置为777,确保容器可以读写该目录,但容器内仍然无法正确读取并加载这些配置文件。求助:
/Volumes/MDISK/AIClient/app/config设置为777(读写权限),但容器似乎还是无法正确读取文件。是否还有其他文件或目录权限设置需要注意,或者是由于路径映射问题导致的权限错误?@luluxiuxiu commented on GitHub (Jan 16, 2026):
我也有这个问题
@justlovemaki commented on GitHub (Jan 16, 2026):
提示找不到以下文件:
configs/config.json
configs/provider_pools.json
/app/configs/input_system_prompt.txt
这些都可以忽略,没有都会走默认配置
使用教程请看使用指南