> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/server/getting-started/installation/devolutions-server-upgrade.md). Agents can also search and read this documentation through its [MCP server](https://docs.devolutions.net/~gitbook/mcp).

# Devolutions Server upgrade

Upgrade Devolutions Server safely by preparing accounts, backing up the database and encryption keys, and following the Console update workflow.

A Devolutions Server instance hosted on Windows (IIS or Kestrel) is upgraded with the Devolutions Server Console. [Install the proper version of the Devolutions Server Console](https://devolutions.net/server/download/) before upgrading the Devolutions Server web application: the Devolutions Server Console refuses to install a Devolutions Server version that requires a newer or an older Devolutions Server Console, with the message "Console current version is {0}. You need to update to version {1} or above to install Devolutions Server version {2}." or "Console current version is {0}. You need to uninstall the Console and install a Console with version {1} to install Devolutions Server version {2}."

The following steps are intended for single-server setups or basic [topologies](https://docs.devolutions.net/server/overview-of-devolutions-server/topologies.md). If the environment differs from these configurations, please [contact us](mailto:service@devolutions.net) for guidance with the Devolutions Server upgrade. Our support team can also book a session to assist you during the upgrade; their checklist is in [Upgrade process list](https://docs.devolutions.net/server/knowledge-base/how-to-articles/upgrade-process-list.md).

For Linux and containers, see [Install Devolutions Server for Linux](https://docs.devolutions.net/server/knowledge-base/how-to-articles/install-devolutions-server-for-linux.md) and [Deploy Devolutions Server with Docker](https://docs.devolutions.net/server/knowledge-base/how-to-articles/devolutions-server-docker-deployment.md).

### Workflow

Recommendations and steps to follow before proceeding with the upgrade:

* We strongly recommend testing the upgrade process in a [staging or test environment](https://docs.devolutions.net/server/knowledge-base/how-to-articles/create-server-staging-instance.md) before upgrading the production instance. If a staging environment is not available, consider a limited roll-out to ensure that the workflow functions as expected before impacting the entire team.
* Make sure you have a local Devolutions Server administrator account exempted from MFA in case the primary authentication fails.
* [Enable the emergency login](https://docs.devolutions.net/server/knowledge-base/how-to-articles/enable-emergency-login-code-authentication.md) for your administrator accounts.
* Remove any password set on the Devolutions Server Console for the upgrade. Passwords can be reset afterwards.
* The upgrade process is performed with the Devolutions Server Console. Be sure to upgrade to the latest version compatible with the target Devolutions Server version planned for installation.
* When Integrated Security is used for database connections, the upgrade must be performed with a Windows user account that has full rights to the database, such as [VaultDBOwner](https://docs.devolutions.net/server/knowledge-base/knowledge-base-articles/pre-deployment-account-survey.md#windows-domain-accounts-integrated-authentication). Ensure that the IIS Application Pool Identity and Scheduler accounts have adequate privileges on the database. You may have to manually apply the permissions on the database. See the [Generate script for database permissions](https://docs.devolutions.net/server/knowledge-base/how-to-articles/generate-a-script-for-database-permissions.md) article for more information.
* For instances of Devolutions Server version 2019.2.9.0 or earlier with a configured [security provider](https://docs.devolutions.net/server/knowledge-base/how-to-articles/remove-the-security-provider.md), specific operations must be performed prior to the upgrade. [Contact us](mailto:service@devolutions.net) for further details. When an instance uses a security provider, the Devolutions Server Console warns before the upgrade: "Your instance is using a Security Provider. It is highly recommended to remove the Security Provider and implement Encryption at REST." The full message continues with "Refer to this KB article for more information. Do you want to update?"
* When Active Directory authentication is configured, the domain functional level must be Windows Server 2012 R2 or higher (the Devolutions Server Console checks it when the installed instance is older than 2022.1.9.0). Otherwise the upgrade stops with "The functional level of one of your domains is too low and cannot be used as an Identity Provider."
* We recommend backing up the encryption keys before any operation that could modify database information and before upgrading Devolutions Server. The encryption key file should be securely stored to prevent data loss in the event that Devolutions Server needs to be restored.

#### Preparation

1. Perform a full backup of the database, and ensure that measures are in place to prevent the backup file from being deleted by a maintenance plan. In SQL Server Management Studio, the ***Copy-only backup*** option gives a standalone backup that is not part of a backup set. The Devolutions Server Console does not back up the database: before the update, it asks "A database backup is strongly recommended before updating. If you don’t have a recent backup, you can safely cancel the update to try again once it is done."
   * The Devolutions Server Console backs up the configuration files and the installation folder of the instance to its installation backup folder (the `DVLS` folder of the temporary folder `%TEMP%` of the Windows account that runs the Devolutions Server Console, opened with ***Support*** – ***Open installation backup folder***). This folder contains configuration details of the Devolutions Server instance prior to the upgrade. After a successful upgrade, ensure that its contents are either moved to a secure location or deleted.
   * Administrators who independently upgrade their copies of Remote Desktop Manager may trigger schema updates required for new features. This can prevent other users from accessing the system. It is strongly recommended to set both the maximal and minimal versions allowed to connect to the instance, in ***Administration*** – ***System settings*** – ***Version management***, and to raise the ***Maximal version*** to the version that goes with the new Devolutions Server version.
   * Ask users to switch Remote Desktop Manager to [offline mode](https://docs.devolutions.net/rdm/getting-started/workspaces/offline-mode) or to sign out of the web interface.
   * Make sure that no antivirus scans the installation folder of the instance and the folder of the Devolutions Server Console during the upgrade.
   * If Integrated Security is used for database connections, as configured in the [Database](https://docs.devolutions.net/server/devolutions-server-console/devolutions-server-settings/database.md) tab, ensure that the IIS Application Pool Identity and Scheduler accounts have sufficient privileges on the database.
2. Archive the contents of the web application folder containing the Devolutions Server instance, and store it in a secure location.
3. Install the appropriate version of the Devolutions Server Console. The required client version for each Devolutions Server version can be found in the corresponding sub-topics.
4. Go to the ***Support*** tab and click ***Check for updates***.
5. Install the necessary updates, if any.
6. Click ***IIS diagnostics*** and review the IIS prerequisites.
7. Click the ***Install prerequisites*** button if any are missing. For an IIS instance, the Devolutions Server Console also checks the prerequisites when the update starts.
8. Run the Devolutions Server Console with elevated privileges.

#### Upgrade

1. Open the [Devolutions Server Console](https://docs.devolutions.net/server/devolutions-server-console.md).
2. Select the instance to be upgraded.
3. Set the instance offline with the ***Go offline*** button (IIS instances). Devolutions Server then shows an offline page (`app_offline.htm`) instead of the web interface. In a high availability or load-balancing topology, all instances must be set offline before initiating the upgrade process.
4. Click ***Update***. The ***Update Server Instance*** wizard opens.
5. On the ***Select update source file*** page, select the ***Source***: ***Download version***, with the version to install in the list (***Current (Latest)***, and the ***Beta*** or ***Extended maintenance*** version when it differs from the current version), or ***Install from ZIP file*** with the path to a downloaded ZIP file. The ZIP file is typically used for beta releases or earlier versions. A version older than the installed one asks for a confirmation: "You are downgrading from v{0} to v{1}. Downgrading may cause data loss. Please ensure you have restored your database backup before proceeding. Do you want to proceed with the downgrade?"
6. Click ***Next***. Depending on the instance, the wizard shows the ***Devolutions Server access URI*** page (when the instance has no access URI yet; see [Access URI format](https://docs.devolutions.net/server/knowledge-base/knowledge-base-articles/access-uri-format.md)) and the ***Add the missing license files*** page (when licenses must be migrated).
7. Review the ***Summary***, including the Remote Desktop Manager version required by the new Devolutions Server version, and click ***Update*** once details have been confirmed. By clicking ***Update***, you confirm that you have read and accepted the Software License and Subscription Agreement. The summary reads "If you are using RDM as the client, RDM version {0} is required for this DVLS version." The backup confirmation that follows ends with "Do you want to update to version {0} right now?"

When the update is done, the log shows "Upgrade completed successfully." and the instance is back online. The log also warns: "Starting the server may take longer than usual if a data migration is required. This means that you may have to wait before the web page is available." The same update runs from the [command line interface](https://docs.devolutions.net/server/knowledge-base/knowledge-base-articles/devolutions-server-console-command-line-interface.md) with `server upgrade`.

The ***Add the missing license files*** page is shown for an instance older than 2025.1 whose licenses have no license file. It works as in [Devolutions Server instance creation](https://docs.devolutions.net/server/getting-started/installation/devolutions-server-instance-creation.md#advanced-installation).

##### Confirmations in special cases

<table><thead><tr><th width="330">MESSAGE</th><th>WHEN</th></tr></thead><tbody><tr><td>"You are downgrading from v{0} to v{1}. …"</td><td>The selected version is older than the installed one. Restore the database backup taken with the older version first. From the command line, the answer "no" stops with "Downgrade cancelled by user."</td></tr><tr><td>"The digital signature could not be verified. A file for which you don’t know the source should not be trusted and installed. Do you want to continue?"</td><td>The selected ZIP file is not signed by Devolutions.</td></tr><tr><td>"Upgrading to version 2022.1.13.0 or newer will require a manual operation to avoid Microsoft authentication issues. …"</td><td>The instance is older than 2022.1.13.0 and uses Microsoft authentication. Update the redirect URI of the Microsoft Entra ID application to <code>https://&#x3C;access URI>/api/external-provider-response</code>; see <a href="https://docs.devolutions.net/server/web-interface/administration/configuration/server-settings/general/authentication/microsoft-authentication-with-devolutions-server.md">Microsoft authentication with Devolutions Server</a>. This message replaces the backup confirmation.</td></tr><tr><td>"IMPORTANT SECURITY UPDATE" or "Security Notice: Please Review Privilege Set Configurations"</td><td>The instance runs a version affected by the security advisory <a href="https://devolutions.net/security/advisories/DEVO-2024-0002">DEVO-2024-0002</a> (users added to Microsoft Entra ID groups by just-in-time elevation) or <a href="https://devolutions.net/security/advisories/DEVO-2025-0008">DEVO-2025-0008</a> (provider privilege sets with all groups selected), and the database contains affected items. The message lists them; review them after the update. The <em><strong>Summary</strong></em> page shows the same list, and the update asks "Please confirm you have read and understood the security update message."</td></tr><tr><td>"Starting with Devolutions Server Version 2021.2.0 and greater the product will send anonymous usage data to Devolutions. It can be disabled or enabled in the Server settings in the features section."</td><td>Update of an instance older than 2021.2 that has internet access turned on.</td></tr></tbody></table>

The process begins: the Devolutions Server Console stops the instance and the Devolutions Scheduler service, backs up the configuration and installation files, deploys the new version, upgrades the database, restores the configuration, the custom folders and the encryption keys file, applies the least permissions of the web application and Devolutions Scheduler service accounts on the database (SQL Server), then restarts the instance and the Devolutions Scheduler service. It also raises the compatibility level of a SQL Server database to the highest level that the SQL Server supports, which must be at least 140 (SQL Server 2017). Upon completion, a confirmation message indicates that the operation was successful. If a step fails, the Devolutions Server Console restores the installation backup and restarts the instance.

In detail, in order, the Devolutions Server Console:

1. Checks the settings, the instance, the downgrade, the Devolutions Server Console version, the domain functional level, its write permission on the installation folder, the security provider and the license files.
2. On SQL Server, raises the compatibility level of the database; the update fails when it cannot reach 140: "SQL Compatibility level must be equal or greater than 140".
3. Stops the IIS application pool and updates it (IIS), or stops the Windows service and installs or repairs the ASP.NET Core Hosting Bundle when needed (Kestrel).
4. Stops the Devolutions Scheduler service.
5. Backs up the configuration and the installation folder to its installation backup folder.
6. Downloads or unzips the new version, removes the previous files and copies the new ones.
7. Upgrades the database.
8. Restores the custom folders (`Custom` and `Templates\Events\Custom`), the anomaly detection folder (`PythonAnomalyDetection`), `appsettings.json` and `encryption.config`.
9. Restores the web settings of the previous version: the connection strings, the authentication settings of `web.config`, the custom HTTP response headers, the proxy environment variables (`HTTP_PROXY`, `HTTPS_PROXY`, `ALL_PROXY`, `NO_PROXY`, IIS only), the client certificate negotiation and the Devolutions Gateway rewrite rule. Custom headers that Devolutions Server manages itself are not carried over: `Content-Security-Policy`, `X-Frame-Options`, `X-Content-Type-Options`, `Strict-Transport-Security`, `X-XSS-Protection` and `Referrer-Policy`.
10. Grants the web application and Devolutions Scheduler accounts read access to the new `encryption.config` and removes the access of the Everyone, Authenticated Users and Users groups; sets the rights on `appsettings.json` and the log folder. Grant again any other permission you had added on `encryption.config`.
11. Saves the release type and the access URIs, and allows the IIS feature delegation (IIS).
12. On SQL Server, applies the least permissions of the web application and Devolutions Scheduler accounts on the database, when these accounts differ from the account that manages the database. The managing account must be in `db_owner`; otherwise the log shows "Could not apply the least permissions" and the update continues. In Devolutions Server 2027.1 and later, PostgreSQL databases get them too.
13. Starts the Devolutions Scheduler service and the instance.

When a step fails, the log shows "Upgrade failed. Initiating rollback...". The database is not restored: restore your database backup if the database upgrade had started. The installation backup folder contains the configuration of the instance before the upgrade, connection strings included.

When the Devolutions Server Console cannot remove the previous files of the installation folder because running processes lock them, it opens a file lock resolution window: "File Locks Detected - Upgrade Cannot Continue", with the locked files, the processes that lock them and a summary such as "3 files locked by 1 processes.". The window lists each locked file with its ***Filename***, ***Process name***, ***Process ID*** and ***Service name***. ***Terminate and continue*** ends the locking processes and continues the upgrade, ***Retry*** checks the locks again after you closed the processes yourself, and ***Cancel*** stops the upgrade ("Failed to resolve file locks, cannot proceed with upgrade"). The [command line interface](https://docs.devolutions.net/server/knowledge-base/knowledge-base-articles/devolutions-server-console-command-line-interface.md) (`server upgrade`) asks the same choice in the console.

##### Messages

<table><thead><tr><th width="330">MESSAGE</th><th>CAUSE AND FIX</th></tr></thead><tbody><tr><td>"Some licenses are missing JWT tokens. Please import them before updating the server."</td><td>Some licenses have no license file. Add them on the <em><strong>Add the missing license files</strong></em> page.</td></tr><tr><td>"Unable to save migrated licenses. The database seems to be write-protected or unavailable."</td><td>The converted licenses could not be saved. Check that the database is available and writable.</td></tr><tr><td>"Could not save licenses. Please restore your database and try again."</td><td>Saving the converted licenses failed during the update. Restore the database backup, then update again.</td></tr><tr><td>"Unable to stop the IIS Application Pool" or "Unable to start the IIS Application Pool"</td><td>Check the application pool in IIS Manager and its identity.</td></tr><tr><td>"Check the Windows Event Log (Application) for the underlying reason."</td><td>Kestrel: the Windows service of the instance did not start.</td></tr><tr><td>"Database upgrade failed. Check the logs for errors."</td><td>The database could not be upgraded. Check the database permissions of the account that runs the Devolutions Server Console, then the log.</td></tr><tr><td>"Error replacing web site files"</td><td>The new files could not be copied. Check the antivirus and the locked files.</td></tr><tr><td>"Installation zip file is empty or it doesn’t contain the Devolutions Server website."</td><td>The ZIP file is not a Devolutions Server package.</td></tr><tr><td>"Unable to download the file"</td><td>The download failed. Use <em><strong>Install from ZIP file</strong></em>.</td></tr><tr><td>"Access URI cannot be empty."</td><td>The instance has no access URI. Enter one on the <em><strong>Devolutions Server access URI</strong></em> page.</td></tr><tr><td>"Current Instance is invalid"</td><td>The Devolutions Server Console could not read the configuration of the instance.</td></tr></tbody></table>

#### Validation

* Have a user upgrade their workstation with the version of Remote Desktop Manager supported by the Devolutions Server version and test connectivity with the server instance.
* Ensure that computers running PowerShell scripts update the Devolutions.PowerShell module to the version supported by the Devolutions Server version, and verify the script results.
* Once testing is complete and satisfactory, instruct the rest of the staff to upgrade to the same version of Remote Desktop Manager.
* Update the maximal and minimal versions of Remote Desktop Manager in ***Administration*** – ***System settings*** – ***Version management***.
* In the Devolutions Server Console, check that the instance is online, then open it with ***Navigate to the website*** and sign in.
* Update Devolutions Gateway if needed, from the Devolutions Server Console (***Companions*** – ***Devolutions Gateway*** – ***Update***) or from the web interface. See [Update Devolutions Gateway](https://docs.devolutions.net/gateway/for-administrators/install/update).
* Export the encryption keys again and keep them in a safe place for disaster recovery. See [Manage encryption keys](https://docs.devolutions.net/server/knowledge-base/how-to-articles/manage-encryption-keys.md).

#### Post update issues

If any issues occur after updating your Devolutions Server instance, follow the steps in [Restore a Devolutions Server instance](https://docs.devolutions.net/server/knowledge-base/how-to-articles/restore-a-devolutions-server-instance.md) to return it to its previous state, or contact our support team at <service@devolutions.net>. To go back to the previous version, see [Roll back to a previous installation of Devolutions Server](https://docs.devolutions.net/server/knowledge-base/how-to-articles/roll-back-to-a-previous-installation-of-devolutions-server.md). A previous version can also be selected in the update wizard: it asks you to approve the downgrade, and the database must first be restored from a backup taken with that version.

#### See also

* [Devolutions Academy – Updating Devolutions Server](https://academy.devolutions.net/student/path/2942210/activity/4493539)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.devolutions.net/server/getting-started/installation/devolutions-server-upgrade.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
