Navigation
This version of the documentation is archived and no longer supported. To learn how to upgrade your version of MongoDB Ops Manager, refer to the upgrade documentation.
You were redirected from a different version of the documentation. Click here to go back.

Upgrade Ops Manager

    This tutorial describes how to upgrade an existing Ops Manager installation.

    Upgrade Path

    Warning

    Ops Manager unintentionally and temporarily disables TLS/SSL when upgrading Ops Manager from version 4.2.0 through 4.2.23 to version 4.4.x. This behavior is a bug and may expose deployments to risk.

    Upgrade to Ops Manager 4.2.24 or later, then upgrade to Ops Manager 4.4.

    The version of your existing Ops Manager installation determines the upgrade path you must take to upgrade to Ops Manager 4.4 or later.

    Important

    • To ensure a successful upgrade, you must follow the upgrade path for your existing version to perform necessary database migrations.
    • To protect your data, Ops Manager refuses to start direct upgrades from versions 1.8.x and 2.0.x to version 3.4 or later.

    The following table lists upgrade paths for all versions:

    Existing Version Upgrade Path
    4.4.x Use the procedure on this page to upgrade from Ops Manager 4.4.x to the latest patch version of 4.4.x.
    4.2.x

    Use the procedure on this page to upgrade from Ops Manager 4.2.x to 4.2.24 or later first, then to the latest patch version of 4.4.

    An unintentional and temporary disabling of TLS occurs when upgrading to versions earlier than 4.2.24. Upgrading to 4.2.24 first avoids this outcome.

    4.0.x

    Use the v4.2 upgrade tutorial to upgrade from Ops Manager 4.0.x to version 4.2.24 or later.

    An unintentional and temporary disabling of TLS occurs when upgrading to versions earlier than 4.2.24. Upgrading to 4.2.24 first avoids this outcome.

    3.6.x Use the v4.0 upgrade tutorial to upgrade from Ops Manager 3.6.x to version 4.0.x.
    3.4.x Use the v3.6 upgrade tutorial to upgrade from Ops Manager 3.4.x to version 3.6.x.
    2.x or earlier Use the v3.4 upgrade tutorial to upgrade from Ops Manager 2.x or earlier.

    There are no supported downgrade paths for Ops Manager.

    Important

    It is crucial that you back up the existing conf-mms.properties and gen.key files because the upgrade process deletes them.

    Important

    It is crucial that you back up the existing conf-mms.properties and gen.key files because the upgrade process deletes them.

    Considerations

    Before upgrading Ops Manager from 4.2 to 4.4, review the following considerations:

    Backing Databases

    Ops Manager 4.4.0 requires a minimum of MongoDB 4.0.0 for Ops Manager backing databases.

    Compatible MongoDB Tools

    If you run Ops Manager 4.4.0 in local mode, you must download and install a compatible version of the MongoDB Tools TGZ package to the Versions Directory.

    Ops Manager Server Versions Compatible MongoDB Database Tools Version
    4.4.17, 100.5.0
    4.4.11, 4.4.12, 4.4.13, 4.4.14, 4.4.15, 4.4.16, 100.3.1
    4.4.10 100.3.0
    4.4.5, 4.4.6, 4.4.7, 4.4.8, 4.4.9 100.2.0
    4.4.2, 4.4.3, 4.4.4 100.1.0
    4.4.0, 4.4.1 100.0.2

    To access older versions of the MongoDB Tools, click Archived releases on the Download page.

    Personal API Keys

    Ops Manager 4.4 deprecates the use of Personal API Keys.

    • Can’t create new Personal API Keys.
    • Removes support for Personal API Keys in Ops Manager 4.6.

    Encryption Using gen.key File

    Ops Manager 4.4 requires an identical gen.key file on each server hosting an Ops Manager Application or Backup Daemon. Ops Manager uses the file to encrypt and decrypt Ops Manager’s backing databases and user credentials. Back up the gen.key file to a secure location.

    Backup Changes for FCV 4.2 and later

    Ops Manager no longer supports encrypting cluster snapshots with local key encryption.

    Platform Support Changes

    Ops Manager Microsoft Windows Support Changes

    • Support for running Ops Manager on the Windows platform ends after the 4.4 series.
    • Future releases of Ops Manager still support managing MongoDB deployments that run on Windows.

    MongoDB Platform Support Changes

    • Ops Manager 4.4 removes support for managing MongoDB deployments with the MongoDB Agent that runs on the following platforms:
      • Amazon Linux 1 on the x86_64 architecture
      • RHEL 7.x, Ubuntu 16.x on the PowerPC (ppc64le) architecture
      • RHEL 6.x/7.x, Ubuntu 18.x, and SUSE 12.x on zSeries (s390x) architecture

    Server Pools

    Ops Manager 4.4 removes support for Server Pools.

    Prerequisites

    Hardware and Software Requirements

    Your servers must meet the Ops Manager System Requirements.

    Potential for Production Failure

    Your Ops Manager instance can fail in production if you fail to configure the following:

    If your backing databases run the MMAPv1 storage engine, the upgrade process fails. Ops Manager prompts you to upgrade the storage engine for those backing databases to WiredTiger.

    Administrator Privileges

    You must have administrator privileges on the servers on which you perform the upgrade.

    Platform Compatibility

    Before you upgrade Ops Manager, make sure:

    If you upgraded the platform for the MongoDB Agent hosts, upgrade the MongoDB Agents before upgrading Ops Manager.

    Procedure

    Upgrade Mode for Highly Available Ops Manager Applications

    If you have an Ops Manager 4.4 installation with more than one Ops Manager host pointing to the same Application Database, you can upgrade Ops Manager to a newer 4.4 version without incurring monitoring downtime. During this upgrade, Ops Manager enters a state known as Upgrade Mode. The benefits of this mode are that throughout the upgrade process:

    • Alerts and monitoring operate
    • Ops Manager instances remain live
    • Ops Manager Application may be accessed in read-only mode
    • Ops Manager APIs that write or delete data are disabled

    Your Ops Manager instance stays in Upgrade Mode until all Ops Manager hosts have been upgraded and restarted.

    You should not upgrade more than one Ops Manager host at a time.

    When Ops Manager enters upgrade mode, the Backup Daemons attempt to stop themselves. This process can fail if the Daemons are in the middle of a long backup job. In this case, do one of the following:

    • Restart the first Ops Manager instance once the Backup Daemons finish the job.
    • Stop the Backup Daemons manually.

    To manually stop your Backup Daemons:

    1. Log into the first host that serves a Backup Daemon.
    2. Click the Start button.
    3. Click Administrative Tools.
    4. Click Services.
    5. Right-click the MongoDB Ops Manager Backup Daemon Service and select Stop.
    6. Repeat steps 2 to 5 with every other Backup Daemon host.
    1. Log into the first host that serves a Backup Daemon.

    2. Issue the following command:

      sudo service mongodb-mms-backup-daemon stop
      
    3. Verify that you shut down the Backup Daemon:

      ps -ef | grep mongodb-mms-backup-daemon
      

      If the Backup Daemon continues to run, issue this command:

      sudo /etc/init.d/mongodb-mms-backup-daemon stop
      
    4. Repeat steps 2 to 3 with every other Backup Daemon host.

    1. Log into the first host that serves a Backup Daemon.

    2. Issue the following command:

      sudo service mongodb-mms-backup-daemon stop
      
    3. Verify that you shut down the Backup Daemon:

      ps -ef | grep mongodb-mms-backup-daemon
      

      If the Backup Daemon continues to run, issue this command:

      sudo /etc/init.d/mongodb-mms-backup-daemon stop
      
    4. Repeat steps 2 to 3 with every other Backup Daemon host.

    1. Log into the first host that serves a Backup Daemon.

    2. Issue the following command:

      <install_dir>/bin/mongodb-mms-backup-daemon stop
      
    3. Verify that you shut down the Backup Daemon:

      ps -ef | grep mongodb-mms-backup-daemon
      

      If the Backup Daemon continues to run, issue this command:

      sudo /etc/init.d/mongodb-mms-backup-daemon stop
      
    4. Repeat steps 2 to 3 with every other Backup Daemon host.

    If you’re running your Ops Manager Application in a high availability configuration, complete this procedure on one Ops Manager host at a time.

    Use this procedure to upgrade the Ops Manager Application on hosts running Microsoft Windows:

    1

    Stop your first running Ops Manager instance.

    To shutdown Ops Manager:

    1. Click the Start button.
    2. Click Administrative Tools.
    3. Click Services.
    4. Right-click the MongoDB Ops Manager HTTP Service and select Stop.
    2

    Uninstall the current version of Ops Manager.

    To uninstall Ops Manager:

    1. Click the Start button.
    2. Click Control Panel.
    3. Click Programs and Features.
    4. Right-click MongoDB Ops Manager and select Uninstall.

    Important

    If you do not uninstall the previous version of Ops Manager, you receive an error message during the upgrade.

    3

    Download the latest version of the Ops Manager package.

    1. Open your preferred browser to visit the MongoDB Download Center on MongoDB.com.

      If you start on MongoDB.com instead of following the link above, click Get MongoDB, then select Ops Manager from the Tools menu.

    2. From the Platforms drop-down menu, click Microsoft Windows Server 2008 R2, 2012, 2012 R2 + 2016.

    3. From the Packages drop-down menu, click MSI.

    4. Click Download.

      The downloaded package is named mongodb-mms-<version>.msi, where <version> is the version number.

    4

    Install the Ops Manager MSI package on the host that you are upgrading.

    Upgrade Mode for Highly Available Ops Manager Applications

    If you have an Ops Manager 4.4 installation with more than one Ops Manager host pointing to the same Application Database, this Ops Manager deployment runs with high availability. After you upgrade one Ops Manager host of a highly available Ops Manager deployment, that deployment enters Upgrade Mode.

    To install:

    1. Double click the MSI package.
    2. Follow the instructions in the Setup Wizard.
    3. During setup, the Configuration/Log Folder step prompts you to specify a folder where the configuration and log files will be stored.

    The installation restricts access to the folder to users with the Administrator access privileges only.

    5

    Start Ops Manager on the upgraded host.

    To start the service:

    1. Click the Start button.
    2. Click Administrative Tools.
    3. Click Services.
    4. In the Services list, right-click the MongoDB Ops Manager HTTP Service and select Start.
    6

    [Optional] Repeat the preceding steps for all other Ops Manager hosts in your High Availability deployment.

    Log into the Ops Manager host that you upgraded after it restarts. If your login succeeds, the upgrade succeeded.

    If your login succeeded, repeat these steps on the next host in your high availability Ops Manager deployment.

    7

    Update all Agents.

    Once your upgrade has finished, login to your Ops Manager instance. Ops Manager displays a banner that says One or more agents are out of date.

    Click Update All Agents, then confirm the changes.

    Use this procedure to upgrade the Ops Manager Application on hosts installed using deb packages:

    1

    Download the latest version of the Ops Manager package.

    1. Open your preferred browser to visit the MongoDB Download Center on MongoDB.com.

      If you start from MongoDB.com, click Products arrow right icon Ops Manager arrow right icon Try it now.

    2. From the Platforms dropdown menu, click Ubuntu 18.04.

    3. From the Packages dropdown menu, click DEB for x86_64 architecture.

    4. Click Download.

      The downloaded package is named mongodb-mms-<version>.x86_64.deb, where <version> is the version number.

    2

    Stop your first running Ops Manager instance.

    Issue the following command to stop the Ops Manager Application:

    sudo service mongodb-mms stop
    
    3

    Install the Ops Manager package on the host that you are upgrading.

    Upgrade Mode for Highly Available Ops Manager Applications

    If you have an Ops Manager 4.4 installation with more than one Ops Manager host pointing to the same Application Database, this Ops Manager deployment runs with high availability. After you upgrade one Ops Manager host of a highly available Ops Manager deployment, that deployment enters Upgrade Mode.

    1. Install the .deb package on each Ops Manager Application and Backup Daemon host. Issue the following command, where <version> is the version of the .deb package:

      sudo dpkg -i mongodb-mms_<version>_x86_64.deb
      
    2. When prompted whether to overwrite the currently installed version of mms.conf, you should type Y to replace the existing file.

    3. If you modified the ports or the JVM settings that Ops Manager uses, you need to re-apply those changes to the mms.conf file after Ops Manager is upgraded.

      Warning

      Don’t add passwords or secrets to JVM arguments in the mms.conf file. Ops Manager exposes them as plain text in the diagnostic archives.

    4. When upgrading to Ops Manager 4.4.11, Ops Manager prompts you to choose which version of the /opt/mongodb/mms/conf/conf-mms.properties file it should use. To avoid having to manually reconfigure Ops Manager, choose the current file. For more information, see 4.4.11 Release Notes.

    4

    Start Ops Manager on the upgraded host.

    sudo service mongodb-mms start
    
    5

    [Optional] Repeat the preceding steps for all other Ops Manager hosts in your High Availability deployment.

    Log into the Ops Manager host that you upgraded after it restarts. If your login succeeds, the upgrade succeeded.

    If your login succeeded, repeat these steps on the next host in your high availability Ops Manager deployment.

    6

    Update all Agents.

    Once your upgrade has finished, login to your Ops Manager instance. Ops Manager displays a banner that says One or more agents are out of date.

    Click Update All Agents, then confirm the changes.

    Use this procedure to upgrade the Ops Manager Application on hosts installed using rpm packages:

    1

    Stop your first running Ops Manager instance.

    On RHEL, CentOS, SUSE12 hosts that use systemd, issue the following command to stop the Ops Manager Application:

    sudo service mongodb-mms stop
    

    For platforms that use SysVInit, issue the following command:

    sudo /etc/init.d/mongodb-mms stop
    
    2

    Download the latest version of the Ops Manager package.

    1. Open your preferred browser to visit the MongoDB Download Center on MongoDB.com.

      If you start from MongoDB.com, click Products arrow right icon Ops Manager arrow right icon Try it now.

    2. From the Platforms dropdown menu, click one of the following options:

      • Red Hat + CentOS 7, 8 / SUSE 12 + 15 / Amazon Linux
    3. From the Packages dropdown menu, click RPM.

    4. Click Download.

      The downloaded package is named mongodb-mms-<version>.x86_64.rpm, where <version> is the version number.

    3

    Install the Ops Manager package on the Ops Manager host that you are upgrading.

    Upgrade Mode for Highly Available Ops Manager Applications

    If you have an Ops Manager 4.4 installation with more than one Ops Manager host pointing to the same Application Database, this Ops Manager deployment runs with high availability. After you upgrade one Ops Manager host of a highly available Ops Manager deployment, that deployment enters Upgrade Mode.

    To install the .rpm package on the upgraded Ops Manager host, issue the following command, where <version> is the Ops Manager version:

    sudo rpm -Uvh mongodb-mms-<version>.x86_64.rpm
    

    RPM Upgrade to 4.1+ modifies Ops Manager mms.conf file

    If you modified the ports or the JVM settings that Ops Manager uses, you need to re-apply those changes to the mms.conf file after Ops Manager is upgraded.

    When upgrading to Ops Manager 4.4.11, Ops Manager saves the current /opt/mongodb/mms/conf/conf-mms.properties file as the /opt/mongodb/mms/conf/conf-mms.properties.rpmsave file. To avoid having to manually reconfigure Ops Manager, rename /opt/mongodb/mms/conf/conf-mms.properties.rpmsave to /opt/mongodb/mms/conf/conf-mms.properties:

    sudo mv conf-mms.properties.rpmsave conf-mms.properties
    

    For more information, see 4.4.11 Release Notes.

    Warning

    Don’t add passwords or secrets to JVM arguments in the mms.conf file. Ops Manager exposes them as plain text in the diagnostic archives.

    4
    5

    Start Ops Manager on the upgraded host.

    On RHEL, CentOS, SUSE12 hosts that use systemd, issue the following command:

    sudo service mongodb-mms start
    

    For platforms that use SysVInit, issue the following command:

    sudo /etc/init.d/mongodb-mms start
    
    6

    [Optional] Repeat the preceding steps for all other Ops Manager hosts in your High Availability deployment.

    Log into the Ops Manager host that you upgraded after it restarts. If your login succeeds, the upgrade succeeded.

    If your login succeeded, repeat these steps on the next host in your high availability Ops Manager deployment.

    7

    Update all Agents.

    Once your upgrade has finished, login to your Ops Manager instance. Ops Manager displays a banner that says One or more agents are out of date.

    Click Update All Agents, then confirm the changes.

    Use this procedure to upgrade Linux systems that do not use deb or rpm packages.

    1

    Stop your first running Ops Manager instance.

    Issue the following command to stop the Ops Manager Application:

    <install_dir>/bin/mongodb-mms stop
    
    2

    Back up configuration files on the Ops Manager host.

    On the Ops Manager host that you’re upgrading, back up your existing configuration files and logs to a directory other than the install directory.

    Important

    You need the backed-up <install_dir>/conf/conf-mms.properties file for later in this procedure.

    Example

    The following commands back up the configuration files and logs to your home directory:

    cp -a <install_dir>/conf ~/mms_conf.backup
    cp -a <install_dir>/logs ~/mms_logs.backup
    
    3

    Start Ops Manager on the upgraded host.

    1. Open your preferred browser to visit the MongoDB Download Center on MongoDB.com.

      If you start from MongoDB.com, click Products arrow right icon Ops Manager arrow right icon Try it now.

    2. From the Version dropdown menu, click one of the provided stable versions.

    3. From the Platform dropdown menu, click one of the following options:

      • Red Hat + CentOS 7, 8 / SUSE 12 + 15 / Amazon Linux 2
      • Debian 9, 10 / Ubuntu 18.04
    4. From the Package dropdown menu, click tar.gz.

    5. Click Download.

      The downloaded package is named mongodb-mms-<version>.x86_64.tar.gz, where <version> is the version number.

    4

    Install the Ops Manager package on each host that you are upgrading.

    Upgrade Mode for Highly Available Ops Manager Applications

    If you have an Ops Manager 4.4 installation with more than one Ops Manager host pointing to the same Application Database, this Ops Manager deployment runs with high availability. After you upgrade one Ops Manager host of a highly available Ops Manager deployment, that deployment enters Upgrade Mode.

    Navigate to the directory into which you want to install Ops Manager. Extract the archive to that directory:

    tar -zxf mongodb-mms-<version>.x86_64.tar.gz
    

    Important

    To install a new version in the same directory as the old version, follow these steps:

    1. Rename the current installation directory.

      mv <install_dir> <install_dir_old>
      
    2. Create a new directory with the original name of your old directory.

      mkdir <install_dir>
      

    This avoids an empty installation directory and code library conflicts.

    5

    On each Ops Manager host, restore the backed up logs and configuration files into the Ops Manager installation directory.

    All log files should be restored. Most, but not all, configuration file should be restored. Restore:

    conf-mms.properties
    The settings for this Ops Manager deployment.
    gen.key
    The encryption key for the backing databases of this Ops Manager deployment.

    Example

    These commands restore the configuration files and logs from your home directory:

    cp -a ~/mms_logs.backup <install_dir>/logs
    cp -a ~/mms_conf.backup/conf-mms.properties <install_dir>/conf/conf-mms.properties
    cp -a ~/mms_conf.backup/gen.key <install_dir>/conf/gen.key
    
    6

    Optional. On each Ops Manager server, merge any needed changes into the mms.conf file from your backup.

    The mms.conf file is rarely customized, as it contains port and JVM configuration settings. If you modified the ports or the JVM settings that Ops Manager uses, you need to re-apply those changes from your backup copy to the mms.conf file after Ops Manager is upgraded.

    Warning

    Don’t add passwords or secrets to JVM arguments in the mms.conf file. Ops Manager exposes them as plain text in the diagnostic archives.

    7

    Start Ops Manager on the upgraded host.

    Issue the following command:

    <install_dir>/bin/mongodb-mms start
    
    8

    [Optional] Repeat the preceding steps for all other Ops Manager hosts in your High Availability deployment.

    Log into the Ops Manager host that you upgraded after it restarts. If your login succeeds, the upgrade succeeded.

    If your login succeeded, repeat these steps on the next host in your high availability Ops Manager deployment.

    9

    Update all Agents.

    Once your upgrade has finished, login to your Ops Manager instance. Ops Manager displays a banner that says One or more agents are out of date.

    Click Update All Agents, then confirm the changes.

    Troubleshooting

    Unrecognized VM option

    The pre-flight check output or startup log should include an error like Unrecognized VM option 'UseParNewGC'. This error may occur if any of the following files have been edited:

    • mms.conf
    • conf-mms.properties

    Remove -XX:+UseParNewGC from the config files to resolve this issue.

    Unrecognized VM option

    The pre-flight check output or startup log should include an error like Unrecognized VM option 'UseParNewGC'. This error may occur if any of the following files have been edited:

    • /etc/rc.d/init.d/mongodb-mms
    • mms.conf
    • conf-mms.properties

    Remove -XX:+UseParNewGC from the config files to resolve this issue.

    Unrecognized VM option

    The pre-flight check output or startup log should include an error like Unrecognized VM option 'UseParNewGC'. This error may occur if any of the following files have been edited:

    • /etc/rc.d/init.d/mongodb-mms
    • mms.conf
    • conf-mms.properties

    Remove -XX:+UseParNewGC from the config files to resolve this issue.

    Unrecognized VM option

    The pre-flight check output or startup log should include an error like Unrecognized VM option 'UseParNewGC'. This error may occur if any of the following files have been edited:

    • /etc/rc.d/init.d/mongodb-mms
    • mms.conf
    • conf-mms.properties

    Remove -XX:+UseParNewGC from the config files to resolve this issue.

    Illegal Reflective Access
    This warning displays due to the version of the Guice library that Ops Manager uses. You can safely ignore this warning.