How to upgrade to MongoDB 7

MongoDB version 7 can be used with Sage X3 Syracuse Server version 12.21.0.

Important: You must be running MongoDB 4.4 to upgrade to MongoDB 7.

Sage delivers a MongoDB setup to upgrade your MongoDB instance.

Consult the MongoDB 7 documentation for more information.

Prerequisites

For each release, the minimum Syracuse upgrades compatible with MongoDB 7 are the following:

Product version Minimum Sage X3 Syracuse Server version
U9 Not compatible
V11 Not compatible
V12 12.21.0

Consult the prerequisites documentation for MongoDB 7 on Linux and Windows for more information.

Upgrading MongoDB from an earlier release than 4.4

Consult this documentation if you need to upgrade to MongoDB 4.4 first.

Upgrade process from MongoDB 4.4 to 7

  1. Stop the Sage X3 Syracuse Server Agent. It is mandatory to not have MongoDB client running. Check that you don’t have any node.js nanny, Nx, Wx or B0 running.
  2. Consult the documentation for what to take into consideration before launching the MongoDB 7 setup.
  3. Launch the MongoDB 7 setup to start the upgrade process. Follow the installation procedure.
  4. If the original installation was set only to accept secure connections, pay attention to The server uses and accepts only SSL encrypted connections option.
  5. During the upgrade, the setup executes the following migration process:
    1. The MongoDB service is stopped.
    2. MongoDB 7 binaries are installed.
      Note: The binaries of MongoDB 4 and 7 coexist in the disk in different directories.
    3. A Powershell script dedicated to the MongoDB migration will be executed and follow these steps:
      1. Exports a dump using V4 binaries.
      2. Creates a backup of the previous database file system structure into a temporary location.
      3. Creates a new MongoDB 7 empty database.
      4. Imports the previously done dump of MongoDB 4 into the newly created MongoDB 7 database.
      5. Copies old database and dumps into a backup directory.
    4. A log is generated on the disk in the main MongoDB installation folder.
  6. Consult the documentation for what to take into consideration during the upgrade process.
  7. Restart your Sage X3 Syracuse Server.
  8. Consult the documentation for what to take into consideration after the upgrade process is concluded.

Additional notes on upgrading MongoDB 4.4 to MongoDB 7

Before upgrading to MongoDB 7

Before upgrading from MongoDB 4.4 to MongoDB 7, take these notes into consideration:

While upgrading to MongoDB 7

During the upgrade procedure from MongoDB 4.4 to MongoDB 7, take these notes into consideration for possible troubleshooting during the migration that occurs during the process:

After upgrading to MongoDB 7

After the upgrade to MongoDB 7 is concluded, take these notes into consideration: