ARM64 重新构建/启动失败

在尝试重建/引导时,我遇到了以下奇怪的错误:

I, [2024-07-01T01:51:27.741415 #1]  INFO -- : cd /var/www/discourse && sudo -H -E -u discourse git reset --hard
Updating files: 100% (34557/34557), done.
I, [2024-07-01T01:51:30.764498 #1]  INFO -- : HEAD is now at cada17298 FIX: Do not capture OAuth user on 2FA page (#27617)

I, [2024-07-01T01:51:30.764638 #1]  INFO -- : cd /var/www/discourse && sudo -H -E -u discourse git clean -f
I, [2024-07-01T01:51:30.915386 #1]  INFO -- :
I, [2024-07-01T01:51:30.915510 #1]  INFO -- : 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
'
fatal: unable to access 'https://github.com/discourse/discourse.git/': Could not resolve host: github.com

有 ARM64 上的其他人遇到过这个问题吗?
我尝试了 x86,工作正常。现在是凌晨 4 点,所以我想找人确认一下。

看起来你的 arm64 机器有连接问题,你能从主机 ping 通 github 吗?

1 个赞

我还没有找到根本原因,但似乎是 Docker 的连接问题。service restart docker 是一个临时解决方案。这很烦人,因为几个小时前重建还能正常工作,而且 git 拉取到 GitHub 也运行正常。

这就是为什么你在凌晨 4 点做事并且筋疲力尽。我本应该多睡两个小时,早上再来处理它!