Skip to main content

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_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.
  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.