Update

The following steps are used to update the Relution installation.

Downgrades are not supported: Returning to an older Relution version is generally not supported. On the first start after an update, the database is adapted to the new version, and older versions are not designed for this state. A downgrade can therefore lead to data loss or unexpected behavior. Since such scenarios are not tested, Relution does not display a specific warning about them either. If returning to an earlier version is nevertheless required, this is done by restoring the backup created before the update; changes made since the backup are lost in the process (see Disaster Recovery →). Relution Support is happy to help with any questions.

On the first start after the update, Relution updates the database automatically. This can take some time and must not be interrupted. If the process is interrupted, a lock can remain in the database that prevents the next start (see DatabaseChangeLogLock locked →).

In a cluster, an update across Relution 26.5.5 is applied to all nodes together: all nodes are stopped, updated and only then started again. Nodes running a version before 26.5.5 cannot communicate with nodes running 26.5.5 or later, so a node-by-node update during operation is not possible across this version boundary. No additional configuration is required (see HA Cluster (Advanced) →).


Prerequisites

The following must be in place before starting the update:

  • A working backup of the database and, if applicable, of the S3 storage. A snapshot of the server is usually also sufficient.

Docker installation

In the compose.yaml file (docker-compose.yml for older installations),

image: relution/relution:xxx is replaced with image: relution/relution:latest.

Updating Relution is then very easy:

cd /opt/relution/
docker compose pull
docker compose up --detach

In newer Docker versions, the spelling has changed to docker compose without a hyphen.

This command will download the latest version of the Docker image and install it. The Relution service will be unavailable for a few minutes while the container is restarting.

The following command can be used to delete old containers and caches, which can in some cases free up a lot of disk space.

docker system prune -a
WARNING! This will remove:
  - all stopped containers
  - all networks not used by at least one container
  - all images without at least one container associated to them
  - all build cache

Are you sure you want to continue? [y/N]

Known error messages

Update hangs at GeneratedSelfSignedSignerKeyStore

Problem: The update hangs at the GeneratedSelfSignedSignerKeyStore step.

Cause: For compliance reasons, Relution 26.3 and later uses a different cryptographic random number generator (a DRBG according to NIST SP 800-90A). If no custom iOS signing certificate is configured (see Configure iOS signing certificate →), Relution uses it on startup to create a self-signed signing certificate (GeneratedSelfSignedSignerKeyStore) with a 4096-bit RSA key.

Solution: Update to a current kernel or a current version of Rocky or Alma Linux, as required by the Docker (Recommended) → installation guide.

Database update stops because of invalid UUIDs in the compliance history

Problem: On the first start of Relution 26.5.0 or later, the database update stops and Relution does not start. With MariaDB, the log contains the following message (or the same message for the mdm_cmplnc_hstry_rsn table):

There is UUIDs in the mdm_cmplnc_hstry table that are not a valid UUIDs.

With PostgreSQL, the changeset 20260810-001-postgres-pre-check-mdm_cmplnc_hstry (or …-mdm_cmplnc_hstry_rsn) fails with invalid input syntax for type uuid.

Cause: As of Relution 26.5.0, the UUID columns of the compliance history are converted from a text type to the database’s UUID data type. Beforehand, the database update checks whether all entries in mdm_cmplnc_hstry and mdm_cmplnc_hstry_rsn contain valid UUIDs. If an entry contains a value that is not a valid UUID, the update is stopped.

Solution: The affected entries must be cleaned up before the next start. The procedure is coordinated with Relution support: Support ticket →

Relution does not start with the storage type AzureStorage or GridFS

Problem: Relution exits on startup with the following message:

Relution cannot start because AzureStorage is no longer supported as a resource storage type. Please use a supported storage type: SQL, S3

Instead of AzureStorage, the message may also name GridFS.

Cause: The configuration still sets a storage type under relution.storage.resourceStorageType (environment variable RELUTION_STORAGE_RESOURCESTORAGETYPE) that is no longer supported (GridFS or AzureStorage). Only SQL (storage in the database) and S3 (object storage) are supported.

Solution: A supported storage type is entered in the configuration, S3 for object storage, see Connect object storage →. Moving the data to another storage backend is described under Migration from MinIO to SeaweedFS →.


Native installation Linux

  1. Download of the latest Relution package (Latest Relution Package →), for example directly on the server:

    wget https://repo.relution.io/package/latest/relution-package.zip
    
  2. Stopping the Relution service. For an installation according to the guide Deprecated: Linux (Alma) →, the systemd service is named relution:

    sudo systemctl stop relution
    

    If the command reports Unit relution.service not loaded, the service was created under a different name. The name can be determined from the running Relution process: the first command shows the process ID (second column), the second shows the associated service in its first line (e.g. ● relution.service):

    ps -ef | grep -i "[r]elution"
    systemctl status <PID>
    

    In this and the following commands, relution is then replaced by the service name found. If a session (session-….scope) appears instead of a service, Relution does not run as a service but was started manually, e.g. via bin/relution-foreground.sh. In this case, the process is terminated (Ctrl+C in the corresponding terminal or sudo kill <PID>) and Relution is started the same way again after the update.

  3. Backup of the Relution database. Older installations use MariaDB, newer ones PostgreSQL. The database in use is shown by the entry type in the section relution.database of application.yml (mariadb or postgresql). Host, user and, at the end of the url, the database name are found there as well:

    sudo grep -A4 "database:" /opt/relution/application.yml
    

    The following one-liners assume a database server on the same machine and a database and user named relution. Different values are replaced accordingly. The password (password in application.yml) is prompted for during execution. The backup is stored in the current directory with the current date in the file name.

    For MariaDB:

    mariadb-dump -h localhost -u relution -p --single-transaction --routines --triggers relution > relution_$(date +%F).sql
    

    For MariaDB versions before 10.5, the program is called mysqldump; the parameters remain the same.

    For PostgreSQL:

    pg_dump -h localhost -U relution -F c -f relution_$(date +%F).dump relution
    

    The backup in custom format (-F c) is restored with pg_restore if required.

  4. Backup of the installation directory.

    sudo mv <INSTALL_DIR> <INSTALL_DIR>.bak
    
  5. Extraction of the zip package into the parent directory of <INSTALL_DIR>. The package contains the folder relution, which is created as the new <INSTALL_DIR>, for example:

    unzip relution-package.zip -d /opt
    
  6. Copying <INSTALL_DIR>.bak/application.yml to <INSTALL_DIR>/application.yml, for example:

    sudo cp -p /opt/relution.bak/application.yml /opt/relution/application.yml
    
  7. Setting owner and permissions in the <INSTALL_DIR> directory. The installation directory belongs to root. The service user relution only receives write permissions in the directories log and branding and read permissions on application.yml, for example:

    sudo chown -R root:root /opt/relution
    sudo mkdir -p /opt/relution/log /opt/relution/branding
    sudo chown -R relution:relution /opt/relution/log /opt/relution/branding
    sudo chown root:relution /opt/relution/application.yml && sudo chmod 640 /opt/relution/application.yml
    

    If the service user relution cannot read application.yml, Relution does not start. If the log directory was moved to a different location via the environment variable RELUTION_LOGS, relution needs write permissions there. The branding directory is managed by Relution itself: if a branding is active, it is emptied and refilled on every start, and custom files in it are not retained.

    Starting with Relution 26.5.8, Relution logs an error on startup for each directory (portal, teacher, bin, lib) in which the service user can write (Installation path … is writable for the user running Relution). This affects installations whose directory previously belonged entirely to relution (chown -R relution:relution). The startup is not prevented. Once the permissions have been set as above, the message no longer appears on the next start.

  8. Starting the Relution service:

    sudo systemctl start relution
    
  9. Waiting until the Relution service has started. The state of the service is shown by systemctl status relution. The progress of the startup is shown in the log file relution.log; its location is described under Relution Logs →.

    The database will be updated to the latest version. Updating the database may take some time.


Native Installation Windows

  1. Download of the latest Relution package: Latest Relution Package →.

  2. Stopping the Relution service via the Services console (services.msc).

  3. Backup of the existing installation directory to relution_bak_.

  4. Extraction of the zip package; the folder relution it contains is placed as the new installation directory <INSTALL_DIR> (in the same location as the previous installation directory).

  5. Copying the configuration file from the backup relution_bak_/application.yml to <INSTALL_DIR>/application.yml.

  6. Starting the Relution service.

  7. Waiting until the Relution service has started. The log is written to the file relution.log; its location is described under Relution Logs →.

    The database is being updated to the latest version. Updating the database may take some time.

Known error messages

The following message when starting the Relution service can indicate that the Java version used is too low:

The service "Relution" on "Local Computer" could not be started
The service did not return an error.
It may be an internal Windows error or an internal service error.
Please contact your system administrator if the problem persists.

To fix this, the current Java 21 LTS is downloaded and installed from the following link: Adoptium Java →

During installation, the option for setting the JAVA_HOME variable must be enabled (in the Adoptium installer, e.g., Set JAVA_HOME variable). Otherwise, the system variable JAVA_HOME must be set manually afterwards to the directory of the new Java installation (see the section “Check if JAVA_HOME is set” under Deprecated: Windows Server 2019 →). If JAVA_HOME still points to the old Java version, the service still does not start.

After installation, the Relution service is restarted.


Checklist after the update

  • Do Relution apps on mobile devices also need an update?
  • Do custom CSS files need an update?
  • Are enrolled devices still accessible?
    • Sending a Refresh device info action to a device
  • Is enrollment still working for the different platforms?

Update from 26.0.x to 26.1 or later fails (MariaDB)

Problem: When updating from Relution 26.0.x to Relution 26.1 or later, the automatic database update with MariaDB fails with the error message Cannot change column 'action_uuid'. The server logs show the following error:

java.sql.SQLException: (conn=1539) Cannot change column 'action_uuid': used in a foreign key constraint 'fk_mdm_sb_actn_action_uuid'

Cause: During the Relution update, Liquibase tries to add a NOT NULL constraint to a table column that is defined as a foreign key. With MariaDB versions 10.11.5–10.11.7, this fails with MariaDB error 1832, a known MariaDB issue (MDEV-34392 →).

Solution: MariaDB must be updated before the Relution update. A current LTS version is recommended (10.11.18, 11.4.12, 11.8.8 or 12.3.2). Before updating MariaDB, a full backup of the database must be created.

As MariaDB is only supported as a database server until the end of 2027, a migration to PostgreSQL → (version 14 or later) is recommended in the long term.

Note: Update from Relution 5.x to 26.1 or later

When updating from Relution 5.3x.x to Relution 26.1 or later, it is mandatory to first upgrade to Relution 5.35.4 and then to the intermediate version Relution 26.0.3. Relution 26.0.3 must be started at least once so that the database migration (including the device groups) is completed on startup. If this intermediate step is missing or the migration has not been completed, the database update of the newer version aborts with the following message:

An update from version 5 to 26.1+ detected. To proceed, it's necessary to install and start Relution version 26.0.0 at least once.

Relution 26 requires MariaDB 10.11 or later or PostgreSQL 14 or later. With an older database version or with Microsoft SQL Server or MySQL, the server shuts down on startup (see Migration from MSSQL to MariaDB →).

Docker

For Docker installations, the version can be specified directly in the compose.yaml. Each step is carried out with docker compose pull and docker compose up --detach as shown above.

  1. First, the update to the latest released 5.x version:

    relution:
      image: relution/relution:5.35.4
    
  2. Then, the update to the latest released 26.0.x version:

    relution:
      image: relution/relution:26.0.3
    

    Relution is started, and the server must have started up completely before the next step.

  3. After a successful update, the version can be set back to latest to automatically use the most recent available version:

    relution:
      image: relution/relution:latest
    

Linux and Windows (native)

For native installations on Linux and Windows, the process is the same as with Docker:

  1. Update to Relution 5.35.4
  2. Update to Relution 26.0.3; Relution is started and must start up completely
  3. Update to the latest version (latest)

Relution 5.35.4 requires Java 17; from Relution 26.0 on, Java 21 is required. Java 21 is therefore installed before the update to Relution 26.0.3; on Windows, JAVA_HOME must then point to the new Java installation (see Known error messages →).

Downloads

How helpful was this article?