버전 오류로 비즈니스 7에서 새 설치로 백업 복원 불가

방금 재빌드한 컨테이너가 몇 시간 전에 백업된 데이터를 복원하는 것을 거부하고 있습니다.

Your branch is up to date with 'origin/tests-passed'.

nothing to commit, working tree clean
root@meshack-five:/var/www/discourse# git log
commit c758e2cdd17cc7f8cc44596e72d60e81b5bd8def (grafted, HEAD -> tests-passed, origin/tests-passed)
Author: Joffrey JAFFEUX <j.jaffeux@gmail.com>
Date:   Fri Jan 14 15:51:31 2022 +0100

하지만 복원을 시도하면 다음과 같은 오류가 발생합니다.

Copying archive to tmp directory...
Unzipping archive, this may take a while...
Extracting dump file...
Validating metadata...
  Current version: 20220107014925
  Restored version: 20220112091339
EXCEPTION: You're trying to restore a more recent version of the schema. You should migrate first!

SKIP_POST_DEPLOYMENT_MIGRATIONS=false rake db:migrate를 실행해 보았지만 해결되지 않았습니다.

https://five.imports.literateforums.com/에서는 다음과 같이 표시됩니다.

    <meta name="generator" content="Discourse 2.8.0.beta11 - https://github.com/discourse/discourse version c758e2cdd17cc7f8cc44596e72d60e81b5bd8def">

호스팅 사이트(business7)의 소스 코드는 다음과 같습니다:

   <meta name="generator" content="Discourse 2.8.0.beta11 - https://github.com/discourse/discourse version 6272edd1219652a8e1c9c33e16229b029cec603c">

Commits · discourse/discourse · GitHub 의 커밋을 확인해 보니 제 서버가 더 최신 버전인 것 같습니다.

무언가 멍청한 실수를 하고 있는 것 같은데, 어디에 문제가 있는지 도무지 알 수 없습니다.

아마도 시스템에 설치되어 있지 않은 플러그인에서 발생한 마이그레이션일 가능성이 높습니다. 파일 이름의 버전 번호를 교체하면 해결됩니다.

아하. 플러그인 관련해서 전부 설치해야 하는지 궁금했거든요. 그리고 파일 이름을 바꾸는 건 정말 간단하네요. :man_shrugging:

그렇게 해서 해결이 됐지만, 두 사이트를 통합할 때 뭔가 필요한 경우가 있을까 봐 관련이 있을 만한 플러그인들을 포함해서 다시 빌드할 계획입니다.

정말 감사합니다.