首页 > 解决方案 > 将 mongodb 从 4.2 升级到 4.4 失败,出现“...不支持的 WiredTiger 文件版本...”

问题描述

我已将我的 mongodb 从 4.2 升级到 4.4。我以为我的 setFeatureCompatibilityVersion 是 4.2 但我错了。它是 3.x 所以我再次运行 4.2 实例将 setFeatureCompatibilityVersion 设置为 4.2 但这失败了

现在我得到这个错误

db version v4.2.3
....so setting the active storage engine to 'wiredTiger'
2020-08-26T21:38:45.656+0300 E  STORAGE  [initandlisten] WiredTiger error (-31802) [1598467125:655293][2016:140717972479568], connection: __log_open_verify, 926: unsupported WiredTiger file version: this build only supports versions up to 3, and the file is version 4: WT_ERROR: non-specific WiredTiger error Raw: [1598467125:655293][2016:140717972479568], connection: __log_open_verify, 926: unsupported WiredTiger file version: this build only supports versions up to 3, and the file is version 4: WT_ERROR: non-specific WiredTiger error
2020-08-26T21:38:45.694+0300 F  STORAGE  [initandlisten] Reason: -31802: WT_ERROR: non-specific WiredTiger error   

请任何帮助将不胜感激我在死胡同我的最后一次备份是一天前我不想错过我的数据

再次提前感谢任何人。

标签: mongodb

解决方案


好的。对谁有帮助

my 4.2.x version was 4.2.3

what i did is download the latest 4.2.x version that is 4.2.9
i run my data folder against 4.2.9 binaries and voilla works.
now i can take a backup
next will change the FCV to 4.2.
next use the 4.4 binaries against my data folder
next change the FCV to 4.4

:) 10x2all


推荐阅读