لقد قمت بتثبيت بعض الإضافات وقمت بتشغيل ./launcher rebuild app
وكان الأمر ناجحًا بشكل طبيعي، ولكن عند دخول المنتدى يظهر
عفوًا
واجه البرنامج الذي يشغل منتدى المناقشة هذا مشكلة غير متوقعة. نعتذر عن الإزعاج.
تم تسجيل معلومات مفصلة حول الخطأ، وتم إنشاء إشعار تلقائي. سنلقي نظرة عليه.
لا يلزم اتخاذ أي إجراء آخر. ومع ذلك، إذا استمرت حالة الخطأ، يمكنك تقديم تفاصيل إضافية، بما في ذلك خطوات إعادة إنتاج الخطأ، عن طريق نشر موضوع مناقشة في فئة ملاحظات الموقع.
سجلات الخطأ تظهر
Digest: sha256:f7467469ab9e39c3548d4478e3f416c05b34a0ee58eb6e40b963e562005669cc
Status: Downloaded newer image for discourse/base:2.0.20230313-1023
docker.io/discourse/base:2.0.20230313-1023
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: unable to apply apparmor profile: apparmor failed to apply profile: write /proc/self/attr/apparmor/exec: no such file or directory: unknown.
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: unable to apply apparmor profile: apparmor failed to apply profile: write /proc/self/attr/apparmor/exec: no such file or directory: unknown.
Checking your domain name . . .
Connection to luxx.com succeeded.
You should probably remove any non-standard plugins and rebuild.
Attempting to restart existing container. . .
x86_64 arch detected.
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: unable to apply apparmor profile: apparmor failed to apply profile: write /proc/self/attr/apparmor/exec: no such file or directory: unknown.
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: unable to apply apparmor profile: apparmor failed to apply profile: write /proc/self/attr/apparmor/exec: no such file or directory: unknown.
Your Docker installation is not working correctly
See: https://meta.discourse.org/t/docker-error-on-bootstrap/13657/18?u=sam
Failed to restart the container.
WARNING:
You have what appear to be non-official plugins.
If you are having trouble, you should disable them and try rebuilding again.
See https://github.com/discourse/discourse/blob/main/lib/plugin/metadata.rb for the official list.
========================================
Discourse version at luxx.com: NOT FOUND
Discourse version at localhost: NOT FOUND
root@debian-4gb-ash-1:/var/discourse# ./launcher rebuild app
x86_64 arch detected.
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: unable to apply apparmor profile: apparmor failed to apply profile: write /proc/self/attr/apparmor/exec: no such file or directory: unknown.
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: unable to apply apparmor profile: apparmor failed to apply profile: write /proc/self/attr/apparmor/exec: no such file or directory: unknown.
Your Docker installation is not working correctly
See: https://meta.discourse.org/t/docker-error-on-bootstrap/13657/18?u=sam
root@debian-4gb-ash-1:/var/discourse#
نعم، ولكن حتى بعد اتباع ما يقوله لم أتمكن من حل الخطأ وقمت بالبحث في جوجل ولكن لم أستطع
هل يعمل إذا قمت بحذف دوكر الخاص بي وتثبيت واحد آخر؟ كيف تفعل ذلك؟
أرني
docker: Error response from daemon: AppArmor enabled on system but the docker-default profile could not be loaded: strconv.Atoi: parsing "found": invalid syntax.
docker: Error response from daemon: AppArmor enabled on system but the docker-default profile could not be loaded: strconv.Atoi: parsing "found": invalid syntax.
Your Docker installation is not working correctly
docker.io/discourse/base:2.0.20230313-1023
docker: استجابة خطأ من الخادم: تم تمكين AppArmor على النظام ولكن لم يتم تحميل ملف تعريف docker-default: strconv.Atoi: تحليل "found": بناء جملة غير صالح.
docker: استجابة خطأ من الخادم: تم تمكين AppArmor على النظام ولكن لم يتم تحميل ملف تعريف docker-default: strconv.Atoi: تحليل "found": بناء جملة غير صالح.
تثبيت Docker الخاص بك لا يعمل بشكل صحيح```
المشكلة ليست مع Docker أو Discourse، بل مع أداة الأمان AppArmor. الملف التعريفي الذي يسمح لـ Docker بالعمل معطل، و AppArmor ممكّن، لذا فهو يمنع Docker من البدء.
تحتاج إما إلى معرفة ما الذي أفسد الملف التعريفي لـ AppArmor وإصلاحه، أو تحتاج إلى تعطيله.
root@debian-4gb-ash-1:~# apparmor_status
apparmor module is loaded.
6 profiles are loaded.
6 profiles are in enforce mode.
/usr/bin/man
lsb_release
man_filter
man_groff
nvidia_modprobe
nvidia_modprobe//kmod
0 profiles are in complain mode.
0 processes have profiles defined.
0 processes are in enforce mode.
0 processes are in complain mode.
0 processes are unconfined but have a profile defined.
مع cd /var/discourse
root@debian-4gb-ash-1:/var/discourse# apparmor_status
apparmor module is loaded.
6 profiles are loaded.
6 profiles are in enforce mode.
/usr/bin/man
lsb_release
man_filter
man_groff
nvidia_modprobe
nvidia_modprobe//kmod
0 profiles are in complain mode.
0 processes have profiles defined.
0 processes are in enforce mode.
0 processes are in complain mode.
0 processes are unconfined but have a profile defined.
إذا كانت هذه المشكلة لا تزال قائمة، فقد تجد أنه من الأسهل إنشاء قطرة جديدة (droplet) وتثبيت نسخة جديدة بدلاً من تصحيح النسخة الحالية.
بدلاً من ذلك، يمكنك استخدام Marketplace للحصول على مساعدة احترافية إذا كانت لديك ميزانية؟
تحتاج أولاً إلى تنزيل نسخة احتياطية، أو اثنتين، من منصة discourse المستضافة لديك إلى جهاز الكمبيوتر الخاص بك. بعد ذلك، ستقوم بتثبيت منصة discourse جديدة على خادم جديد واستعادة النسخة الاحتياطية.
يجب أن تبدأ بتأمين نسخة محلية من نسخة احتياطية!
إذا كان لديك وصول SSH، فيمكنك استخدام scp أو rsync لنسخ مجلد النسخ الاحتياطي الخاص بك، والذي من المحتمل أن تجده في
/var/discourse/shared/standalone/backups/default
يمكنك سرد هذا الدليل باستخدام، على سبيل المثال، rsync -ratz username@hostname:/var/discourse/shared/standalone/backups/default
ونسخ المحتويات إلى الدليل الحالي باستخدام، على سبيل المثال rsync --progress -ratz username@hostname:/var/discourse/shared/standalone/backups/default/. .
تعديل: (ستقوم بتشغيل تلك الأوامر على جهاز الكمبيوتر الخاص بك، لسحب النسخ الاحتياطية من الكمبيوتر البعيد. أفترض أنك تستخدم نظام لينكس، أو ماك أو إس، أو نظام شبيه بلينكس على ويندوز. بخلاف ذلك، أعتقد أن Putty على ويندوز يسمح بنسخ الملفات، و/أو يأتي مع برنامج scp. أو قد يكون WinSCP هو ما تحتاجه.)