تحديث Discourse: سقوط متعدد

أحاول إجراء الترقية الحالية. لقد فشلت ولا يمكنني الوصول إلى منتديات النقاش الخاصة بي.
هناك أخطاء متعددة. كل المساعدة مقدرة.

# 502 بوابة سيئة
---
nginx

السجل مرفق.

cap.txt (58.3 KB)

I, [2024-12-19T13:12:37.802755 #1]  INFO -- : /usr/local/bin/create_db
createdb: error: could not connect to database template1: connection to server on socket \"/var/run/postgresql/.s.PGSQL.5432\" failed: No such file or directory
	Is the server running locally and accepting connections on that socket?
psql: error: connection to server on socket \"/var/run/postgresql/.s.PGSQL.5432\" failed: No such file or directory
	Is the server running locally and accepting connections on that socket?
psql: error: connection to server on socket \"/var/run/postgresql/.s.PGSQL.5432\" failed: No such file or directory
	Is the server running locally and accepting connections on that socket?
psql: error: connection to server on socket \"/var/run/postgresql/.s.PGSQL.5432\" failed: No such file or directory
	Is the server running locally and accepting connections on that socket?
psql: error: connection to server on socket \"/var/run/postgresql/.s.PGSQL.5432\" failed: No such file or directory
	Is the server running locally and accepting connections on that socket?
psql: error: connection to server on socket \"/var/run/postgresql/.s.PGSQL.5432\" failed: No such file or directory
	Is the server running locally and accepting connections on that socket?
psql: error: connection to server on socket \"/var/run/postgresql/.s.PGSQL.5432\" failed: No such file or directory
	Is the server running locally and accepting connections on that socket?
psql: error: connection to server on socket \"/var/run/postgresql/.s.PGSQL.5432\" failed: No such file or directory
	Is the server running locally and accepting connections on that socket?
psql: error: connection to server on socket \"/var/run/postgresql/.s.PGSQL.5432\" failed: No such file or directory
	Is the server running locally and accepting connections on that socket?
psql: error: connection to server on socket \"/var/run/postgresql/.s.PGSQL.5432\" failed: No such file or directory
	Is the server running locally and accepting connections on that socket?
psql: error: connection to server on socket \"/var/run/postgresql/.s.PGSQL.5432\" failed: No such file or directory
	Is the server running locally and accepting connections on that socket?
psql: error: connection to server on socket \"/var/run/postgresql/.s.PGSQL.5432\" failed: No such file or directory
	Is the server running locally and accepting connections on that socket?
psql: error: connection to server on socket \"/var/run/postgresql/.s.PGSQL.5432\" failed: No such file or directory
	Is the server running locally and accepting connections on that socket?
.
.
.
1353:C 19 Dec 2024 13:13:56.951 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
1353:C 19 Dec 2024 13:13:56.951 # Redis version=7.0.7, bits=64, commit=00000000, modified=0, pid=1353, just started
1353:C 19 Dec 2024 13:13:56.951 # Configuration loaded
1353:M 19 Dec 2024 13:13:56.951 * monotonic clock: POSIX clock_gettime
1353:M 19 Dec 2024 13:13:56.952 # Warning: Could not create server TCP listening socket *:6379: bind: Address already in use
1353:M 19 Dec 2024 13:13:56.952 # Failed listening on port 6379 (TCP), aborting.
.
.
.
Pups::ExecError: cd /var/www/discourse & su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 1356 exit 1>
Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec failed with the params {"cd"=>"$home", "tag"=>"migrate", "hook"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migrate'"]}
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.
d7e3c61c9189308cfa984b4f73baf5bece2cdb0ce5ff4034396a0440ae3d7594

هل هذا تثبيت قياسي؟ هل هو ملف app.yml واحد فقط (وليس حاويات منفصلة للويب فقط وللبيانات)؟
لسبب ما، لا يمكنه الاتصال بقواعد البيانات الخاصة بك.

تثبيت قياسي. تطبيق واحد فقط.yml.

ربما قم بترقية دوكر. ما هو

docker --version

طلبت مني Discourse إجراء ترقية لـ Docker أولاً. لقد فعلت ذلك.
لا يمكنني التحقق من الإصدار الآن لأنني اضطررت إلى التراجع عن الخادم لإعادته إلى الإنتاج، لذلك تم التراجع عن جميع التغييرات.

إذًا ليس لديك طريقة لتصحيح الأخطاء.

ما أوصي به على الأرجح هو تشغيل جهاز افتراضي جديد، وتثبيت Discourse عليه، واستعادة نسخة احتياطية. عندما يعمل، ضع الموقع الحالي في وضع القراءة فقط، وقم بعمل نسخة احتياطية، واستعدها، وقم بتبديل نظام أسماء النطاقات (أو عنوان IP ثابت إذا كان لديك وصول إلى واحد).

يمكنك استخدام نقل موقع Discourse إلى خادم افتراضي خاص آخر باستخدام rsync حتى يكون للموقع الجديد شهادات صالحة ويمكنك إلقاء نظرة عن طريق اختراق نظام أسماء النطاقات المحلي الخاص بك للإشارة إلى عنوان IP الجديد.