Upgrading from a previous version

Upgrading from a previous version on Unix-based deployments

Preliminary notes

Upgrading is usually a two-step process:

  1. upgrade the mdss package by installing the newer package
  2. upgrade the existing code by downloading new images

Acquire the installer package

In order to acquire the new package please visit https://my.opswat.com/

In case of an offline deployment, the offline installation steps need to be followed with the latest installer and offline package:

Offline installation for Linux

Offline installation for Windows Server 2019 / 2022

Debian / Ubuntu package (.deb)

  1. Update your packages
Copy
  1. Move to the folder containing the installer and install it
Copy
  1. Start the service
Copy
  1. Optionally, you can check the status using the following command:
Copy
  1. Open a browser and navigate to the web interface: http://<server> to configure your deployment.

Red Hat Enterprise Linux / CentOS package (.rpm)

  1. Update your packages
Copy
  1. Move to the folder containing the installer and install it
Copy
  1. Start the service
Copy
  1. Optionally, you can check the status using the following command:
Copy
  1. Open a browser and navigate to the web interface: http://<server> to configure your deployment.

Offline Upgrade

Instructions to be followed for upgrading after installing the product using the Installing Offline on Linux documentation

  1. Download the latest MDSS installation package from My OPSWAT portal.
  2. Download latest MDSS deployment.zip
  3. Stop the service
Bash
Copy
  1. Run the installation script
Ubuntu/Debian
RedHat/CentOS
Copy
  1. Extract deployment.zip folder and load the container images
Bash
Copy
  1. Start the service
Bash
Copy

Upgrading from a previous version on Windows-based deployments

Upgrading from v3.3.4 or earlier to v3.4.0 or newer

Upgrading to v.3.4.0 from an older version requires a special procedure due to major architectural changes. If a clean install with configuration import is not possible, please see the steps below.

Caution: This operation modifies a live database. Errors may cause irreversible data loss. Proceed with caution and ensure adequate backups. We advise on performing this operation only if absolutely necessary.

All commands should be run in a PowerShell terminal.

  1. Update MDSS to the latest version
Powershell
Copy
  1. Edit the following file: C:\Program Files\OPSWATMetaDefender Storage Security\docker\docker-compose.main.linux.yml
  2. Under the mongodb container modify the image to use version 6.0. It should look like this:
YAML
Copy
  1. Repeat procedure for C:\Program Files\OPSWATMetaDefender Storage Security\docker\docker-compose.main.all.linux.yml
  2. Run the upgrade command from the installation directory (C:\Program Files\OPSWAT\MetaDefender Storage Security\docker):
Powershell
Copy

Depending on you DB size, this operation will may take more than 30 minutes

  1. After upgrade is finished, export the DB
Powershell
Copy
  1. Copy the exported DB archive to a different location, ex: C:\temp
  2. In that different location, extract the archive
Powershell
Copy
  1. Compress the files in a zip format
Powershell
Copy
  1. Uninstall MetaDefender Storage Security 3.3.4 as documented here
  2. Run the installer for MetaDefender Storage Security 3.4.0 as documented here
  3. Run the stop command from the installation directory (C:\Program Files\OPSWAT\MetaDefender Storage Security\scripts)
Powershell
Copy
  1. Copy the .zip file you created eariler (db__{timestamp}_.zip) to the installation directory (by default, (C:\Program Files\OPSWAT\MetaDefender Storage Security)
  2. Import the DB
Powershell
Copy
  1. Run the start command:
Powershell
Copy

Upgrading from v2.1.3 or below

Before your upgrade, please verify your docker and docker-compose version by running the following commands:

  • docker -v
  • docker-compose -v

If your docker version is below 20.10.3 please run the following commands in order to upgrade your docker installation:

  1. Upgrade to the latest available version
Copy
  1. A restart is required for the installation to complete
Copy

If your docker-compose version is below 1.28.5 please run the following command in order to upgrade your docker-compose installation:

Copy

Before you proceed, verify that your docker install was upgraded by running docker -v and docker-compose -v again. If everything looks good, please proceed by running the new installer.

Upgrading from v2.1.4 or above

To upgrade from a previous version, running the new installer is enough. The installer will walk you through the installation wizard.

Upgrading from v2.1.5 or below

When upgrading from v2.1.5 or older versions, a warning box may pop up with the following message:

Service 'MetaDefender Storage Security' (mdss) could not be stopped. Verify if you have sufficient privileges to stop system services.

The issue and the steps to solve it have been documented here.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard