zenfeed icon indicating copy to clipboard operation
zenfeed copied to clipboard

【MACOS】【Docker部署】timezone报错

Open RdSean opened this issue 1 year ago • 3 comments

hello。现在我在mac平台上,利用Docker-compose进行部署,zenfeed服务启动时,反复报以下错误,经检查,服务配置都是对的,而且版本也兼容content的字段。

后来我换过将zenfeed_config_base的部分切成file模式,把配置分拆到另外一个config.yaml文件中。依旧反复报下面的错误

甚至我把 “timezone: ${TZ:-Asia/Shanghai}”这个地方随便瞎改为“timezone: ${AAAA:-BBBAsia/Shanghai}”,居然异常log还是报下面一模一样的错误。 请问是为什么?我已经每次修改都反复清理过images以及repull了。。。。

2025-05-16 14:52:52 time=2025-05-16T14:52:52.150+08:00 level=ERROR msg="apply initial global settings: set timezone to ${TZ:-Asia/Shanghai}: load location: unknown time zone ${TZ:-Asia/Shanghai}" !BADKEY="main.main:104 <- runtime.main:272" "setup application"=stack

RdSean avatar May 16 '25 06:05 RdSean

Hi,首先不建议你单独再使用file挂载

base config只是一个初始配置,抱歉没有描述清楚,或者有些“hack”。意思是第一次安装过后,配置会被拷贝到volume,之后以volume配置为准。所以后续修改compose yml不会再起任何效果。这是为了避免与api 热加载配置造成冲突,即配置全权被api托管,不允许其它修改入口(or你可以类比为helm chart里通过helm get 获取当前对象,如果不存在才使用初始配置)

以上是原因,现在建议通过 docker compose down -v 彻底卸载(-v 包括volume)

然后按同样步骤安装

Ping Pan @.***> 于 2025年5月16日周五 14:58写道:

RdSean created an issue (glidea/zenfeed#14) https://github.com/glidea/zenfeed/issues/14

hello。现在我在mac平台上,利用Docker-compose进行部署,zenfeed服务启动时,反复报以下错误,经检查,服务配置都是对的,而且版本也兼容content的字段。

后来我换过将zenfeed_config_base的部分切成file模式,把配置分拆到另外一个config.yaml文件中。依旧反复报下面的错误

甚至我把 “timezone: ${TZ:-Asia/Shanghai}”这个地方随便瞎改为“timezone: ${AAAA:-BBBAsia/Shanghai}”,居然异常log还是报下面一模一样的错误。 请问是为什么?我已经每次修改都反复清理过images以及repull了。。。。

2025-05-16 14:52:52 time=2025-05-16T14:52:52.150+08:00 level=ERROR msg="apply initial global settings: set timezone to ${TZ:-Asia/Shanghai}: load location: unknown time zone ${TZ:-Asia/Shanghai}" !BADKEY="main.main:104 <- runtime.main:272" "setup application"=stack

— Reply to this email directly, view it on GitHub https://github.com/glidea/zenfeed/issues/14, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMV5OWNZUGA2MHCBXUIADUD26WD73AVCNFSM6AAAAAB5H6UGZOVHI2DSMVQWIX3LMV43ASLTON2WKOZTGA3DQMJSGY3TQNI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

glidea avatar May 16 '25 08:05 glidea

我后来也发现了。自己在volume做了移动就OK了。 多谢~

RdSean avatar May 19 '25 04:05 RdSean

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I discovered it later. It's OK to do the mobile phone in volume. Thank you ~

Issues-translate-bot avatar May 19 '25 04:05 Issues-translate-bot