عملت والآن لا أستطيع حتى إعادة البناء

في الوقت الحالي، لا يمكنني حتى البناء في دليل جديد.

2023-02-27 01:18:46.421 UTC [42] LOG: تم إيقاف تشغيل نظام قاعدة البيانات

فشل
--------------------
Pups::ExecError: cd /var/www/discourse & sudo -H -E -u discourse git fetch --depth 1 origin tests-passed فشل مع العودة #<Process::Status: pid 144 exit 128>
موقع الفشل: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn'
فشل التنفيذ مع المعلمات {"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"]}
فشل الإقلاع مع رمز الخروج 128
** فشل الإقلاع ** يرجى التمرير لأعلى والبحث عن رسائل خطأ سابقة، قد يكون هناك أكثر من واحدة.
قد يساعد ./discourse-doctor في تشخيص المشكلة.
895e1774524f6c62c494f06d1e06f4800719d730b941d012964724d496e617d6
==================== نهاية سجل إعادة البناء ====================
فشل إعادة بناء التطبيق.

هذا ليس الخطأ. كما تقول الرسالة التي لصقتها، الخطأ موجود في مكان ما في الأعلى.

إعجاب واحد (1)

سألقي نظرة أخرى ولكنني رأيت بعض التحذيرات. كل ما تمكنت من استخلاصه هو أن 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```

إذا كانت هذه الطلبات تُجرى من داخل الحاوية، أفترض أنها قد تكون مشكلة وكيل (proxy)، لكنها كانت تعمل من قبل. ربما تم إجراء تغييرات كثيرة جدًا على النظام بحيث لا يمكن معرفتها الآن. يجب أن يكون الوكيل (proxy) هو نفسه كما كان.

تحرير: لكنها بُنيت وعملت قبل أن أقوم بتكوين الوكيل (proxy) بشكل صحيح، لذا لا أعرف.