> For the complete documentation index, see [llms.txt](https://docs.defguard.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.defguard.net/support-1/troubleshooting-guides/desktop-client/unix-socket-does-not-exist-linux.md).

# Unix socket does not exist (Linux)

Error: `No such file or directory (os error 2)` when trying to connect to a location.

The socket at `/var/run/defguard.socket` is created by the `defguard-service` background service. If this service is not running, the socket does not exist and the GUI client cannot establish a connection.

### Fix

Run the following to enable and start the background service:

```sh
# Reload systemd to pick up the service file
sudo systemctl daemon-reload

# Enable the service to start on boot
sudo systemctl enable defguard-service

# Start it immediately
sudo systemctl start defguard-service
```

Verify the service is running:

```sh
systemctl status defguard-service
```

If the service fails to start, check its logs:

```sh
journalctl -u defguard-service -n 100
```
