Important
MongoDB 8.3 Release Candidates
MongoDB 8.3 binaries are currently available only as release candidates. Release candidates can be used for early testing of new features, but are not suitable for production deployments.
This version of the manual is for an upcoming release and is currently a work in progress.
Before you attempt a downgrade, familiarize yourself with the content in this page.
Downgrade Path
If you need to downgrade from 8.3, downgrade to the latest patch release of 8.2.
MongoDB supports single-version downgrades along adjacent versions only. You cannot downgrade to a release that is multiple versions behind your current release.
For any versions, major or minor, you can upgrade or downgrade to its adjacent neighbors. For example, you can downgrade from 8.3 to 8.2 or upgrade from 7.0 to 8.0.
For all versions, major or minor, you can downgrade to the immediately previous major version. For example, from 8.3 to 8.0.
For any minor version, you can upgrade to the immediately next version. For example, from 8.2 to 8.3.
Access Control
If your deployment has access control enabled, your downgrade user
privileges must include privileges to list and manage indexes across
databases. A user with root role has the required
privileges.
Prerequisites
Before you begin the downgrade procedure, you must complete the following prerequisite steps.
Create Backup
Optional but Recommended. Create a backup of your database.
To learn how to create a backup, see Backup Methods for a Self-Managed Deployment.
Remove Backward-Incompatible Features
To ensure a successful downgrade, remove any 8.3 features that are incompatible with 8.2. For a list of incompatible features and how to remove them, see Downgrade Considerations.
Downgrade Feature Compatibility Version (FCV)
To downgrade the featureCompatibilityVersion of your standalone
instance:
Downgrade the
featureCompatibilityVersionto"8.2".Important
After you modify the
featureCompatibilityVersionand enable new features, you cannot downgrade the binary version without assistance from support. Make sure to evaluate your upgrade path before proceeding.db.adminCommand( { setFeatureCompatibilityVersion: "8.2", confirm: true } ) The
setFeatureCompatibilityVersioncommand performs writes to an internal system collection and is idempotent. If the command does not complete successfully, retry the command on themongodinstance.
Downgrade Procedure
Warning
Before proceeding with the downgrade procedure, ensure that the prerequisites have been completed.
Update configuration files
Disable any configurable 8.3 features by updating the
mongod instance's configuration file before
restarting.
To see the list of configurable 8.3 features, review the 8.3 Release Notes.
Restart with the latest 8.2 mongod instance
To start a mongod process, run the following command:
mongod --dbpath </path-to-data-folder>
To learn more about starting a mongod process, see
Start mongod Processes.