فشل الترقية - تعذر إعادة التثبيت

أحاول التعافي من تحديث فشل بسبب مشكلة في القرص أدت إلى انهيار الحاوية. الآن، عند محاولتي تشغيل ./discourse-doctor أو ./launcher rebuild.. أو حتى تثبيت جديد، يفشل الأمر هنا. يبدو أن هناك مشكلة في صورة الحاوية؟

2.0.20260915-0028: Pulling from discourse/base
Digest: sha256:5028d077b061225507e7093fda1ff5bdc64d483b5c0397776f9a52c50008cd9b
Status: Downloaded newer image for discourse/base:2.0.20260915-0028
docker.io/discourse/base:2.0.20260915-0028
Ensuring launcher is up to date
Launcher is up-to-date
2.0.20260915-0028: Pulling from discourse/base
Digest: sha256:5028d077b061225507e7093fda1ff5bdc64d483b5c0397776f9a52c50008cd9b
Status: Image is up to date for discourse/base:2.0.20260915-0028
docker.io/discourse/base:2.0.20260915-0028
/usr/local/lib/ruby/3.4.0/rubygems/basic_specification.rb:42:in 'singleton class': uninitialized constant Gem::Deprecate (NameError)
        from /usr/local/lib/ruby/3.4.0/rubygems/basic_specification.rb:41:in '<class:BasicSpecification>'
        from /usr/local/lib/ruby/3.4.0/rubygems/basic_specification.rb:7:in '<top (required)>'
        from /usr/local/lib/ruby/3.4.0/rubygems/specification.rb:11:in 'Kernel#require_relative'
        from /usr/local/lib/ruby/3.4.0/rubygems/specification.rb:11:in '<top (required)>'
        from /usr/local/lib/ruby/3.4.0/rubygems.rb:1372:in 'Kernel#require_relative'
        from /usr/local/lib/ruby/3.4.0/rubygems.rb:1372:in '<top (required)>'
        from <internal:gem_prelude>:2:in 'Kernel#require'
        from <internal:gem_prelude>:2:in '<internal:gem_prelude>'
cd /pups && git pull && git checkout v1.0.3 && /pups/bin/pups --stdin
git: error while loading shared libraries: /lib/x86_64-linux-gnu/libpcre2-8.so.0: file too short
bootstrap failed with exit code 127
** 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.
078e7b891ce7ebf3454c59f2c0ab346d023d16539b4d8b4b33bf268f5109753b

أوه! هذا منطقي بالنظر إلى مشكلة القرص - كنت أظن أن المشكلة قادمة من الحاوية. سأحاول على نظام جديد. لقد كنت أنظر إلى الأمر لفترة طويلة لدرجة أنني لم أدرك ذلك. كنت أركز على خطأ Ruby في البداية.

سأحاول

cd /var/discourse
./launcher cleanup
docker image rm discourse/base:2.0.20260915-0028
./launcher rebuild app

هذا هو الحل! أقسم أنني جرّبت هذا الأمر عدة مرات بصيغ مختلفة، لكن هذه المرة نجح أخيرًا. شكرًا لكم!

لا توجد مشاكل، سعيد بأن الأمر كان مفيدًا!