# Collect diagnostics

Source: https://tiltas.openpanel.sh/docs/troubleshooting/diagnostics

> The commands and logs that show what a Device is doing, to read yourself or to send to support.

Collect these on the Device that has the problem, and on the other side too when two Devices cannot reach each other.
None of them change anything.

## Linux and Windows

The `tiltas` command talks to the engine on the same machine. On Linux, run it with `sudo`; on Windows, in PowerShell or
Command Prompt. macOS has no command: see [macOS](#macos).

| Command | What it shows |
|---|---|
| `tiltas status` | This Device and every Device it can see: address, name, owner, system, and for each active connection whether it is direct or relayed. |
| `tiltas status --json` | The same, with every field, for a support request or a script. |
| `tiltas netcheck` | The Device's view of the internet: UDP, the kind of NAT, its public address, and the latency to each Relay. |
| `tiltas ping <name>` | Whether a Device answers, and the path: through a Relay or direct. |
| `tiltas dns status` | Which names this Device resolves through Tiltas, and with which resolver. |
| `tiltas version` | The version of the command and of the engine. |

```bash tab="Linux"
sudo tiltas status
sudo tiltas netcheck
sudo tiltas ping nas
```

```powershell tab="Windows"
tiltas status
tiltas netcheck
tiltas ping nas
```

What the `status` and `netcheck` lines mean is explained in [Only relayed](/docs/troubleshooting/relayed).

### The engine's log

On Linux the engine runs as the `tiltasd` service, and its log is in the journal:

```bash
sudo journalctl -u tiltasd --since "1 hour ago"
```

Add `-f` to follow it while you try again. On Windows, the app writes its own log, `tray.log`, in its folder under
`%LocalAppData%`; it covers the app, sign-in and updates.

## Docker and NAS

The container runs the same engine. Its log is the container's log, and every command runs inside it:

```bash
docker logs --tail 200 tiltas
docker exec tiltas tiltas status
docker exec tiltas tiltas netcheck
```

The first lines of the log say whether the container uses kernel or userspace networking, and whether it signed in or
reconnected. On a NAS, the same log is in Container Manager (Synology), the Docker page (Unraid) or the app's logs
(TrueNAS), and the commands run in the container's console or shell.

## macOS

The Mac app has no command line. Its menu shows each Device and whether the connection is direct or relayed. The
app's log is in the system log, under the subsystem `world.fennec.quietlane` (the app's identifier, which stays the
same after the rename):

```bash
log show --last 1h --predicate 'subsystem == "world.fennec.quietlane"'
```

## In the console

Open the Device in the console. It shows whether the Device is online and when it was last seen, its version, what it
can reach and which rule allows each thing, and each connection as Direct or Relayed. This view is computed from the
same rules the Coordinator enforces, so it is the first place to check a missing rule.

## Sending them to us

Write to us from the [site](/) with the output of `tiltas status` and `tiltas netcheck` from both Devices, and the
last lines of the log. Before you send them, remove anything you do not want to share: the output names your Devices,
their addresses and your public IP address. It holds public keys, which are safe to share, but never a private key, a
Join key or a token.
