# Troubleshooting a server

> On the server, run `sudo unrent doctor`. It checks the agent, its connection, the clock, Docker, disk, memory, the firewall, the ingress, databases and the private network, and gives a one-line fix for anything that warns or fails.

URL: https://unrent.dev/docs/troubleshooting/

## Run the doctor

On the server:

```
sudo unrent doctor
```

It prints one line per check, the fix under anything that is not a pass, and a count at the end. `--json` prints the same as one JSON object. It only reads: it changes nothing on the server, and it reaches only Unrent’s agent endpoint and the release index.

## What it checks

The checks

| Check | What it looks at |
| --- | --- |
| Agent service | unrentd and unrent-exec running, restarts, the installed version |
| Agent version and updates | the newest release and whether both of its signatures exist (2 of 2), an update in progress or rolled back |
| Connection to Unrent | DNS, a verified TLS connection to the agent endpoint, and the clock against Unrent’s |
| Time sync | NTP on and synchronised; past 2 minutes of drift only observe jobs run |
| Docker | the daemon answers, Docker Engine 28 or newer |
| Disk and inodes, Memory | free space and inodes where the agent and Docker keep data; available memory |
| Firewall | Unrent’s nftables tables loaded, and the ports open to inbound traffic |
| Ingress | Caddy (or your own proxy) answering on its ports |
| Databases | each managed database running and healthy, and the age of its last verified backup |
| Private network | each WireGuard peer’s last handshake |
| Recent agent errors | errors in the agent’s log over the last 24 hours |

## Send a support bundle

On the server:

```
sudo unrent doctor --bundle unrent-support.tar.gz
```

The bundle holds the check results, the agent’s own log for the last 24 hours, allow-listed configuration, and OS and package versions. It never holds keys, tokens, passwords or the values of your services’ variables: every value the server holds is masked, and the doctor refuses to write a bundle that would still contain one.

It stays on the server until you send it. In the console choose **Help → Report a problem**, describe what happened and attach the file (at most 5 MB). Unrent checks it again when it arrives and deletes it after 30 days.

## Feedback and questions

The same dialog takes questions and ideas: **Help → Ask a question** or **Send feedback**, or the menu under your address in the sidebar. Tick **Include page details** to send the page’s address, the console build and your browser; never what is on the page. Answers come by email.
