> 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/agent/guides/gateway-updates.md). Agents can also search and read this documentation through its [MCP server](https://docs.devolutions.net/~gitbook/mcp).

# Keep Devolutions Gateway up to date

Update Devolutions Gateway and the Devolutions Cloud Services from Devolutions Server or Devolutions Cloud through Devolutions Agent, and schedule updates.

Devolutions Gateway cannot replace its own running service. **Devolutions Agent, installed on the same Windows machine with its&#x20;*****Devolutions Gateway Updater*****&#x20;feature, installs the update for it.** You start the update from Devolutions Server, Devolutions Cloud or Remote Desktop Manager, for one gateway or for several at once, and Devolutions Agent downloads the package from Devolutions, checks it and installs it. The same updater also updates the Devolutions Cloud Services and Devolutions Agent itself.

Remote updates through Devolutions Agent are available for Devolutions Gateway on Windows only. Update a Devolutions Gateway on Linux or in Docker with your package manager or a new image; see [Update Devolutions Gateway](https://docs.devolutions.net/gateway/for-administrators/install/update).

## Requirements

<table><thead><tr><th width="280">REQUIREMENT</th><th>DETAILS</th></tr></thead><tbody><tr><td><strong>Devolutions Agent on the gateway machine</strong></td><td>Installed on the Windows machine that runs Devolutions Gateway, with the <em><strong>Devolutions Gateway Updater</strong></em> feature (selected by default). Devolutions Agent 2025.1.0 or later. Devolutions Gateway reports the agent version; Devolutions Server and Devolutions Cloud read it from the gateway.</td></tr><tr><td><strong>Devolutions Gateway version</strong></td><td>2025.1.0 or later to update from Devolutions Server; 2025.1.10 or later to update from Devolutions Cloud.</td></tr><tr><td><strong>Devolutions Cloud only: the PAM Service</strong></td><td>The Devolutions Cloud Services must be installed and running on premises, with a PAM Service that can reach the gateway. Devolutions Cloud sends the update request to the PAM Service, which passes it to the gateway. See <a href="https://docs.devolutions.net/pam/pam-with-devolutions-cloud/install-the-devolutions-cloud-services-to-enable-pam-and-encryption-integration">Install the Devolutions Cloud Services</a>.</td></tr><tr><td><strong>Internet access from the gateway machine</strong></td><td>Outbound HTTPS to <code>devolutions.net</code> (version information) and <code>cdn.devolutions.net</code> (packages). Devolutions Agent uses the system proxy by default; see the <code>Proxy</code> section of <a href="https://docs.devolutions.net/agent/reference/configuration.md">Configuration file (agent.json)</a>.</td></tr><tr><td><strong>Devolutions Gateway service account</strong></td><td>The built-in NETWORK SERVICE account (default), the virtual account <code>NT SERVICE\DevolutionsGateway</code>, or a group managed service account (a domain account whose name ends with <code>$</code>). Local System and Local Service are refused ("unsupported Gateway service account" followed by the name). Any other account is treated as an account that signs in with a password, which an unattended update cannot keep: update that gateway manually.</td></tr></tbody></table>

## Update from Devolutions Server

1. In the Devolutions Server web interface, go to ***Administration*** – ***Devolutions Gateway***.
2. For one gateway, open its row menu and select ***Update version***. For several gateways or farms, turn on ***Bulk update***, select them, then click ***Update***. For a farm, the row menu ***Update version*** updates the members that can be updated.
3. In ***Version to install***, keep the latest version or enter a specific version.
4. Under ***Update options***, optionally select ***Defer until no active sessions*** or ***Defer based on time*** and choose a date and time. "The update will be triggered by whichever condition is met first."
5. Click ***Update now*** or ***Defer update***.

If sessions are open on a gateway, Devolutions Server asks "Some instances have active sessions. Do you want to proceed with the update?" before an immediate update. The ***Version*** column then shows ***Update pending***, ***Updating to {0}*** or ***Failed update***. To stop a pending or deferred update, click ***Cancel update*** in the ***Version*** column or in the update dialog, and confirm "Do you want to cancel the update?".

Devolutions Server considers the update done when the gateway reports the requested version within 5 minutes; otherwise it shows "The server is not responding; please try again later." Pending and deferred updates are checked every minute.

The ***Update version*** command is unavailable for a gateway when Devolutions Agent does not run on its machine ("Devolutions Agent must be installed to update through DVLS.") or when the gateway is too old ("Devolutions Gateway must be on version {0} or later to update through DVLS."). The ***Diagnostic*** dialog of the gateway shows ***Agent installed*** and ***Agent version***.

Remote Desktop Manager connected to a Devolutions Server workspace offers the same update on the ***Update*** tab of ***Administration*** – ***Devolutions Gateway***.

### Devolutions Server activity logs

<table><thead><tr><th width="120">EVENT ID</th><th>MESSAGE</th></tr></thead><tbody><tr><td>121001</td><td>"User {UserName} requested an update for Devolutions Gateway {GatewayName} to version {Version}."</td></tr><tr><td>121002</td><td>"Devolutions Gateway {GatewayName} update to version {Version} has started."</td></tr><tr><td>121003</td><td>"Devolutions Gateway {GatewayName} update to version {Version} failed. Reason: {Reason}"</td></tr><tr><td>121004</td><td>"Devolutions Gateway {GatewayName} update to version {Version} succeeded."</td></tr><tr><td>121005</td><td>"User {UserName} canceled the Devolutions Gateway {GatewayName} update to version {Version}."</td></tr><tr><td>121006</td><td>"User {UserName} failed to cancel the Devolutions Gateway {GatewayName} update to version {Version}. Reason: {Reason}"</td></tr><tr><td>121007</td><td>"User {UserName} request to update the Devolutions Gateway {GatewayName} to version {Version} failed. Reason: {Reason}"</td></tr></tbody></table>

## Update from Devolutions Cloud

1. In Devolutions Cloud, go to ***Administration*** – ***Gateways***.
2. For one gateway, click ***More*** on its row and select ***Update version***. For several gateways, use ***Bulk update*** and select them.
3. In ***Version to install***, keep the latest version or enter a specific version.
4. Under ***Update options***, optionally select ***Defer until no active sessions*** or ***Defer based on time***.
5. Click ***Update now*** or ***Defer update***.

The gateway row then shows "Pending update to version {0}", "Deferred until no session active", "Update will start after {0}" or "Gateway update to version {0} in progress". Rows of gateways without Devolutions Agent show "Devolutions Agent is not installed". If the PAM Service cannot be reached, Devolutions Cloud shows "Could not reach the PAM Service. Try restarting the service." The PAM Service gives the update 8 minutes to finish. After a failure, the row shows "Previous Gateway update failed, view Devolutions Cloud service logs for more information".

## Update the Devolutions Cloud Services

The PAM Service of the Devolutions Cloud Services can also update itself through Devolutions Agent installed on the same machine. In Devolutions Cloud, in the update dialog of the service under ***Administration*** – ***Application services***, select ***Enable automatic updates for this service***, or click ***Update service to latest version***. The service waits for its active tasks to finish before it restarts. When an update fails, Devolutions Cloud shows "The update for the instance ({0}) has failed. Review the Devolutions Agent logs for more information". See [Application services](https://docs.devolutions.net/cloud/web-interface/administration/configuration-and-security/application-services).

When Devolutions Agent updates the Devolutions Cloud Services, it keeps the installed services (PAM, encryption, reporting) and restarts the ones that were running.

## What Devolutions Agent does on the gateway machine

1. Devolutions Gateway receives the update request and writes it to `C:\ProgramData\Devolutions\Agent\update.json`. Devolutions Agent gives the gateway service account permission to write this file, and checks it every 3 seconds.
2. Devolutions Agent reads the latest versions from Devolutions and downloads the Windows Installer package from `cdn.devolutions.net`. A package from any other address is refused.
3. It checks the SHA-256 hash of the package and checks that the package is signed by Devolutions.
4. It installs the package silently. For Devolutions Gateway it keeps the service start mode and the service account, and does not restart the machine.
5. It writes the installed versions, and the last error of each product if any, to `C:\ProgramData\Devolutions\Agent\update_status.json`, which Devolutions Gateway reports to Devolutions Server and Devolutions Cloud. The status is refreshed at start-up, after each update, and every 5 minutes.

If the installed version is already the requested one, nothing is installed. If an older version is requested, Devolutions Agent uninstalls the product and installs the requested version; a custom feature selection of that product can be lost. When Devolutions Agent itself must be updated with other products, its own update runs last.

Every step is written to the Devolutions Agent log, `C:\ProgramData\Devolutions\Agent\agent.*.log`. See [Logs and Windows Event Log](https://docs.devolutions.net/agent/help/troubleshooting/logs.md).

## Schedule automatic updates

Devolutions Agent can check for new versions on its own, inside a maintenance window, with the `Updater.Schedule` section of `C:\ProgramData\Devolutions\Agent\agent.json`. Devolutions Gateway can also change this schedule, and Devolutions Agent then saves the new schedule to `agent.json`. Restart the service after you edit the file.

<table><thead><tr><th width="260">SETTING</th><th>DESCRIPTION</th></tr></thead><tbody><tr><td><code>Updater.Schedule.Enabled</code></td><td><code>true</code> to check for updates automatically. Default <code>false</code>.</td></tr><tr><td><code>Updater.Schedule.Products</code></td><td>The products to check: <code>Gateway</code>, <code>HubService</code> (Devolutions Cloud Services), <code>Agent</code>.</td></tr><tr><td><code>Updater.Schedule.UpdateWindowStart</code></td><td>Start of the maintenance window, in seconds after midnight, local time. Default <code>7200</code> (2:00 AM).</td></tr><tr><td><code>Updater.Schedule.UpdateWindowEnd</code></td><td>Optional end of the window, in seconds after midnight, local time. When it is smaller than the start, the window crosses midnight.</td></tr><tr><td><code>Updater.Schedule.Interval</code></td><td>Seconds between two checks inside the window. Default <code>0</code>: one check at the start of the window.</td></tr></tbody></table>

```json
{
  "Updater": {
    "Enabled": true,
    "Schedule": {
      "Enabled": true,
      "Products": [ "Gateway", "Agent" ],
      "UpdateWindowStart": 7200,
      "UpdateWindowEnd": 14400,
      "Interval": 0
    }
  }
}
```

## Messages

<table><thead><tr><th width="360">MESSAGE</th><th>WHAT TO DO</th></tr></thead><tbody><tr><td>"Devolutions Agent is not installed" (Devolutions Server or Devolutions Cloud)</td><td>Install Devolutions Agent with the <em><strong>Devolutions Gateway Updater</strong></em> feature on the gateway machine, check that its service runs, then refresh the list.</td></tr><tr><td>"Gateway installed version doesn’t support remote updates"</td><td>Update this gateway manually once to a version that supports remote updates.</td></tr><tr><td>"Gateway is already at the requested version"</td><td>Nothing to do.</td></tr><tr><td>"Gateway update is already running"</td><td>Wait for the running update to finish.</td></tr><tr><td>"`{product}` service account `{account}` logs on with a password that an unattended upgrade cannot supply; update manually with P.SERVICEPASSWORD or switch to a passwordless account" (Devolutions Agent log)</td><td>Update this gateway manually with its installer, or change its service account to one that signs in without a password.</td></tr><tr><td>"download URL for `{product}` is not from official CDN: `{url}`" (Devolutions Agent log)</td><td>The package address is not a Devolutions download server. The update is refused.</td></tr><tr><td>"integrity check for downloaded `{product}` artifact has failed, expected hash: `{expected_hash}`, actual hash: `{actual_hash}`" (Devolutions Agent log)</td><td>The download was damaged or changed. Check the proxy or security software between the machine and <code>cdn.devolutions.net</code>, then retry.</td></tr><tr><td>"MSI for `{product}` is signed with invalid non-Devolutions certificate. Certificate thumbprint: `{thumbprint}`" (Devolutions Agent log)</td><td>The package is not signed by Devolutions. The update is refused.</td></tr><tr><td>"skipping {product} update: agent update is in progress" (Devolutions Agent log)</td><td>Devolutions Agent is updating itself. Retry after it finishes.</td></tr><tr><td>"failed to install `{product}` MSI. Path: `{msi_path}`" (Devolutions Agent log)</td><td>Windows Installer failed. Read the installation log written next to the downloaded package in the Windows temporary folder, and the Devolutions Agent log.</td></tr><tr><td>"could not find required file in productinfo.json for product `{product}` (arch: {arch}, type: {file_type})" (Devolutions Agent log)</td><td>No package exists for this product, version and architecture. Check the requested version.</td></tr></tbody></table>

## Next

* [Update and uninstall Devolutions Agent](https://docs.devolutions.net/agent/for-administrators/deploy/update-and-uninstall.md)
* [Gateway settings in Devolutions Server](https://docs.devolutions.net/server/web-interface/administration/modules/gateway)
* [Version requirements](https://docs.devolutions.net/agent/reference/version-requirements.md)


---

# 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/agent/guides/gateway-updates.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.
