فشل الاستعادة يجب تقديم الوسائط كـ سلاسل نصية منفصلة

لقد حاولت نقل نظام Discourse الخاص بي من DigitalOcean إلى OVH. لقد اتبعت جميع الإرشادات الرسمية.

الفرق الوحيد هو أنني استخدمت طريقة rsync لنقل النسخة الاحتياطية لأنني كنت أفشل دائمًا في رفع النسخة الاحتياطية يدويًا.

rsync -avz /var/discourse/shared/standalone/backups/default/* root@new-server:/var/discourse/shared/standalone/backups/default/

إليك السجل الخاص بي في الجزء الأخير:

[2021-04-16 00:36:49] ALTER TABLE
[2021-04-16 00:36:49] Migrating the database...
[2021-04-16 00:36:49] EXCEPTION: Arguments should be provided as separate strings
[2021-04-16 00:36:49] lib/discourse.rb:105:in `execute_command'
lib/discourse.rb:93:in `exec'
lib/discourse.rb:43:in `execute_command'
/var/www/discourse/lib/backup_restore/database_restorer.rb:133:in `migrate_database'
/var/www/discourse/lib/backup_restore/database_restorer.rb:27:in `restore'
/var/www/discourse/lib/backup_restore/restorer.rb:51:in `run'
/var/www/discourse/script/spawn_backup_restore.rb:23:in `restore'
/var/www/discourse/script/spawn_backup_restore.rb:36:in `block in <main>'
/var/www/discourse/script/spawn_backup_restore.rb:4:in `fork'
/var/www/discourse/script/spawn_backup_restore.rb:4:in `<main>'
[2021-04-16 00:36:49] Trying to rollback...
[2021-04-16 00:36:49] Rolling back...
[2021-04-16 00:36:49] Cleaning stuff up...
[2021-04-16 00:36:49] Dropping functions from the discourse_functions schema...
[2021-04-16 00:36:49] Removing tmp '/var/www/discourse/tmp/restores/default/2021-04-16-001234' directory...
[2021-04-16 00:36:49] Unpausing sidekiq...
[2021-04-16 00:36:49] Marking restore as finished...
[2021-04-16 00:36:50] Notifying 'admin' of the end of the restore...

لقد قمت بترقية نظام Discourse الخاص بي إلى أحدث إصدار.
أعتقد أن الخطأ هو “Arguments should be provided as separate strings”.

شكرًا لك

هناك تقرير عن خلل يتعلق بمشكلة مشابهة من بضع ساعات: https://meta.discourse.org/t/importing-a-backup-into-a-fresh-2-7-0-beta7-fails-with-arguments-should-be-provided-as-separate-strings/187081. تم إصلاح هذه المشكلة الآن. يُستحسن تحديث موقعك إلى أحدث كود لـ Discourse ثم إعادة تشغيل عملية الاستعادة.

هل حل هذا مشكلتك؟

شكرًا لك على انتباهك يا سيد جيف.

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

أحتاج إلى العودة إلى العمل مرة أخرى.

سأحاول نقل منصة discourse مرة أخرى الأسبوع القادم وسأقوم بالتأكيد بالإبلاغ عنها هنا مرة أخرى.

شكرًا لك…

تم الحل :white_check_mark:

شكرًا لـ Discourse على الدعم الرائع وآلة المنتدى القوية. :heart:

I Love You Reaction GIF