مرحباً بمجتمع Discourse،
أواجه مشكلة في إعادة بناء نسخة Discourse الخاصة بي على جهاز افتراضي من Google Cloud Platform (GCP) (Ubuntu 22.04، 16 جيجابايت من ذاكرة الوصول العشوائي، 8 أنوية معالج). تفشل عملية إعادة البناء بسبب خطأ في الاتصال بـ 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
حل DNS لـ github.com يعمل:
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