Description
I’m trying to move a self-hosted 4.7.2 installation (Centos 7) in a local Docker environment to perform upgrade and future Docker production deploy.
I am ending up in a working installation but existing users cannot login (it says “user not found or wrong password”) so I am stuck
Server Setup Information
- Version of Rocket.Chat Server: 4.7.2
- Operating System: Centos 7
- Deployment Method: Migrating to Docker
- Number of Running Instances: 1
- DB Replicaset Oplog:
- NodeJS Version: N/A
- MongoDB Version: 4.4
Any additional Information
This is what I did:
-
Dumped the old DB from Centos 7 machine
mongodump --archive --gzip > db.gzip -
Started the local Docker Mongo container :
-
docker run --name db -d mongo:4.4 --replSet rs0 --oplogSize 128
-
docker exec -ti db mongo --eval “printjson(rs.initiate())”
Imported the old DB dump :
- docker exec -i db sh -c ‘mongorestore --archive --gzip’ < db.gzip
Started the Rocketchat instance (used 4.8 version to ensure minor migration) :
- docker run --name rocketchat -p 80:3000 --link db --env OVERWRITE_SETTING_Show_Setup_Wizard=completed --env ROOT_URL=http://localhost --env MONGO_OPLOG_URL=mongodb://db:27017/local -d rocket.chat:4.8
Went to http://localhost … Rocketchat is working, but I cannot login with any existing user
If I ssh into DB container and launch “show dbs” I see data had been well imported in the rocketchat DB (same name as Centos DB) :
rs0:PRIMARY> show dbs
admin 0.000GB
config 0.000GB
local 0.415GB
meteor 0.004GB
rocketchat 0.474GB
I also tried to start the Rocketchat docker container with latest version, migrations went OK but still can’t login…
Any help on how to troubleshoot is really appreciated.