새 설치 시 마이그레이션 실패

discourse_docker를 사용하여 새로운 Discourse를 설치하려고 하는데 마이그레이션이 실패하고 있습니다:

== 20180916195601 MigrateS3BackupSiteSettings: migrating ======================
-- execute("UPDATE site_settings\nSET name      = 'backup_location',\n    data_type = 7,\n    value     = 's3'\nWHERE name = 'enable_s3_backups' AND value = 't';\n")
   -> 0.0005s
-- execute("DELETE\nFROM site_settings\nWHERE name = 'enable_s3_backups';\n")
   -> 0.0004s
== 20180916195601 MigrateS3BackupSiteSettings: migrated (0.0018s) =============

== 20180917024729 RemoveSuperfluousColumns: migrating =========================

WARNING
-------------------------------------------------------------------------------------
An attempt was made to drop or rename a column in a migration
SQL used was: 'ALTER TABLE user_profiles DROP COLUMN IF EXISTS card_image_badge_id'

Please generate a post deployment migration using `rails g post_migration` to drop
or rename columns.

Note, to minimize disruption use self.ignored_columns = ["column name"] on your
ActiveRecord model, this can be removed 6 months or so later.

This protection is in place to protect us against dropping columns that are currently
in use by live applications.



FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 12775 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'"]}
59a086818934d9ab5ac6095987a41a5d4f317615dab7d86710afc36b0b40cf5e
** 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.

test_passed 대신 버전을 v2.5.0.beta2로 강제 지정하면 정상적으로 작동하며, SafeMigration과 관련된 최근 커밋을 확인해 보니 이것이 원인과 관련이 있는 것 같습니다.

2개의 좋아요

아마도 그렇습니다

2개의 좋아요

@renchap
해결책이 나왔나요?

긴 연휴 후에 @sam이 이 오류를 검토하고 수정할 수 있도록, 마이그레이션에 대한 성능 관련 커밋을 되돌렸습니다:

7개의 좋아요

다음에 따라 수정됨:

3개의 좋아요