Redis 模板出现 "权限被拒绝"错误

当使用 redis.template.yml 在具有独立容器(web_only、data)的设置中重建时,我看到

...
/.launcher rebuild web_only

I, [2022-04-01T06:14:05.621316 #1]  INFO -- : End of custom commands
I, [2022-04-01T06:14:05.621524 #1]  INFO -- : Terminating async processes
I, [2022-04-01T06:14:05.621574 #1]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 29
29:signal-handler (1648793645) Received SIGTERM scheduling shutdown...
29:M 01 Apr 2022 06:14:05.643 # User requested shutdown...
29:M 01 Apr 2022 06:14:05.643 * Saving the final RDB snapshot before exiting.
29:M 01 Apr 2022 06:14:05.896 # Failed opening the RDB file dump.rdb (in server root dir /) for saving: Permission denied
29:M 01 Apr 2022 06:14:05.896 # Error trying to save the DB, can't exit.
29:M 01 Apr 2022 06:14:05.896 # SIGTERM received but errors trying to shut down the server, check the logs for more information
I, [2022-04-01T06:14:15.622606 #1]  INFO -- : exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid:29 did not terminate cleanly, forcing termination!

redis.template.yml 应包含在 data.yml 中

我刚刚执行了 git pull,然后是 ./launcher rebuild web_only,它成功完成了。
你是否尝试过使用 ./discourse-doctor,尽管它可能帮助不大。

如果你仍然可以使用 ./launcher start web_only 启动你的旧容器,那么也许可以尝试进行完整备份(作为保险),然后尝试 ./launcher stop web_only; ./launcher rebuild data,如果在重建 data 时没有发生错误,那么尝试 ./launcher rebuild web_only 看看这是否能解决问题?
在此期间,我将此主题移至 Support,因为它缺乏一致的重现步骤。

2 个赞

好的,那我弄混了,我以为 redis 模板是 web_only 容器的一部分,但它已经包含在 data 容器的设置中——这更有意义 :wink:

2 个赞