由于版本错误,无法将业务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 上的提交,看起来我的服务器是最新的。

我觉得我一定在做一些愚蠢的事情,但我看不出是什么。

3 个赞

可能是某个未安装在您系统上的插件迁移过来的。将文件名中的版本号替换掉应该可以解决此问题。

5 个赞

啊。我之前在想插件的事情,以及是否需要全部安装。重命名文件竟然如此简单。:man_shrugging:

这奏效了,但我会重新构建,加入可能用到的插件,以防在合并这两个站点时需要某些东西。

非常感谢。

6 个赞

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.