خطأ بعد تثبيت الإضافة، ** فشل في التمهيد **

حاولت تثبيت بعض الإضافات بعد الظهر، ولكن ظهر هذا الخطأ عند إعادة البناء:

2026-01-11 09:16:55.588 UTC [45] LOG:  received fast shutdown request
I, [2026-01-11T09:16:55.588399 #1]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 112
112:signal-handler (1768123015) Received SIGTERM scheduling shutdown…
2026-01-11 09:16:55.590 UTC [45] LOG:  aborting any active transactions
2026-01-11 09:16:55.599 UTC [45] LOG:  background worker “logical replication launcher” (PID 59) exited with exit code 1
2026-01-11 09:16:55.599 UTC [54] LOG:  shutting down
2026-01-11 09:16:55.600 UTC [54] LOG:  checkpoint starting: shutdown immediate
2026-01-11 09:16:55.610 UTC [54] LOG:  checkpoint complete: wrote 4 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.003 s, sync=0.002 s, total=0.011 s; sync files=3, longest=0.001 s, average=0.001 s; distance=4 kB, estimate=4 kB
2026-01-11 09:16:55.616 UTC [45] LOG:  database system is shut down
112:M 11 Jan 2026 09:16:55.624 # User requested shutdown…
112:M 11 Jan 2026 09:16:55.624 * Saving the final RDB snapshot before exiting.
112:M 11 Jan 2026 09:16:55.875 * DB saved on disk
112:M 11 Jan 2026 09:16:55.876 # Redis is now ready to exit, bye bye…
/usr/local/lib/ruby/gems/3.3.0/gems/pups-1.4.0/lib/pups/config.rb:235:in `block (2 levels) in run_commands': Invalid run command cd (SyntaxError)         from /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.4.0/lib/pups/config.rb:223:in `each’
from /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.4.0/lib/pups/config.rb:223:in `block in run_commands'         from /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.4.0/lib/pups/config.rb:222:in `each’
from /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.4.0/lib/pups/config.rb:222:in `run_commands'         from /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.4.0/lib/pups/config.rb:203:in `run’
from /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.4.0/lib/pups/cli.rb:96:in `run'         from /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.4.0/bin/pups:9:in `‘ (required)
from /usr/local/bin/pups:25:in `load'         from /usr/local/bin/pups:25:in `’
bootstrap failed with exit code 1
** 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.
fbf8d4dba918973394423da80fc1708e98313c0e4c5f696998355bae3ea72ae5

كيف يمكنني حل هذه المشكلة؟

هل يمكنك مشاركة السجل الكامل؟

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

تحقق من الصيغة الدقيقة والمسافة البادئة لملف yml الخاص بك - فمن المحتمل أن تكون المشكلة هناك. ملفات yml حساسة للغاية.

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

ربما تكون فكرة جيدة مشاركة ملف الـ yml الخاص بك هنا، ولكن قم بإزالة المعلومات الحساسة. من المحتمل أن يكون القسمان الأخيران كافيين. استخدم أداة النص المنسق مسبقًا حتى يظهر بهذا الشكل:

## يتم وضع الإضافات هنا
## انظر https://meta.discourse.org/t/19157 للحصول على التفاصيل
hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - git clone https://github.com/discourse/docker_manager.git

## أي أوامر مخصصة سيتم تشغيلها بعد البناء
run:
  - exec: echo "بداية الأوامر المخصصة"
  ## إذا كنت تريد تعيين عنوان البريد الإلكتروني "من" لأول تسجيل لك، قم بإلغاء التعليق وتغييره:
  ## بعد الحصول على أول بريد إلكتروني للتسجيل، أعد التعليق على السطر. يحتاج فقط إلى التشغيل مرة واحدة.
  #- exec: rails r "SiteSetting.notification_email='info@unconfigured.discourse.org'"
  - exec: echo "نهاية الأوامر المخصصة"

لقد اكتشفنا الخطأ! شكرًا لك! هناك حرف زائد في السطر الأخير!

4 إعجابات