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과 관련된 최근 커밋을 확인해 보니 이것이 원인과 관련이 있는 것 같습니다.