Discourse コミュニティの皆様、
Google Cloud Platform (GCP) の VM (Ubuntu 22.04、RAM 16GB、CPU コア 8) で Discourse インスタンスの再構築に苦労しています。再構築は 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