MongoDB upgrade
Symptom
MongoDB is a separate software optionally used with N4V.
The version of MongoDB installed with N4V may vary depending on the N4V version you installed the first time (full installation).
Following the procedure below, you will be able to upgrade the MongoDB instance on your N4V server.
Environment
Windows Server
Need4Viz : all versions
MongoDB Versions
MongoDB upgrade principle
You can safely upgrade your MongoDB instance used with N4V following the below procedure.
To avoid any issues during the upgrade, please, respect exactly all the steps of the procedure.
For MongoDB upgrade, you cannot upgrade from any version to another one. You MUST pass through different intermediate upgrades. The complete procedure (all intermediate upgrades) is very fast but all the indicated tasks must be done .
Intermediate upgrades necessary : 4.2 -> 4.4 -> 5.0 -> 6.0 -> 7.0
MongoDB version used
To know which version of MongoDB is used on your N4V server :
Open a CMD window on your N4V server
Goto the \Need4Viz\MongoDB\Server\4.2\bin folder
Run the "mongod --version" command
Retrieve the MongoDB version
MongoDB upgrade from 4.2 to 4.4
This step is mandatory to upgrade from 4.2 to newer version of MongoDB (4.4, 5.0, 6.0, 7.0)
The end of life (EOL) of 4.2 version is April 2023.
The end of life (EOL) of 4.4 version is February 2024.
Platform Support of MongoDB 4.4 version :
Upgrade process to MongoDB 4.4 :
Download the Need4Viz_setup_Update_MongoDB_4.4.exe setup from the Download page of our Support site
Launch the upgrade setup of all Need4Viz server (where MongoDB is installed)
The setup should stop MongoDB and N4V on the server, upgrade MongoDB then restart automatically MongoDB and N4V.
Goto \Need4Viz\MongoDB\Server\4.2\bin folder and run "mongosh" (the default connection string should be OK -> mongodb://localhost) : [image: image]
Check the MongoDB version is 4.4.19
Run the command : db.adminCommand( { getParameter: 1, featureCompatibilityVersion: 1 } )
If the version shown is '4.2', run the command : db.adminCommand( { setFeatureCompatibilityVersion: '4.4' } )
Open a Webi report and update a N4V component to check everything is working well
Once these steps are done, you have successfully updated your MongoDB instance from 4.2 to 4.4 version. You can now go to the next step to continue your update (to version 5.0)
MongoDB upgrade from 4.4 to 5.0
This step is mandatory to upgrade from 4.4 to newer version of MongoDB (5.0, 6.0, 7.0)
The end of life (EOL) of 5.0 version is October 2024.
Platform Support of MongoDB 5.0 version :
Windows Server 2019
Windows Server 2016
Upgrade process to MongoDB 5.0 :
Download the Need4Viz_setup_Update_MongoDB_5.0.exe setup from the Download page of our Support site
Launch the upgrade setup of all Need4Viz server (where MongoDB is installed)
The setup should stop MongoDB and N4V on the server, upgrade MongoDB then restart automatically MongoDB and N4V.
Goto \Need4Viz\MongoDB\Server\4.2\bin folder and run "mongosh" (the default connection string should be OK -> mongodb://localhost) : [image: image]
Check the MongoDB version is 5.0.28
Run the command : db.adminCommand( { getParameter: 1, featureCompatibilityVersion: 1 } )
If the version shown is '4.4', run the command : db.adminCommand( { setFeatureCompatibilityVersion: '5.0' } )
Open a Webi report and update a N4V component to check everything is working well
Once these steps are done, you have successfully updated your MongoDB instance from 4.4 to 5.0 version. You can now go to the next step to continue your update (to version 6.0)
MongoDB upgrade from 5.0 to 6.0
This step is mandatory to upgrade from 5.0 to newer version of MongoDB (6.0, 7.0). You can also use it to upgrade an ancient 6.0 version of MongoDB to the latest version of 6.0.
The end of life of 6.0 version is July 2025.
Platform Support of MongoDB 6.0 version :
Windows Server 2019
Windows Server 2016
Upgrade process to MongoDB 6.0 :
Download the Need4Viz_setup_Update_MongoDB_6.0.exe setup from the Download page of our Support site
Launch the upgrade setup of all Need4Viz server (where MongoDB is installed)
The setup should stop MongoDB and N4V on the server, upgrade MongoDB then restart automatically MongoDB and N4V.
Open a Webi report and update a N4V component to check everything is working well
Once these steps are done, you have successfully updated your MongoDB instance from 5.0 to 6.0 version. You can now go to the next step to continue your update (to version 7.0)
MongoDB upgrade from 6.0 to 7.0
This step is mandatory to upgrade from 6.0 to newer version of MongoDB (7.0). You can also use it to upgrade an ancient 7.0 version of MongoDB to the latest version of 7.0.
The end of life (EOL) of 7.0 version is August 2027.
Platform Support of MongoDB 7.0 version :
Windows Server 2022
Windows Server 2019
Upgrade process to MongoDB 7.0 :
Download the Need4Viz_setup_Update_MongoDB_7.0.exe setup from the Download page of our Support site
Launch the upgrade setup of all Need4Viz server (where MongoDB is installed)
The setup should stop MongoDB and N4V on the server, upgrade MongoDB then restart automatically MongoDB and N4V.
Open a Webi report and update a N4V component to check everything is working well
Once these steps are done, you have successfully updated your MongoDB instance from 6.0 to 7.0 version.