Skip to content
English
  • There are no suggestions because the search field is empty.

Set Feature Compatibility version to 7.0 after upgrading to 23.242

Original Question or Issue:

We have upgraded to the latest version of Filecloud, and according to the instructions, we are to run this command on the primary DB node.  

db.adminCommand({ setFeatureCompatibilityVersion: "7.0" })  

But I keep getting an error to use confirm: true


Environment:

  • Product - FileCloud Server
  • Version - 23.242 (and later)
  • Platform - Any

Steps to Reproduce:

  1. Upgrade FileCloud Server to version 23.242 or later.
  2. Connect to the primary MongoDB node (e.g., via mongosh).
  3. Run the command: db.adminCommand({ setFeatureCompatibilityVersion: "7.0" })
  4. Observe the error requiring confirm: true.

Error or Log Message:

MongoServerError: 'confirm: true' is required when upgrading to version 7.0 to acknowledge the implications of the changes introduced. To run the command, use: db.adminCommand({ setFeatureCompatibilityVersion: "7.0", confirm: true })


Defect or Enhancement Number:

 


Cause:

Starting with MongoDB 7.0, the setFeatureCompatibilityVersion command requires an explicit confirm: true parameter to acknowledge the impact of the compatibility change. The original command omits this required parameter.


Resolution or Workaround:

Use the following command:

db.adminCommand({setFeatureCompatibilityVersion: "7.0", confirm: true});


Notes:

This behavior is specific to MongoDB 7.0 and later. The confirm: true parameter was introduced to make the upgrade process explicit and intentional, as changing the feature compatibility version is an irreversible operation within a major version. Ensure all replica set members are running MongoDB 7.0 before executing this command.