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

# Devolutions Gateway troubleshooting

Troubleshoot Devolutions Gateway: health check, logs, diagnostics, a service that won't start, certificate, key, clock and recording problems.

Start here when sessions through ***Devolutions Gateway*** fail, when Devolutions Server or Devolutions Cloud shows a gateway as unreachable or out of sync, or when the Devolutions Gateway service doesn't start. Each section gives a check and the fix, the most common problems first.

## Check that Devolutions Gateway is alive

1. Open a web browser on a computer that should reach Devolutions Gateway.
2. Go to `https://<gateway host>:<port>/jet/health`, for example `https://gateway.example.com:7171/jet/health`. Use `http://` if the listener doesn't use TLS.
3. A working Devolutions Gateway answers "Devolutions Gateway "{hostname}" is alive and healthy.". With the HTTP header `Accept: application/json`, it returns its ID, host name and version instead.

This address needs no token. If the page doesn't load, the service isn't running, a firewall blocks the port, or the address or port is wrong: see [Ports and firewall](https://docs.devolutions.net/gateway/reference/ports-and-firewall.md). If the browser warns about the certificate, see the certificate sections below.

From the products:

* **Devolutions Server**: ***Administration*** – ***Devolutions Gateway***, then ***Ping*** in the menu of the gateway row, or ***Scan*** in the toolbar to check every gateway. Result: "Devolutions Gateway '{name}' is alive and healthy." or "Could not ping your Devolutions Gateway "{name}".".
* **Devolutions Cloud**: ***Administration*** – ***Devolutions Gateway***. The health indicator of each gateway shows ***Is online***, ***Unreachable Devolutions Gateway*** or ***Configuration is not in sync***. The check runs from your browser, so the gateway URL must be reachable from your computer. ***Test connection*** in the gateway editor also tests from the Devolutions Cloud PAM service.
* **Remote Desktop Manager**: ***Administration*** – ***Devolutions Gateway*** – ***Ping***, or ***Check health*** in the ***VPN/tunnel/gateway*** section of an entry.

## Read the logs and diagnostics

### From Devolutions Server

1. In the Devolutions Server web interface, go to ***Administration*** – ***Devolutions Gateway***.
2. Open the menu of the gateway row.
3. Select ***Logs*** to read, search, copy or download the log files of the gateway. ***Log file*** lists the files, the most recent first.
4. Select ***Diagnostic*** to see these checks:

<table><thead><tr><th width="280">ROW</th><th>WHAT TO CHECK</th></tr></thead><tbody><tr><td><strong>Current version</strong></td><td>Version of Devolutions Gateway. "&#x3C; 2022.1.1" means the gateway doesn't report it.</td></tr><tr><td><strong>Gateway health</strong></td><td>Whether Devolutions Server reaches the gateway.</td></tr><tr><td><strong>Public key configuration</strong></td><td>Whether the gateway accepts the tokens of Devolutions Server: <code>provisioner.pem</code> on the gateway must be the public key of Devolutions Server.</td></tr><tr><td><strong>Clock difference</strong></td><td>Difference between the clocks of Devolutions Server and Devolutions Gateway, in seconds. Over 30 seconds, Devolutions Server warns.</td></tr><tr><td><strong>TCP listening hostname configuration</strong>, <strong>TCP listening port configuration</strong></td><td>Whether the TCP host name and port saved in Devolutions Server match the gateway's TCP listener.</td></tr><tr><td><strong>Revocation list in sync</strong></td><td>Whether the gateway has the latest token revocation list. Fix with <em><strong>Publish revocation list</strong></em>.</td></tr><tr><td><strong>Secure HTTPS communication enabled</strong></td><td>Whether the gateway URL uses HTTPS.</td></tr><tr><td><strong>Agent installed</strong>, <strong>Agent version</strong></td><td>Whether Devolutions Agent runs on the computer of the gateway, needed for updates from Devolutions Server.</td></tr></tbody></table>

Remote Desktop Manager shows the same information in ***Administration*** – ***Devolutions Gateway***, in the ***Logs*** and ***Diagnostics*** tabs of the details pane. In Devolutions Cloud, ***Logs*** is in the ***More*** menu of the gateway row in ***Administration*** – ***Devolutions Gateway***.

### On the computer of the gateway

If you can't download the logs from the web interface, read them in the data folder: `C:\ProgramData\Devolutions\Gateway` on Windows, `/etc/devolutions-gateway` on Linux. The files are named `gateway.*.log`. For more detail, set `"VerbosityProfile": "Debug"` (or `"Tls"` for certificate problems) in `gateway.json` and restart the service. Everything about logs and Windows events: [Logs and event IDs](https://docs.devolutions.net/gateway/help/troubleshooting/logs-and-events.md).

## The service doesn't start

1. Look for `boot.stacktrace` in the same folder as `gateway.json`. Devolutions Gateway writes the full startup error there, because a service has no console.
2. On Windows, look in ***Event Viewer*** – ***Windows Logs*** – ***Application*** for source `Devolutions Gateway`, events 1010 (configuration invalid) and 1020 (start failed). For an account sign-in problem, look in the ***System*** log for Service Control Manager events 7000, 7038 and 1069.
3. On Linux, run `journalctl -u devolutions-gateway`.
4. To see the error directly, stop the service and run Devolutions Gateway in a console as administrator: `"C:\Program Files\Devolutions\Gateway\DevolutionsGateway.exe"` on Windows, `sudo devolutions-gateway` on Linux. Errors are printed on screen. Press <kbd>Ctrl</kbd>+<kbd>C</kbd> to stop it, then start the service again.

The most common causes:

* `gateway.json` isn't valid JSON, often a single backslash in a Windows path (write `\\`): "invalid config file at {path}".
* A certificate refused by the strict checks: "found significant issues with the certificate".
* The private key or certificate file is missing or can't be read by the service account.
* A port is used by another program: "failed to bind listener: {external URL} -> {internal URL}".
* `provisioner.pem` is missing: "provisioner public key is missing (no path nor inlined data provided)".

Each message, with its fix: [Configuration file (gateway.json)](https://docs.devolutions.net/gateway/reference/configuration.md) and [Error messages](https://docs.devolutions.net/gateway/help/troubleshooting/error-messages.md). If you can't find the cause, contact [Devolutions support](https://devolutions.net/support/) or <service@devolutions.net> with `boot.stacktrace` and the logs.

## Certificate problems

When `TlsVerifyStrict` is `true` (a `gateway.json` newly generated by Devolutions Gateway sets it to `true`), Devolutions Gateway refuses a certificate without a Subject Alternative Name (SAN) or without the Extended Key Usage ***Server Authentication***, and doesn't start:

"found significant issues with the certificate: serial\_number = …, subject = …, issuer = …, not\_before = …, not\_after = …, issues = … (you can set `TlsVerifyStrict` to `false` in the gateway.json configuration file if that's intended)"

Replace the certificate with one that has a SAN matching the gateway host name and the ***Server Authentication*** EKU. Self-signed certificates that lack them are the usual cause; `New-DGatewayCertificate` creates a compliant one for tests. Keep `TlsVerifyStrict` at `true` whenever possible: macOS and Google Chrome refuse certificates that fail these checks anyway, so setting it to `false` only moves the error to the clients. When `TlsVerifyStrict` is absent or `false`, Devolutions Gateway logs "TlsVerifyStrict option is not set, defaulting to false. This may hide latent issues." or "TlsVerifyStrict option is explicitly set to false. This may hide latent issues."

Other certificate checks:

* The certificate chain must include the intermediate certificates, and clients must trust the root.
* With the Windows certificate store, the service account must be able to read the private key. Otherwise: "no usable certificate found in the system store; observed issues: …". See [Use the Windows certificate store](https://docs.devolutions.net/gateway/guides/certificates/windows-certificate-store.md).
* Restart the service after replacing certificate files. See [Change the Devolutions Gateway certificate](https://docs.devolutions.net/gateway/guides/certificates/change-certificate.md).
* For recordings, see [Invalid TLS certificate for session recording](https://docs.devolutions.net/gateway/help/troubleshooting/recording-tls-certificate.md).

## Devolutions Server or Devolutions Cloud can't use the gateway

<table><thead><tr><th width="300">WHAT YOU SEE</th><th>FIX</th></tr></thead><tbody><tr><td>"DVLS could not authenticate against the Gateway. Verify the provisioner private key in this Gateway entry matches the provisioner.pem configured on the Gateway, and that the Gateway entry’s stored Gateway ID matches the running Gateway’s Id field."</td><td>Download the public key again from <em><strong>Administration</strong></em> – <em><strong>Devolutions Gateway</strong></em> – <em><strong>More</strong></em> – <em><strong>Download public key</strong></em>, save it as <code>provisioner.pem</code> in the data folder of the gateway, restart the service, then select <em><strong>Publish Gateway configuration</strong></em>. After <em><strong>Renew key pair</strong></em> in Devolutions Server, every gateway needs the new public key.</td></tr><tr><td>"Devolutions Cloud could not authenticate against the Gateway. Verify that the provisioner.pem on the Gateway is the public key downloaded from Devolutions Cloud, then publish the Gateway configuration."</td><td>Same fix with the public key from <em><strong>Administration</strong></em> – <em><strong>Devolutions Gateway</strong></em> – <em><strong>More</strong></em> – <em><strong>Download public key</strong></em> in Devolutions Cloud.</td></tr><tr><td><em><strong>Configuration is not in sync</strong></em>, or "Expected ID {0} for this Gateway, but health check returned {1}. …"</td><td>The <code>Id</code> in <code>gateway.json</code> differs from the gateway ID saved in Devolutions Server or Devolutions Cloud, for example after reinstalling the gateway. Select <em><strong>Publish Gateway configuration</strong></em> to write the expected ID.</td></tr><tr><td><em><strong>Revocation list is not in sync</strong></em></td><td>Select <em><strong>Publish revocation list</strong></em> on the gateway, or <em><strong>Publish revocation list to all gateways</strong></em> in the <em><strong>More</strong></em> menu.</td></tr><tr><td>"Devolutions Gateway is unreachable. Please make sure it is up and running."</td><td>Check the service, the URL and the firewall from the computer of Devolutions Server, or from your browser and the PAM service with Devolutions Cloud.</td></tr><tr><td>"We detected a clock desynchronization between your Devolutions Server and Devolutions Gateway. …" or "Your configured public key seems to be invalid, or the gap between your Devolutions Server and Devolutions Gateway clock is too big."</td><td>Synchronize the clocks (NTP). Devolutions Gateway accepts tokens up to 5 minutes off. <code>https://&#x3C;gateway>:7171/jet/diagnostics/clock</code> shows the time of the gateway.</td></tr><tr><td>"Your configured TCP port does not match the one configured on your Devolutions Gateway."</td><td>Edit the gateway in Devolutions Server and select <em><strong>Auto-Detect</strong></em> next to <em><strong>TCP Hostname</strong></em>, or correct the port.</td></tr></tbody></table>

## Sessions fail after reaching the gateway

* "The Devolutions Gateway could not connect to '{host}'. See the gateway logs for details.": the computer of the gateway can't reach the target host and port. Test from that computer, for example with `Test-NetConnection <host> -Port 3389`.
* "The Devolutions Gateway could not establish a TLS connection to '{host}'. The certificate of that host must be trusted by the machine the gateway runs on. See the gateway logs for details.": Devolutions Gateway checks the certificate of the target itself, with the trusted roots of its own computer. Import the root certificate of the target on the computer of the gateway. Skipping certificate validation in the entry has no effect on that check.
* Access, ruleset and permission messages: see [Error messages](https://docs.devolutions.net/gateway/help/troubleshooting/error-messages.md).

## Session recording fails

If a recorded session stops with "Connection to the recording server lost." or "Connection to the server lost", check that the account of the Devolutions Gateway service can write to the recording folder (`RecordingPath`, by default `recordings` in the data folder) and create folders and files in it. A network share needs a service account with rights on the share; NETWORK SERVICE uses the computer account. When the disk is full or below `MinRecordingStorageFreeSpace`, Devolutions Gateway refuses new recordings ("recording storage below minimum free-space threshold") and ends an ongoing one with "Recording storage is full; closing push stream". See [Recording storage and path](https://docs.devolutions.net/gateway/guides/recording/storage.md) and [Invalid TLS certificate for session recording](https://docs.devolutions.net/gateway/help/troubleshooting/recording-tls-certificate.md).

## Websites and tunnels through the gateway fail

Remote Desktop Manager opens website, PowerShell over WinRM, Telnet, HP iLO and Devolutions Gateway tunnel entries through a local proxy program, jetsocat, connected to Devolutions Gateway. When the jetsocat window isn't shown, it writes a log file named `jmux-proxy_<number>.log`, kept 5 days:

* Windows: `%AppData%\jetsocat`, for example `C:\Users\<user>\AppData\Roaming\jetsocat`
* macOS: `/Users/<user>/Library/Application Support/jetsocat`
* Linux: `~/.local/share/jetsocat`

Website entries through Devolutions Gateway work with Microsoft Edge and Google Chrome only: "Website entries via Devolutions Gateway are currently only supported when using Microsoft Edge or Google Chrome web browsers." See [Use Devolutions Gateway with an external browser](https://docs.devolutions.net/gateway/guides/connect/external-browser.md).

## Still stuck?

* Collect `boot.stacktrace`, the `gateway.*.log` files (with `VerbosityProfile` set to `Debug`) and, for client problems, the jetsocat logs.
* Contact [Devolutions support](https://devolutions.net/support/), or email <service@devolutions.net> with the files attached.


---

# 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/gateway/help/troubleshooting/general.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.
