디스코스 커뮤니티 여러분,
Google Cloud Platform(GCP) VM(Ubuntu 22.04, 16GB RAM, 8 CPU 코어)에서 내 디스코스 인스턴스를 재빌드하는 데 문제가 있습니다. 재빌드 과정에서 GitHub 연결 오류가 발생하며, 포트 443 접근성 문제도 겪고 있습니다. 여러 가지 방법을 시도해 보았지만 막혀 있어 도움이 필요합니다.
재빌드 중 GitHub 연결 오류
./launcher rebuild app 또는 ./discourse-setup를 실행하면 로그에 다음과 같은 오류와 함께 재빌드가 실패합니다:
fatal: unable to access ’ https://github.com/discourse/discourse.git/ ': Failed to connect to github.com port 443 after 3 ms: Couldn’t connect to server
Pups::ExecError: cd /var/www/discourse && sudo -H -E -u discourse bash -c ‘… git fetch …’ failed with return #<Process::Status: pid 145 exit 128>
그러나 호스트에서 GitHub 연결을 테스트하면 정상적으로 작동합니다:
curl -I https://github.com
HTTP/2 200
하지만 discourse 사용자로 실행하면 실패합니다:
sudo -u discourse -H git ls-remote https://github.com/discourse/discourse.git
fatal: unable to access ’ https://github.com/discourse/discourse.git/ ': Failed to connect to github.com port 443 after 3 ms: Couldn’t connect to server
github.com의 DNS 해석은 정상적으로 작동합니다:
sudo -u discourse -H nslookup github.com 8.8.8.8
Server: 8.8.8.8
Address: 8.8.8.8#53
Name: github.com
Address: 192.30.255.113