Closed SwingCosmic closed 1 month ago
Thanks for opening your first issue here! Be sure to follow the issue template!
看起来似乎在使用一个旧的版本 alist启动时会格式化当前配置文件为支持的配置。
请检查版本
看起来似乎在使用一个旧的版本 alist启动时会格式化当前配置文件为支持的配置。
请检查版本
这个是最新版容器第一次起动的时候就自动生成的内容,原来文件夹是空的
分享下我的解决方案, K8S 给alist配置一个sidecar容器 用sh脚本远程拉取配置文件 注入到alist.. 连pv pvc都省掉了。 而且不用担心alist版本问题,毕竟cron job定期强制重新拉取最新alist镜像.. 一劳永逸, 直接修改远程配置文件,下一轮K8S启动alist,sidecar容器 会自动重新拉取最新配置... 或者直接在sidecar 的sh脚本里面做定时校验配置文件是否有更新,有更新触发重新注入配置。
@xhofe 借楼说话,大佬,alist 考虑支持下配置文件远程订阅功能?通过环境变量提供配置订阅url。自动时间周期拉取检查订阅是否有变动?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@xhofe 3.35版本容器重启后配置依然会被重置 https://github.com/alist-org/alist/blob/270587723579f717d6da0c3e5b7131d72f919b1a/internal/bootstrap/config.go#L45 这边的配置被default配置覆盖后写回到了json文件里
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hello @, this issue was closed due to inactive more than 52 days. You can reopen or recreate it if you think it should continue. Thank you for your contributions again.
Please make sure of the following things
[X] I have read the documentation. 我已经阅读了文档。
[X] I'm sure there are no duplicate issues or discussions. 我确定没有重复的issue或讨论。
[X] I'm sure it's due to
AList
and not something else(such as Network ,Dependencies
orOperational
). 我确定是AList
的问题,而不是其他原因(例如网络,依赖
或操作
)。[X] I'm sure this issue is not fixed in the latest version. 我确定这个问题在最新版本中没有被修复。
AList Version / AList 版本
v3.9.2触发,更新到v3.34.0复现(全新重装v3.34.0可以解决)
Driver used / 使用的存储驱动
local
Describe the bug / 问题描述
使用k8s + OpenEBS local卷 + PVC挂载本地硬盘文件夹到容器内的
/opt/alist/data
,可读写。 第一次启动前文件夹是空的当删除Pod或者进行伸缩以重启容器时,config.json的内容被还原到初始状态
Reproduction / 复现链接
/var/openebs/local/pvc-xxxxxxxx/config.json
的文件,修改配置,例如s3配置并启用,保存/opt/alist/data
目录挂载pvc,并将副本调整为1启动Config / 配置
初始配置(v3.9.2)
k8s deployment
Logs / 日志