Exception in callback of async function: Error: [Can't find migration version 128] at Object.Migrations._findIndexByVersion

Hello.

I accidentally update rocket chat to the latest version (docker) and now it is not working.

Not migrating, control is locked. Attempt 15/30. Trying again in 10 seconds.
Exception in callback of async function: Error: [Can't find migration version 128]
at Object.Migrations._findIndexByVersion (/app/bundle/programs/server/packages/rocketchat_migrations.js:435:9)
at Object.Migrations._migrateTo (/app/bundle/programs/server/packages/rocketchat_migrations.js:300:25)
at Object.Migrations.migrateTo (/app/bundle/programs/server/packages/rocketchat_migrations.js:227:23)
at xrun.js (/app/bundle/programs/server/app/app.js:7213:25)
at fileEvaluate (packages/modules-runtime.js:343:9)
at require (packages/modules-runtime.js:238:16)
at /app/bundle/programs/server/app/app.js:12922:1
at /app/bundle/programs/server/boot.js:411:36
at Array.forEach (<anonymous>:null:null)
at /app/bundle/programs/server/boot.js:220:19
at /app/bundle/programs/server/boot.js:471:5
at Function.run (/app/bundle/programs/server/profile.js:510:12)
at /app/bundle/programs/server/boot.js:470:11

is it possible to fix it ?

hop into mongo and do:

use rocketchat
db.migrations.update({"_id": "control"}, {$set:{locked: false}})

May need to restart rocket.chat after

Hi Aaron, I’m running into the same problem when updating to RC 3.7.1 from 3.0.3 and even though I executed this command, nothing happens for me and I still get this error in my log. Can you please help me out?

Exception in callback of async function: errorClass [Error]: [Can't find migration version 206]
stdout
11:02:57
    at Object.Migrations._findIndexByVersion (app/migrations/server/migrations.js:402:8)
stdout
11:02:57
    at Object.Migrations._migrateTo (app/migrations/server/migrations.js:254:24)
stdout
11:02:57
    at Object.Migrations.migrateTo (app/migrations/server/migrations.js:179:20)
stdout
11:02:57
    at module (server/startup/migrations/xrun.js:6:13)
stdout
11:02:57
    at fileEvaluate (packages/modules-runtime.js:336:7)
stdout
11:02:57
    at Module.require (packages/modules-runtime.js:238:14)
stdout
11:02:57
    at Module.moduleLink [as link] (/app/bundle/programs/server/npm/node_modules/meteor/modules/node_modules/reify/lib/runtime/index.js:52:22)
stdout
11:02:57
    at module (server/startup/migrations/index.js:1:3836)
stdout
11:02:57
    at fileEvaluate (packages/modules-runtime.js:336:7)
stdout
11:02:57
    at Module.require (packages/modules-runtime.js:238:14)
stdout
11:02:57
    at Module.moduleLink [as link] (/app/bundle/programs/server/npm/node_modules/meteor/modules/node_modules/reify/lib/runtime/index.js:52:22)
stdout
11:02:57
    at module (server/main.js:1:200)
stdout
11:02:57
    at fileEvaluate (packages/modules-runtime.js:336:7)
stdout
11:02:57
    at Module.require (packages/modules-runtime.js:238:14)
stdout
11:02:57
    at require (packages/modules-runtime.js:258:21)
stdout
11:02:57
    at /app/bundle/programs/server/app/app.js:156307:15
stdout
11:02:57
    at /app/bundle/programs/server/boot.js:398:38
stdout
11:02:57
    at Array.forEach (<anonymous>)
stdout
11:02:57
    at /app/bundle/programs/server/boot.js:226:21
stdout
11:02:57
    at /app/bundle/programs/server/boot.js:461:7
stdout
11:02:57
    at Function.run (/app/bundle/programs/server/profile.js:280:14)
stdout
11:02:57
    at /app/bundle/programs/server/boot.js:460:13 {
stdout
11:02:57
  isClientSafe: true,
stdout
11:02:57
  error: "Can't find migration version 206",
stdout
11:02:57
  reason: undefined,
stdout
11:02:57
  details: undefined,
stdout
11:02:57
  message: "[Can't find migration version 206]",
stdout
11:02:57
  errorType: 'Meteor.Error'
stdout
11:02:57
}