failed to query tunad
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_SOCKETvariable is set to a wrong path.
tunad doesn't run inside a Docker container.
What to doโ
- Install tunad as described in Installing tunad.
- 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. - Restart the service (
sudo systemctl restart tunadorsudo tunad restart) and run the command again. - On macOS, check the log at
/var/log/tunad.err.log.