重建在引导过程中失败

我的 Discourse 重建因以下错误失败:

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && sudo -H -E -u discourse bash -c '
  set -o errexit
  if [ $(git rev-parse --is-shallow-repository) == "true" ]; then
      git remote set-branches --add origin main
      git remote set-branches origin tests-passed
      git fetch --depth 1 origin tests-passed
  else
      git fetch --tags --prune-tags --prune --force origin
  fi
' failed with return #<Process::Status: pid 130 exit 128>
Location of failure: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'

日志中还有更多信息吗?

1 个赞

更新本地软件包后,我认为容器主机出现了一些问题。在此次构建失败后,我启动了上一个成功构建的容器,它启动了,但我注意到与外部源通信存在问题。例如,根据 URL 自动解析主题标题以及与 Discord 和 Matrix 的聊天集成失败。重启容器主机解决了这些问题。然后我重试了一个新的容器构建,它通过了之前失败的部分。所以我认为现在没问题了。

我的容器主机会在依赖项更新时自动重启服务,这可能导致主机出现不完全重启或应导致服务重启的依赖项问题。无论如何,重启解决了它。

编辑:这次容器构建成功了。

2 个赞

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.