"بانتظار إعادة تحميل يونيكورن"، ثم يتوقف التحديث

What are the hardware specs? Is it heavily memory constrained, or are the disks slow (not SSD)?

It’s not a problem to update via SSH command line if that works better, but it shouldn’t be required.

I’m not sure what the criteria is for constrained, the site has been relatively speedy (with no cloudflare, CDN or other tricks). It’s a KVM VM with 2GB. Here is an output from free:

              total        used        free      shared  buff/cache   available
Mem:        2047876     1263844      121092      280544      662940      325164
Swap:       2097148      549032     1548116

There is nothing else running on this but Discourse. However, the disks are definitely slow, non-SSD, in RAID-10, and shared with a few other VMs. I ran iotop as the nightly backup was going and didn’t see anything above 50MBps.

The exported non-compressed backup .sql is ~600MB, average daily engaged this past month <50, and daily pageviews are <6000 per day.

I do see one major difference in the output between what you posted originally and what @danekhollas and I are getting. In our output, it takes Unicorn significantly longer to reload (based on the number of dots), however it’s always been that way since that was added to the upgrade process.

The swap usage is fairly high there. This implies you have a busy instance. Also, slow disks are going to be quite painful in several dimensions.

In my case I have SSD and plenty RAM, but CPU is slow (1.7 GHz) and I usually have only around 7Gb free space on HDD. I noticed that Discourse seems to want at least 5Gb free during upgrade, could this be the issue?

Note that this problem started happening at a specific point in time (probably around this topic got started but I am not sure) and since then I was not able to upgrade via UI at all, which lead me to believe that something must have changed…

I gave @tgxworld access to my instance in case it is helpful.

Note tgx is out for a bit, he may have a chance to have a quick look next week.

This also just happened to me, however it looks like the Docker Manager upgrade actually worked:

Just to update since my last post ~4 months ago. I took the advice given and moved over to a whole new machine, with a significant RAM+CPU increase and switch to full SSD. This problem has not occurred again.

أواجه أيضًا هذه المشكلة في آخر عدة مرات حاولت فيها الترقية عبر واجهة المستخدم الويب.

مثالتي مستضافة على آلة افتراضية يمكن تهيئتها بمواصفات أعلى إذا طلبت ذلك، لكنني غير متأكد من المواصفات الموصى بها لتشغيل مثالة نموذجية من Discourse.

هل يمكن لأحد توفير هذه المواصفات؟

يفترض السؤال أعلاه أن فشل الترقية يحدث فقط بسبب نقص الموارد على المضيف.

أحتاج إلى مساعدة، فقد حصلت على خطأ أثناء ترقية docker_manager
عذراً، حدث خطأ أثناء ترقية Discourse. يرجى التحقق من السجلات أدناه.
هو نفس الخطأ
تشغيل وحدة عمل Unicorn واحدة أو أكثر كانت متوقفة في البداية
إنه الإصدار البعيد: 2c89085
لدي خيار إعادة تعيين الترقية، هل يجب أن أفعل ذلك؟ أرجو مساعدتي. شكرًا مقدّمًا!

هذا مجرد تقرير بأنني واجهت هذه المشكلة لأول مرة مع الترقية v2.4.0.beta10 +1 (“docker_manager 2c89085 محدث”) عبر واجهة المستخدم على الويب. إذا كان أي شخص يحتاج إلى سجل الأخطاء الخاص بي، فراجع المرفق. Discourse2.4beta10error.txt (10.2 كيلوبايت)

عمل الأمر ./launcher rebuild app بنجاح.

حدث ذلك على نظام الاختبار الخاص بي، المستضاف ذاتيًا في المنزل. معالج Intel Atom D525 بسرعة 1.8 جيجاهرتز، 2 نواة / 4 خيوط، مع 4 جيجابايت من الذاكرة وقرص SSD، يعمل بنظام Lubuntu 16.04 LTS. فقط Docker/Discourse، بدون مهام أخرى.

ظهرت هذه المشكلة للتو عندما حاولت تحديث الإصدار 2.7.4

حاولت إعادة البناء عبر سطر الأوامر، لكنني حصلت على خطأ (بعد تشغيل discourse-doctor) على النحو التالي:

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake themes:update assets:precompile' failed with return #<Process::Status: pid 4115 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"assets_precompile", "cmd"=>["su discourse -c 'bundle exec rake themes:update assets:precompile'"]}
5b36313b3f2b9e2173d52f8a7519d6aba3c4a975182d80150776d9c83659c351
** 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.
==================== END REBUILD LOG ====================
Failed to rebuild app.

الغريب الآن أن الإصدار الجديد 2.7.4 يظهر، وعندما حاولت تحديث مكون من مكونات السمة (theme component) حصلت على الرسالة: “about.json contains invalid values: Maximum discourse version is invalid”.

هل لدى أحدكم توصية حول كيفية إعادة discourse إلى حالة صالحة مرة أخرى؟