Hi!
Thanks for your suggestions and your reply.
My solution was to backup my old DB, create a new DB with higher MongoDB version and restore the backup within the new DB. Then i upgraded my RocketChat in small steps.
In detail (for anyone facing similar problems):
- Shutdown your RocketChat container
- Backup the MongoDB with mongodump. You can access the terminal of your Docker image inside the Docker app for DSM
- Copy your backup to another location on your NAS (outside the Mongo container)
- Shutdown your old MongoDB
- Fetch a Mongo Docker image below v5.0. Since Mongo 5.0 requires CPU AVX support (this is a hardware requirement and most probably your NAS CPU doesn’t meet it). I chose 4.4.9
- Configure a new container for your new MongoDB with according variables
- Follow these instructions for creating a replica set.
- Give your new MongoDB container access to your backup
- Restore your backup into your new MongoDB container using mongorestore in your container terminal.
- Spin up your DB
Now you are ready to upgrade in major RocketChat version steps. Create a new Docker container for every major version you need to upgrade. I got migration errors (you will see them in your Docker log in the DSM Docker app). You can solve them by upgrading in smaller versions. E.g.: you get a migration error upgrading from 4.0 to 5.0, do an upgrade from 4.0 to 4.5. If you still get an migration error, do even a smaller upgrade step.
I was able to get my RocketChat back up and running with the latest version on MongoDB 4.4.9. without data loss.
This solved my problem, but doesn’t provide an explanation why my previous version was running without logging anything and beeing not responsive. All after all this is not imporant any more
Heads up devs
MongoDB 4.4 EOL is Feb. 24. This is the last version without AVX support needed. In my usecase (self hosted RocketChat and DB on Synology NAS) i can’t install a newer version of MongoDB on my device. I did a quick research of Synology CPU’s and AVX support and i came to the conclusion that no Diskstation supports AVX today. With the EOL of MongoDB 4.4 todays Synology NAS can’t be used to host RocketChat anymore.