테스트 통과 브랜치 재빌드 시도 후 502 Bad Gateway 오류 발생

다음 안내문(Change tracking branch for your Discourse instance)에 따라 app.yml을 업데이트하고 컨테이너를 재구축한 후 앱을 다시 빌드하려고 시도했습니다:

git pull
./launcher rebuild app

하지만 다음과 같은 치명적인 오류가 발생했습니다:

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && git fetch --depth 1 origin tests-passed failed with return #<Process::Status: pid 140 exit 128>
Location of failure: /usr/local/lib/ruby/gems/2.7.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"code", "cmd"=>["git reset --hard", "git clean -f", "git remote set-branches --add origin main", "git remote set-branches origin $version", "git fetch --depth 1 origin $version", "git checkout $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", "find public/plugins/ -maxdepth 1 -xtype l -delete"]}
bootstrap failed with exit code 128
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.
14b470c4c6575f2bc366dff1fa8559f98bce37abe5703f63c070b939f67dab65

그리고 웹사이트에는 다음과 같이 표시됩니다:

502 Bad Gateway

이를 어떻게 수정해야 할까요?

전체 로그는 여기에 있습니다:

whole log.txt (18.3 KB)

재구축이 실패(FAILED)한 것 같고, ./discourse-doctor를 사용했을 때 다음과 같이 표시됩니다:

==================== SERIOUS PROBLEM!!!! ====================

app not running!

Attempting to rebuild

외부 트래픽에 프록시를 사용하고 계신가요? 제대로 작동하지 않는 것으로 보입니다.

fatal: unable to access 'https://github.com/discourse/discourse.git/': 
  Received HTTP code 503 from proxy after CONNECT

제 서버는 중국 대륙에 위치해 있습니다. GFW(화장실 장벽)의 영향을 받아 GitHub에서 브랜치를 가져오지 못해서 리빌드 작업이 실패한 건 아닌지 의심됩니다.

네, 제 서버는 중국 대륙에 있고 업데이트가 항상 매우 어렵습니다. 기본 동작으로는 GitHub에서 git을 가져올 수 없어요.

그것이 바로 문제입니다.

여기에 많은 정보가 있습니다: Upgrade from within China fails due to git issues

서버에 프록시를 설치하는 방법을 모르겠어요。。。