**RESOLVED** MMAP to wiredTiger Migration | MongoDB 5.X and RocketChat 4.X Upgrade

Description

I have been trying to upgrade my test RC server to the latest so I can do the same in our production server. (As in MongoDB 5.x and RocketChat 4.X.) However, I keep ending up with this same error.

The migration from MMAP to wiredTiger seems to be a success by checking the logs and following this(GitHub - RocketChat/docker-mmap-to-wiredtiger-migration), but the rocketchat log says something else.

Server Setup Information

  • Version of Rocket.Chat Server: 4.0.1
  • Operating System: Ubuntu 20 LTS
  • Deployment Method: Docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog: unk
  • NodeJS Version: unk
  • MongoDB Version: 4.0
  • Proxy: nginx
  • Firewalls involved: NA

Any additional Information

Related: MongoDB version 4.0.21 is deprecated, please upgrade your installation - #4 by theoprata

###LOGS###
rocketchat_1 | Exception in callback of async function: errorClass [Error]: [Can’t find migration version 240]
rocketchat_1 | at Object.Migrations._findIndexByVersion (app/migrations/server/migrations.js:403:8)
rocketchat_1 | at Object.Migrations._migrateTo (app/migrations/server/migrations.js:254:24)
rocketchat_1 | at Object.Migrations.migrateTo (app/migrations/server/migrations.js:179:20)
rocketchat_1 | at module (server/startup/migrations/xrun.js:6:13)
rocketchat_1 | at fileEvaluate (packages/modules-runtime.js:336:7)
rocketchat_1 | at Module.require (packages/modules-runtime.js:238:14)
rocketchat_1 | at Module.moduleLink [as link] (/app/bundle/programs/server/npm/node_modules/meteor/modules/node_modules/reify/lib/runtime/index.js:52:22)
rocketchat_1 | at module (server/startup/migrations/index.js:1:5090)
rocketchat_1 | at fileEvaluate (packages/modules-runtime.js:336:7)
rocketchat_1 | at Module.require (packages/modules-runtime.js:238:14)
rocketchat_1 | at Module.moduleLink [as link] (/app/bundle/programs/server/npm/node_modules/meteor/modules/node_modules/reify/lib/runtime/index.js:52:22)
rocketchat_1 | at module (server/main.js:1:210)
rocketchat_1 | at fileEvaluate (packages/modules-runtime.js:336:7)
rocketchat_1 | at Module.require (packages/modules-runtime.js:238:14)
rocketchat_1 | at require (packages/modules-runtime.js:258:21)
rocketchat_1 | at /app/bundle/programs/server/app/app.js:208080:15
rocketchat_1 | at /app/bundle/programs/server/boot.js:401:38
rocketchat_1 | at Array.forEach ()
rocketchat_1 | at /app/bundle/programs/server/boot.js:226:21
rocketchat_1 | at /app/bundle/programs/server/boot.js:464:7
rocketchat_1 | at Function.run (/app/bundle/programs/server/profile.js:280:14)
rocketchat_1 | at /app/bundle/programs/server/boot.js:463:13 {
rocketchat_1 | isClientSafe: true,
rocketchat_1 | error: “Can’t find migration version 240”,
rocketchat_1 | reason: undefined,
rocketchat_1 | details: undefined,
rocketchat_1 | errorType: ‘Meteor.Error’
rocketchat_1 | }

Hi!

Looks like a Rocket.Chat version mismatch to me.

can you make sure you are running the now migrated mongo db with the same Rocket.Chat version from the nmap version?

migration 240 is the last one, according to here:

Thanks @dudanogueira! You’re the champ.

I went back to my docker-compose.yml and updated the line for rocketchat image.

“image: rocketchat/rocket.chat:latest” >> “image: rocketchat/rocket.chat:4.0.1”

1 Like