설치 실패

Discourse를 설치하려고 하는데 다음과 같은 오류가 발생합니다.

2023-08-01 12:27:18.881 UTC [42] LOG:  database system is shut down


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 147 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
** 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.
2b0150a1aac20c041b7de6173429a0a0b0133f8a63b5172a0e63f4d2ca5f22b0
==================== END REBUILD LOG ====================
Failed to rebuild app.

로그 전체를 올려주실 수 있을까요?

물론! EUR1Okdcax | SourceBin

오류는 다음과 같습니다

fatal: unable to access 'https://github.com/discourse/discourse.git/': Could not resolve host: github.com

호스트 또는 컨테이너에 인터넷 연결 문제가 있습니다.

그래도 git clone은 잘 됐는데…

git clone 작업은 호스트에서 수행되므로, 이 단계가 성공했다는 것은 호스트에 문제가 없음을 의미합니다. 그러나 이후의 작업은 컨테이너 내에서 이루어집니다. 이 단계에서 실패가 발생하면 컨테이너(docker) 내부, 구체적으로 DNS(이름 해석)에 문제가 있음을 나타냅니다.

과거에도 Docker 내부에서 이러한 연결 문제가 보고된 사례가 있습니다. 예를 들어 여기를 참고할 수 있습니다.

제공업체 및 위치 정보에 대한 세부 사항을 파악하는 것이 도움이 될 수 있습니다. 또한 컨테이너 내에서 다음과 같은 명령을 사용하여 테스트해 보는 것도 유용합니다:

./launcher enter app 
ping -c2 github.com
exit