How to upgrade to MongoDB 8

The latest delivered MongoDB version is 8. It can be used with Sage X3 Syracuse Server version 12.23.0.

Important: The minimum version required to upgrade to MongoDB 8 is MongoDB 4.2. Therefore, it is also possible to update from MongoDB 4.4 and MongoDB 7 to MongoDB 8.

Sage delivers a MongoDB setup to upgrade your MongoDB instance.

Consult the MongoDB 8 documentation for more information.

Prerequisites

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

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

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

Upgrading MongoDB from an earlier release than 4.2

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

Upgrade process to MongoDB 8

  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 8 setup.
  3. Launch the MongoDB 8 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 8 binaries are installed.
      Note: The binaries of previous MongoDB installations and 8 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 the binaries of the MongoDB version you are upgrading to MongoDB 8.
      2. Creates a backup of the previous database file system structure into a temporary location.
      3. Creates a new MongoDB 8 empty database.
      4. Imports the previously done dump of the previous version of MongoDB into the newly created MongoDB 8 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 to MongoDB 8

Before upgrading to MongoDB 8

Before upgrading to MongoDB 8, take these notes into consideration:

While upgrading to MongoDB 8

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

After upgrading to MongoDB 8

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