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


#1

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 ?


#2

hop into mongo and do:

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

May need to restart rocket.chat after