RocketChat / Rocket.Chat

The communications platform that puts data protection first.
https://rocket.chat/
Other
40.68k stars 10.66k forks source link

Error while upgrading to 4.x from 3.x "Cant find migrations for version 240" #23463

Open dineshsalunke opened 3 years ago

dineshsalunke commented 3 years ago

I am getting an error related to migrations after trying to upgrade rocketchat from 3.x to 4.0.2, I followed the mongodb migration guide before upgrading the rocketchat using rocketchatctl

Description:

I followed upgrading to wired tiger section from the documentation before using rocketchatctl upgrade command https://docs.rocket.chat/quick-start/installing-and-updating/manual-installation/mongodb-mmap-to-wiredtiger-migration

Actual behavior:

image

Server Setup Information:

Additional context

iamfasal commented 3 years ago

Could be related to #23346 That was mainly on CentOS 7 servers, not sure if Ubuntu 18.04 is also affected with the same.

itg-dave commented 3 years ago

We have the same issue with the docker based installation. Also followed the migration tutorial. When switching back to mmapv1 (with old database snapshot), we can run 4.x.x without issues.

dineshsalunke commented 3 years ago

@fasalsh I am not sure if its related to.

I upgraded by mongod version and node version as well but i still had the same issue, and suddenly out of no where rocket chat went back to 3.x and started working again ( I still dont know how RC switched back to 3.x version still investigating that )