> ## Documentation Index
> Fetch the complete documentation index at: https://docs.directgvr.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Troubleshoot client errors

> Read launcher and DLM errors in the debug log and fix the most common ones.

This page shows how to find and fix errors in a launcher or download manager (DLM).

## Find the error in the debug log

1. [Run the client in debug mode](https://docs.directgvr.com/troubleshooting/debug-mode.md) and open `host.developer.log`.
2. Search for `error`. You can also search for `failed` or `unable`.

For example, a missing file:

```text theme={null}
10/16/2018 16:51:09 WebGet error 'https://cdn.example.com/game/.../ffea8eab89ea5a9705d3da3c64f6bc8417ca737b.solidpiece' (192.168.12.12:80): (404) (0) (Object not found)
10/16/2018 16:51:09 Repository.0B761EA4 - Error: Source(6) Index(24) Count(1) Type (1) Code(404) CodeEx(0) Response(4) Retry(0.00)
```

The `Repository` error line has:

* **Source:** where the error came from. See the source codes in [Repository configuration](https://docs.directgvr.com/reference/storage-repository-system/repository-configuration.md). In this example, 6 is `storageremote`, the CDN or delivery server.
* **Index:** the piece number in the repository.
* **Count:** the number of download attempts. It goes up with each retry.
* **Code:** the main error code. Here the source is a web server, so it's an [HTTP status code](https://www.rfc-editor.org/rfc/rfc9110#name-status-codes).
* **CodeEx:** the extended error code. See [Core error codes](https://docs.directgvr.com/reference/client-workflow-engine/core-error-codes.md). For example, a common extended code for a 987 JSON error is 10, "Failed to authenticate web signature."
* **Retry:** time until the next attempt.

## Retry intervals

The client retries immediately after an error. After that, it waits 15 seconds and doubles the wait each time:

```text theme={null}
... Count(1) ... Retry(0.00)
... Count(2) ... Retry(15.00)
... Count(3) ... Retry(30.00)
... Count(4) ... Retry(60.00)
```

The client uses at least two concurrent requests when it syncs a repository, so if one hits an error the other keeps downloading. The UI only shows an error if no pieces have downloaded for 30 seconds.

## Common errors

### Repository not found

UI error: "Failed to contact the alias service"

```text theme={null}
10/17/2018 10:52:25 Repository.0850000C - Refresh started (commx)
10/17/2018 10:52:26 Repository.0850000C - Error: Source(1) Index(-1) Count(1) Type (1) Code(976) CodeEx(0) Response(3) Retry(0.00)
```

* Source 1: `REPOSITORY_SOURCE_ALIAS`
* Code 976: `WEBGET_ERROR_INVALIDCONTENT`

The repository isn't in the alias file, because of a typo or an environment that doesn't exist yet.

To fix it, check the repository name in your workflow. It's case-sensitive.

```json theme={null}
"repositoryName": "mygame.env.qa",
```

If it's right, use [alias.py](https://docs.directgvr.com/release-automation/deployment-scripts.md#alias-py) to display your alias file, then create or promote the environment to match your workflow.

### Metafile can't be validated

UI error: "Failed to access remote metafile"

```text theme={null}
10/17/2018 11:15:55 Repository.08E0F324 - Loading remote metafile (https://cdn.example.com/game/.../comm-meta-unsigned.json)
10/17/2018 11:15:55 Repository.08E0F324 - Error: Source(4) Index(-1) Count(1) Type (1) Code(987) CodeEx(9) Response(3) Retry(0.00)
```

* Source 4: `REPOSITORY_SOURCE_METAFILEREMOTE`
* Code 987: `WEBGET_ERROR_JSON`
* CodeEx 9: `JSON_ERROR_JWSDECODE`. The metafile isn't signed. A CodeEx of 10 means it's signed but not trusted.

The metafile isn't signed, or is signed by a certificate neither the operating system nor the client trusts.

To fix it, make sure your deployment scripts use a production code-signing certificate, or a test certificate your test machines trust. Then deploy the release again. See [Options for securing metadata](https://docs.directgvr.com/release-automation/securing-metadata.md).

### Operating system error

UI error: "Failed to access content on disk"

```text theme={null}
10/17/2018 11:23:39 Unable to open file [C:\Program Files (x86)\MyGame\Game.exe.solidpartial][C0010000](5 : 00000005)
10/17/2018 11:23:39 Repository.080A0F54 - Error: Source(5) Index(1) Count(1) Type (3) Code(964) CodeEx(5) Response(4) Retry(5.00)
```

* Source 5: `REPOSITORY_SOURCE_STORAGELOCAL` (the local operating system)
* Code 964: `WEBGET_ERROR_OS`
* CodeEx 5: `ERROR_ACCESS_DENIED`. See [Windows system error codes](https://learn.microsoft.com/en-us/windows/win32/debug/system-error-codes--0-499-).

The client can't read or write a file because it lacks elevation or write permission.

To fix it, install to a folder that doesn't need administrator rights, or [elevate only when an update is needed](https://docs.directgvr.com/launcher-design/conditional-elevation.md).

### Domain not allowed

UI error: "Failed to access X", where X is the component whose domain isn't allowed.

```text theme={null}
10/17/2018 11:31:50 Hostname not found in whitelist (cdn.example.com)
10/17/2018 11:31:50 WebGet error 'https://cdn.example.com/game/.../metafile.json' (0.0.0.0:0): (963) (0) (Failed validation)
10/17/2018 11:31:50 Repository.04F3400C - Error: Source(4) Index(-1) Count(1) Type (1) Code(963) CodeEx(0) Response(3) Retry(0.00)
```

* Source 4: `REPOSITORY_SOURCE_METAFILEREMOTE`
* Code 963: `WEBGET_ERROR_VALIDATION`

To fix it, if the domain is the one you expect, add it from the `Hostname not found in whitelist` line to `hostnameWhitelist` in `app.json`. See [Host configuration](https://docs.directgvr.com/reference/client-skin-system/host-configuration.md).

```json theme={null}
"hostnameWhitelist": [
  "cdn.example.com",
  "downloads.example.com"
]
```

## Related

* [Core error codes](https://docs.directgvr.com/reference/client-workflow-engine/core-error-codes.md)
* [What to include in a support ticket](https://docs.directgvr.com/troubleshooting/support-ticket.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.