论坛离线,更新出现问题

我的论坛离线了

我尝试更新它

但下面是我收到的错误

102:signal-handler (1678624734) 收到 SIGTERM 调度关闭...
2023-03-12 12:38:54.291 UTC [41] LOG:  中止任何活动事务
2023-03-12 12:38:54.295 UTC [41] LOG:  后台工作进程“逻辑复制启动器”(P
ID 50) 已退出,退出代码为 1
2023-03-12 12:38:54.297 UTC [45] LOG:  正在关闭
102:M 12 Mar 2023 12:38:54.326 # 用户请求关闭...
102:M 12 Mar 2023 12:38:54.326 * 退出前保存最终 RDB 快照。
2023-03-12 12:38:54.326 UTC [41] LOG:  数据库系统已关闭
102:M 12 Mar 2023 12:38:54.385 * DB 已保存到磁盘
102:M 12 Mar 2023 12:38:54.385 # Redis 现在已准备好退出,再见...


失败
--------------------
Pups::ExecError: cd /var/www/discourse & su discourse -c 'bundle install --deployment --retry 3 --jobs 4 --verbose --without test development' 失败,返回 #<Process::Status: pid 405 exit 5>
失败位置:/usr/local/lib/ruby/gems/2.7.0/gems/pups-1.1.1/lib/pups/exec_command.
rb:117:in `spawn'
exec 失败,参数为 {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -c 'bundle install --deployment --retry 3 --jobs 4 --verbose --without test development'"]}
引导失败,退出代码为 5
** 引导失败 ** 请向上滚动并查找更早的错误消息,可能
有不止一个。
./discourse-doctor 可能会帮助诊断问题。
5e9f26636d37c9aa6ec6a4b0a99e14999c51c0d08cd4676924f620185c4a51cb

请包含更多行 - 大约 50 行之前的行就足够了。

2 个赞

已修复,现在正常了

谢谢

你修复了什么?

(+20 个字符)

我猜问题出在

fatal: detected dubious ownership in repository at '/var/www/discourse'
To add an exception for this directory, call:

        git config --global --add safe.directory /var/www/discourse
1 个赞

所以,我尝试了一些随机命令,但似乎下面的命令解决了问题

git config --system --add safe.directory /var/www/discourse
3 个赞

我有一个自定义的 Docker .yml 模板。最终解决我的问题的方法是这样做: