قد يكون الأمر مرتبطًا بـ 147425، لكنني بدأت موضوعًا جديدًا لأن حالتي كانت تثبيتًا جديدًا وليس ترحيلًا.
لقد جربت على نسختين نظيفتين مختلفتين من Ubuntu 18.04 (واحدة من Linode والأخرى من Digital Ocean) لإعداد تثبيت ذاتي عبر سكريبت Docker. في كلتا الحالتين، حصلت على نفس الخطأ.
نص الخطأ
== 20180917024729 RemoveSuperfluousColumns: migrating =========================
WARNING
-------------------------------------------------------------------------------------
تمت محاولة حذف أو إعادة تسمية عمود في عملية الترحيل
كان استعلام SQL المستخدم هو: 'ALTER TABLE user_profiles DROP COLUMN IF EXISTS card_image_badge_id'
يرجى إنشاء ترحيل ما بعد النشر باستخدام `rails g post_migration` لحذف أو إعادة تسمية الأعمدة.
ملاحظة: لتقليل الاضطراب، استخدم self.ignored_columns = ["column name"] في نموذج ActiveRecord الخاص بك، ويمكن إزالته بعد حوالي 6 أشهر.
يوجد هذا الإجراء الوقائي لحمايتنا من حذف الأعمدة التي تُستخدم حاليًا من قبل التطبيقات النشطة.
I, [2020-04-09T15:07:30.875957 #1] INFO -- : Terminating async processes
I, [2020-04-09T15:07:30.876041 #1] INFO -- : Sending INT to HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/10/bin/postmaster -D /etc/postgresql/10/main pid: 64
2020-04-09 15:07:30.876 UTC [64] LOG: received fast shutdown request
I, [2020-04-09T15:07:30.876354 #1] INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 181
181:signal-handler (1586444850) Received SIGTERM scheduling shutdown...
181:M 09 Apr 2020 15:07:30.954 # User requested shutdown...
181:M 09 Apr 2020 15:07:30.954 * Saving the final RDB snapshot before exiting.
181:M 09 Apr 2020 15:07:30.959 * DB saved on disk
181:M 09 Apr 2020 15:07:30.960 # Redis is now ready to exit, bye bye...
2020-04-09 15:07:30.880 UTC [64] LOG: aborting any active transactions
2020-04-09 15:07:30.886 UTC [64] LOG: worker process: logical replication launcher (PID 73) exited with exit code 1
2020-04-09 15:07:30.894 UTC [68] LOG: shutting down
2020-04-09 15:07:31.151 UTC [64] LOG: database system is shut down
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 12943 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migrate'"]}
90378b39f271ddf9c4ba2628e28ceffd9ede8f3c6cdb4815b12f8b3ae5a218ac
** 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.