> Markdown version of https://tuna.am/en/docs/troubleshooting/errors/failed-to-query-tunad/. Documentation index: [llms.txt](https://tuna.am/en/llms.txt), full text in one file: [llms-full.txt](https://tuna.am/en/llms-full.txt). Any page is available as Markdown: append `.md` to its URL without the trailing slash.

# failed to query tunad

```text
Error: failed to query tunad: executing request to daemon: Get "http://tunad/api/v1/status": dial unix /var/run/tuna/tunad.sock: connect: no such file or directory

```

For `tuna mesh peers`, `tuna mesh ip`, and `tuna mesh status`, the message starts differently: `failed to get status: executing request to daemon: …`. The command exits right away.

## Cause

`tuna mesh` commands work through the tunad service: it sets up the network interface and keeps the connection to the mesh network. The CLI talks to it over a local socket — `/run/tuna/tunad.sock` on Linux, `/var/run/tuna/tunad.sock` on macOS, `\\.\pipe\tuna\tunad` on Windows. The error means the service didn't respond:

* tunad isn't installed;
* the service is installed but stopped or crashed;
* the `TUNA_SOCKET` variable is set to a wrong path.

tunad doesn't run inside a Docker container.

## What to do

1. Install tunad as described in [Installing tunad](https://tuna.am/en/docs/mesh.md#install).
2. If it's already installed, check that the service is running: on Linux, `systemctl status tunad`; on macOS, `sudo tunad status`; on Windows, find tunad in the list of services.
3. Restart the service (`sudo systemctl restart tunad` or `sudo tunad restart`) and run the command again.
4. On macOS, check the log at `/var/log/tunad.err.log`.
