Upgraded MongoDB and now its broken

Current Mongosh Log ID: 65204f678f41e058cc30ca4f
Connecting to: mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.0.1

This is what I when trying mongosh. Log file shows below.

featureCompatibilityVersion document (ERROR: Location4926900: Invalid featureCompatibilityVersion document in admin.system.version: { _id: "featureCompatibilityVersion", version: "4.4" }. See https://docs.mongodb.com/master/release-notes/5.0-compatibility/#feature-compatibility. :: caused by :: Invalid feature compatibility version value, expected ‘5.0’ or ‘5.3’ or '6.0. See https://docs.mongodb.com/master/release-notes/5.0-compatibility/#feature-compatibility.). If the current featureCompatibilityVersion is below 5.0, see the documentation on upgrading at https://docs.mongodb.com/master/release-notes/5.0/#upgrade-procedures."}}

What are the versions you are upgrading from/to?

Based on the messages I would assume this was a 5.0 installation that had an incomplete upgrade from 4.4 but you’d have to confirm that.

1 Like