2FA Does not work

What version are you coming from?

RC 3.11.1
Mongo 4.0 mmap

What version are you going to?

RC 3.11.1
Mongo 4.0 wiredTiger

What deployment method did you use to deploy?

Docker Debian 12

Did you follow a particular doc? Which one?

A New Installation of RC/Mongo via docker on a new Server: followed official RC guide

What issues are you running into upgrading?

A Mongo Restore was successful, able to access the site URL, furthermore after entering credentials, suppose to receive an OTP and this doesn’t arrive at all

What could be the possible causes?
Is a mongo backup from one docker and then restore on another docker (having all same versions, just the difference is mmap to wiredTiger)

Thanks in advance :slight_smile:

That hasn’t been supported for a long time. You are on your own there.

Latest released version is 6.11.1

I suggest you start there.

So this is the work-around:

once the restore was successful, disable 2FA directly in the MongoDB Database, with the following commands:

  1. docker exec -it rocketchat-mongo-1 mongo
  2. use rocketchat
  3. db.users.updateMany({}, { $unset: { “services.email2fa”: 1 } })
  4. exit

Thank You :slight_smile:

Good luck.

Your version has multiple security vulnerabilities…