작동했는데 이제 빌드조차 안 됩니다

지금 새 디렉터리에서 빌드조차 할 수 없습니다.

2023-02-27 01:18:46.421 UTC [42] LOG:  database system is shut down


FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && sudo -H -E -u discourse git fetch --depth 1 origin tests-passed failed with return #<Process::Status: pid 144 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 git remote set-branches --add origin main", "sudo -H -E -u discourse git remote set-branches origin $version", "sudo -H -E -u discourse git fetch --depth 1 origin $version", "sudo -H -E -u discourse 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", "[ ! -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.
895e1774524f6c62c494f06d1e06f4800719d730b941d012964724d496e617d6
==================== END REBUILD LOG ====================
Failed to rebuild app.

그것이 오류가 아닙니다. 붙여넣은 메시지에 따르면 오류는 더 위쪽에 있습니다.

다시 확인해 보겠지만 몇 가지 경고가 표시되었습니다. 제가 파악할 수 있는 것은 git에 문제가 있다는 것이었습니다. 이전 디렉터리를 다른 곳으로 이동시키고 다시 시도했습니다.

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


root@main:/var/discourse# ping github.com
PING github.com (140.82.112.4) 56(84) bytes of data.
64 bytes from lb-140-82-112-4-iad.github.com (140.82.112.4): icmp_seq=1 ttl=50 time=42.7 ms
64 bytes from lb-140-82-112-4-iad.github.com (140.82.112.4): icmp_seq=2 ttl=50 time=42.7 ms
64 bytes from lb-140-82-112-4-iad.github.com (140.82.112.4): icmp_seq=3 ttl=50 time=42.7 ms
^C
--- github.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 42.650/42.671/42.696/0.018 ms

이 요청들이 컨테이너 내부에서 발생하고 있다면 프록시 문제일 수도 있지만, 이전에는 잘 작동했었습니다. 시스템에 너무 많은 변경 사항을 적용해서 지금은 정확히 알기 어렵네요. 프록시는 이전과 동일하게 설정되어 있어야 합니다.

수정: 하지만 프록시를 올바르게 설정하기 전에 이미 빌드와 실행이 정상적으로 이루어졌기 때문에, 원인을 알 수 없습니다.