Docker 기반 Discourse 인스턴스를 업그레이드하려고 시도하다가 막혀 있습니다. 컨테이너를 재빌드하거나, 부트스트랩하거나, 그 밖의 어떤 방식으로든 설정을 시도하면 다음 오류가 발생합니다:
I, [2020-11-18T15:23:37.357104 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake plugin:pull_compatible_all'
I, [2020-11-18T15:23:40.298932 #1] INFO -- : discourse-slack-official is already at latest compatible version
docker_manager is already at latest compatible version
I, [2020-11-18T15:23:40.299193 #1] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
rake aborted!
StandardError: An error has occurred, all later migrations canceled:
PG::SyntaxError: ERROR: syntax error at or near "NOT"
LINE 2: ADD COLUMN IF NOT EXISTS image_upload_id bigint
^
조사해 본 결과, 최신 Discourse에는 postgresql 12가 필요합니다만, 현재 공식 Docker 이미지에는 패키징되어 있지 않습니다.
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
discourse/base 2.0.20201004-2310 b64c37d7ab06 6 weeks ago 2.4GB
local_discourse/data latest 253fd4d68068 3 years ago 1.7GB