새 서버에 설치 실패

새로운 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가 현재 "image"를 재구축하고 있는 건가요?)

감사합니다

가장 먼저 제안하는 것은 git pull과 런처 재빌드를 다시 실행하는 것입니다. 제대로 작동하지 않는 버전을 우연히 받아버렸을 수도 있습니다.

이 방법으로 해결되지 않으면 전체 로그를 올려 주세요. (도움을 주려는 의도로 일부 로그를 올리는 분들이 대부분인데, 대부분 충분한 양을 올리지 않습니다!)

금요일 오후부터 일요일 저녁까지 이 작업을 반복했는데, 매번 동일한 실패가 발생했습니다.

이제 더 이상 해당 서버를 가지고 있지 않아 전체 로그를 게시할 수 없습니다. :wink:

GitHub에 대한 이상한 접속 불가 문제를 겪는 사람들이 있다는 것을 확인했습니다. 중국에 있는 사용자나 특정 클라우드 제공업체를 사용하는 사용자들이 이에 해당합니다. 따라서 문제를 이해하는 데 도움이 될 수 있도록, 사용 중인 클라우드 제공업체와 시스템의 위치 정보가 유용할 수 있습니다.

때로는 문제가 클라우드 제공업체 측에 있을 수도 있습니다.

(이상한 접속 불가라고 표현한 이유는, 적어도 한 번은 GitHub이 호스트에서는 접근 가능해 보였지만 컨테이너 내부에서는 접근할 수 없었던 경우가 있었기 때문입니다.)

저는 독일 출신이고 호스팅 업체는 Strato였습니다(이 회사도 독일 소재이고 서버도 독일 내에 있었습니다).

그냥 테스트용이었을 뿐이고 Strato와 다른 문제들도 있었기 때문에 VPS를 되돌렸습니다.