> For the complete documentation index, see [llms.txt](https://docs.thousandeyes.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thousandeyes.com/product-documentation/connected-devices/device-agents/validation-and-troubleshooting/installation-and-activation-troubleshooting.md).

# Installation and Activation Troubleshooting

Use this article if the agent fails before you can run [self-test mode](https://docs.thousandeyes.com/product-documentation/connected-devices/device-agents/validation-and-troubleshooting/validate-with-self-test-mode.md). If self-test reports a failure, follow the failed check. If self-test completes but reports low speed, see [Speed Quick Wins](https://docs.thousandeyes.com/product-documentation/connected-devices/device-agents/validation-and-troubleshooting/speed-quick-wins.md).

Select the tab for your update model and run the checks to locate the failure. Run them on the device unless your installation guide specifies host-side container paths. Then use the symptom table at the end of this article to find the areas to investigate.

{% tabs %}
{% tab title="Agent Updater" %}
The commands below use the standard agent install directory, `/tmp/cdev/installation`. If `working_directory` was changed in `skagent.cfg`, use its `installation` subdirectory instead.

1. List the running processes.

   ```bash
   ps
   ```

   Look for a process whose command contains `router_agent_updater`. If it is missing, inspect the platform service status and log using [Logs and service management](https://docs.thousandeyes.com/product-documentation/connected-devices/device-agents/validation-and-troubleshooting/logs-and-service-management.md#service-management).
2. Read the latest Updater log entries.

   ```bash
   tail -n 100 /var/run/opt/thousandeyes/cdev/router_agent_updater/updater_log
   ```

   Start with the first error. Configuration errors appear before activation. After activation, the log records the agent package check, download, signature verification, installation, and startup.

   Some Updater versions might include credentials or tokens in diagnostic output. Redact authentication material before sharing logs.
3. Check for the Unit ID.

   ```bash
   cat /var/run/opt/thousandeyes/cdev/router_agent_updater/unitid
   ```

   A numeric value confirms activation. `No such file or directory` means activation has not completed. Return to the Updater log and [check the network prerequisites](#checking-network-prerequisites).
4. Check that the agent binary was installed.

   ```bash
   ls -l /tmp/cdev/installation/bin/skagent
   ```

   The output should list `skagent` as an executable file. If the file is missing after a Unit ID was issued, check the Updater log for package download, signature verification, architecture, storage, or permission errors.
5. List the processes again to check whether the agent is running.

   ```bash
   ps
   ```

   Look for a process whose command contains `skagent`. If it is absent or repeatedly disappears, inspect the Updater log and agent runtime logs. Package-download failures can retry separately from activation. See [Retry, backoff and restart behavior](https://docs.thousandeyes.com/product-documentation/connected-devices/device-agents/validation-and-troubleshooting/logs-and-service-management.md#retry-backoff-and-restart-behavior).
   {% endtab %}

{% tab title="Agent-only" %}

1. Check the agent binary in the standard persistent installation directory.

   Use the persistent root selected by the package or image integration if it differs from `/opt/samknows/router_agent`.

   ```bash
   ls -l /opt/samknows/router_agent/bin/skagent
   ```

   The output should list `skagent` as an executable file. `No such file or directory` means the package path is wrong or the agent was not installed.
2. List the running processes.

   ```bash
   ps
   ```

   Look for a process whose command contains `skagent`. If it is missing, inspect the platform process-manager status and agent output.
3. Check for the Unit ID.

   Use the runtime root selected by the package or platform if it differs from `/run/opt/samknows/router_agent`.

   ```bash
   cat /run/opt/samknows/router_agent/unitid
   ```

   A numeric value confirms activation. `No such file or directory` means activation has not completed. Inspect the agent output and [check the network prerequisites](#checking-network-prerequisites).
   {% endtab %}
   {% endtabs %}

After the agent binary is installed, run [self-test mode](https://docs.thousandeyes.com/product-documentation/connected-devices/device-agents/validation-and-troubleshooting/validate-with-self-test-mode.md).

## Checking Network Prerequisites

Use the activation hostname shown in the log for the selected region. Replace both instances of `YOUR_ACTIVATION_HOST` with the hostname between `https://` and the next `/` in the activation URL from the log. Do not include `https://` or the path in the replacement.

```bash
date -u
nslookup YOUR_ACTIVATION_HOST
curl -I --connect-timeout 10 https://YOUR_ACTIVATION_HOST
```

Confirm that the displayed UTC time is correct. `nslookup` should return an address, and `curl` should establish an HTTPS connection. The HTTP status itself does not need to indicate a successful API request.

## Symptom Reference

| Symptom                                   | Areas to Check                                                                                   |
| ----------------------------------------- | ------------------------------------------------------------------------------------------------ |
| Updater or agent does not start           | Executable path, permissions, configuration syntax, runtime directories, and process-manager log |
| No Unit ID                                | System time, WAN DNS and HTTPS, authentication secret, and `[identity.client]`                   |
| HTTP 403 or rejected credentials          | Secret, client routing, and backend provisioning                                                 |
| Certificate or TLS failure                | System time, trust store, and any TLS-intercepting proxy                                         |
| Unit ID exists but agent is not installed | Package-download errors, free space, write permissions, and package architecture                 |
| Agent repeatedly exits                    | Agent runtime log, configuration inputs, libraries, and writable runtime paths                   |
| Agent appears in the wrong organization   | The `[identity.client]` value used during activation                                             |
