복원 실패 - 먼저 마이그레이션을 해야 하나요?

하나의 서버에서 새 서버로 이동을 시도하고 있습니다.

두 서버 모두 동일한 버전의 Discourse를 사용하고 있습니다:

다음과 같은 오류가 발생합니다.

> [2022-10-15 06:12:50] [STARTED]
> [2022-10-15 06:12:50] 'frold' has started the restore!
> [2022-10-15 06:12:50] Marking restore as running...
> [2022-10-15 06:12:50] Making sure /var/www/discourse/tmp/restores/default/2022-10-15-061250 exists...
> [2022-10-15 06:12:50] Copying archive to tmp directory...
> [2022-10-15 06:12:52] Unzipping archive, this may take a while...
> [2022-10-15 06:13:00] Extracting dump file...
> [2022-10-15 06:13:08] Validating metadata...
> [2022-10-15 06:13:08]   Current version: 20221004122343
> [2022-10-15 06:13:08]   Restored version: 20221014005208
> [2022-10-15 06:13:08] EXCEPTION: You're trying to restore a more recent version of the schema. You should migrate first!
> [2022-10-15 06:13:08] /var/www/discourse/lib/backup_restore/meta_data_handler.rb:31:in `validate'
> /var/www/discourse/lib/backup_restore/restorer.rb:112:in `validate_backup_metadata'
> /var/www/discourse/lib/backup_restore/restorer.rb:43:in `run'
> /var/www/discourse/script/spawn_backup_restore.rb:23:in `restore'
> /var/www/discourse/script/spawn_backup_restore.rb:36:in `block in <main>'
> /var/www/discourse/script/spawn_backup_restore.rb:4:in `fork'
> /var/www/discourse/script/spawn_backup_restore.rb:4:in `<main>'
> [2022-10-15 06:13:08] Trying to rollback...
> [2022-10-15 06:13:08] There was no need to rollback
> [2022-10-15 06:13:08] Cleaning stuff up...
> [2022-10-15 06:13:08] Removing tmp '/var/www/discourse/tmp/restores/default/2022-10-15-061250' directory...
> [2022-10-15 06:13:09] Marking restore as finished...
> [2022-10-15 06:13:09] Notifying 'frold' of the end of the restore.'

왜 마이그레이션 오류가 발생하는 걸까요? 왜 두 가지 버전이 다른가요? 동일한 버전을 사용해야 하는데…

새 서버

구 서버

업그레이드하기 전에 수신자 시스템을 업그레이드해야 합니다

어떻게?

이미지에 표시된 것과 동일한 버전이어야 합니다.

beta10의 서로 다른 커밋에 있습니다 (설치된 버전 아래에 있는 파란색 텍스트를 확인하세요)

수신자 인스턴스를 다시 빌드한 다음 이주를 실행하면 작동할 것입니다.

기존 서버: Welcome to Ubuntu 18.04.6 LTS (GNU/Linux 4.15.0-194-generic x86_64)

새 서버: Welcome to Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-50-generic x86_64)

이것과 관련이 있을까요?

아래 명령어로 새 서버를 다시 빌드해 보겠습니다.

cd /var/discourse
./launcher rebuild app

아니요, 호스트 시스템은 중요하지 않습니다.

네, 그것이면 충분할 것입니다.

충분하지 않았습니다

같은 오류가 계속 나네요 :frowning:

[2022-10-15 06:59:36] [STARTED]
[2022-10-15 06:59:36] 'frold' has started the restore!
[2022-10-15 06:59:36] Marking restore as running...
[2022-10-15 06:59:36] Making sure /var/www/discourse/tmp/restores/default/2022-10-15-065936 exists...
[2022-10-15 06:59:36] Copying archive to tmp directory...
[2022-10-15 06:59:38] Unzipping archive, this may take a while...
[2022-10-15 06:59:46] Extracting dump file...
[2022-10-15 06:59:53] Validating metadata...
[2022-10-15 06:59:53]   Current version: 20221004122343
[2022-10-15 06:59:53]   Restored version: 20221014005208
[2022-10-15 06:59:53] EXCEPTION: You're trying to restore a more recent version of the schema. You should migrate first!
[2022-10-15 06:59:53] /var/www/discourse/lib/backup_restore/meta_data_handler.rb:31:in `validate'
/var/www/discourse/lib/backup_restore/restorer.rb:112:in `validate_backup_metadata'
/var/www/discourse/lib/backup_restore/restorer.rb:43:in `run'
/var/www/discourse/script/spawn_backup_restore.rb:23:in `restore'
/var/www/discourse/script/spawn_backup_restore.rb:36:in `block in <main>'
/var/www/discourse/script/spawn_backup_restore.rb:4:in `fork'
/var/www/discourse/script/spawn_backup_restore.rb:4:in `<main>'
[2022-10-15 06:59:53] Trying to rollback...
[2022-10-15 06:59:53] There was no need to rollback
[2022-10-15 06:59:53] Cleaning stuff up...
[2022-10-15 06:59:53] Removing tmp '/var/www/discourse/tmp/restores/default/2022-10-15-065936' directory...
[2022-10-15 06:59:54] Marking restore as finished...
[2022-10-15 06:59:54] Notifying 'frold' of the end of the restore...

복원하기 전에 새 서버에 discourse-chat 플러그인을 설치해야 합니다.
해당 마이그레이션은 discourse 코어가 아니라 챗에 속합니다.