Closed jeroen closed 11 months ago
It looks like for the production database featureCompatibilityVersion
is set to "4.4": https://github.com/r-universe-org/production-server/blob/3a5c490152514b7a5de38b1eb42385a62be4ee4d/migrations/demo.js#L4-L5
This does not allow an direct upgrade to 6.0. The mongodb guide says:
To upgrade from a version earlier than the 5.0-series, you must successively upgrade major releases until you have upgraded to 5.0-series. For example, if you are running a 4.4-series, you must upgrade first to 5.0 before you can upgrade to 6.0.
Perhaps the safest way is to start a new server. That also allows us to safely upgrade to ubuntu 22.04.
It will be cheaper to use a separate disk for gridfs. To do this we would need to:
directoryPerDB
config option/data/db/packages
and /data/db/files
For now just upgraded production to mongodb 6.0 without any other changes.
Production currently runs mongodb 4. Tried to upgrade to mongodb 6 locally which gave the following db error:
After wiping the db and starting over, everything seems to work afaict.
It looks like automatic md5 hashing is actually done in the mongo-node client, not the db? https://github.com/r-universe-org/help/issues/118