新服务器安装失败

我刚刚在新的 VPS 上进行了一次新安装,并遇到了以下错误:

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 139 exit 128>
Location of failure: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"code", "cmd"=>["sudo -H -E -u discourse git reset --hard", "sudo -H -E -u discourse git clean -f", "sudo -H -E -u discourse bash -c '\n  set -o errexit\n  if [ $(git rev-parse --is-shallow-repository) == \"true\" ]; then\n      git remote set-branches --add origin main\n      git remote set-branches origin $version\n      git fetch --depth 1 origin $version\n  else\n      git fetch --tags --prune-tags --prune --force origin\n  fi\n'", "sudo -H -E -u discourse bash -c '\n  set -o errexit\n  if [[ $(git symbolic-ref --short HEAD) == $version ]] ; then\n      git pull\n  else\n      git -c advice.detachedHead=false checkout $version\n  fi\n'", "sudo -H -E -u discourse git config user.discourse-version $version", "mkdir -p tmp", "chown discourse:www-data tmp", "mkdir -p tmp/pids", "mkdir -p tmp/sockets", "touch tmp/.gitkeep", "mkdir -p                    /shared/log/rails", "bash -c \"touch -a           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log\"", "bash -c \"ln    -s           /shared/log/rails/{production,production_errors,unicorn.stdout,unicorn.stderr,sidekiq}.log $home/log\"", "bash -c \"mkdir -p           /shared/{uploads,backups}\"", "bash -c \"ln    -s           /shared/{uploads,backups} $home/public\"", "bash -c \"mkdir -p           /shared/tmp/{backups,restores}\"", "bash -c \"ln    -s           /shared/tmp/{backups,restores} $home/tmp\"", "chown -R discourse:www-data /shared/log/rails /shared/uploads /shared/backups /shared/tmp\"", "[ ! -d public/plugins ] || find public/plugins/ -maxdepth 1 -xtype l -delete"] }
bootstrap failed with exit code 128

我从未见过这样的错误,所以我现在不知道该怎么办。

有人能告诉我这是什么问题,或者是否缺少什么东西吗?(或者 Discourse 正在重建“镜像”?)

此致

我建议您首先重新执行 git pull 和 launcher rebuild。您可能运气不好,正好获取了一个不太好用的版本。

如果这不起作用,请发布完整的日志。(几乎所有有帮助地发布部分日志的人都没有发布足够的内容!)

1 个赞

我从周五下午到周日晚上都这样做了,每次都失败了。

我现在无法发布完整的日志,因为我没有这个服务器了。 :wink:

我们已经看到人们在访问 GitHub 时遇到的奇怪的不可访问性问题——在中国的人,在某些特定云提供商中的人。因此,您的提供商的详细信息和系统的位置可能(或曾经)有助于理解问题。

有时问题出在云提供商身上。

(我说奇怪的不可访问性,因为我认为至少有一次 GitHub 似乎可以从主机访问,但在容器内却不行。)

1 个赞

我来自德国,主机提供商是 Strato(也来自德国,服务器也在德国)。
这只是一个测试,并且在 Strato 上遇到了其他问题,所以我回滚了 VPS。

1 个赞