Skip to content

The Diagnosis Tool

Outcome: when anything about the server is wrong, you know the first place to look — and you can read its findings without panic, because you know what each of its checkers is looking at.

Every server develops small problems: a DNS record edited wrong, a port the router stopped forwarding, a certificate about to expire, a disk quietly filling. On a hand-run server you find these when a user complains. YunoHost ships a diagnosis system whose whole job is to find them first, name them, and point at the fix. The documentation says the diagnosis runs twice a day on its own and emails the administrators when it finds issues. It is, for most owners, the feature that makes the rest of the system trustworthy — and the one you will lean on most.

What it checks

The diagnosis is not one check but a row of specialists. In the core source they are ten modules, run in order, and the guide lists them by their real names because each maps to a chapter of this book:

  • 00-basesystem — the foundations: the hardware and kernel the system reports, whether all YunoHost packages are at consistent versions, stray package sources, and a high number of failed login attempts (an early intrusion signal).
  • 10-ip — the server's own connectivity: does it have working IPv4 (and IPv6, if claimed), and can it reach the internet at all.
  • 12-dnsrecords — every domain's DNS compared against the recommended configuration of chapter 7: the address records, the mail records, the chat records. This is the checker that makes the first week noisy.
  • 14-ports — whether the ports the server needs (web, mail, SSH, chat) are reachable from outside — the router-forwarding test of chapter 3, performed by a referee that is not guessing.
  • 21-web — whether each domain actually answers HTTP and HTTPS from outside, the precondition of every certificate.
  • 24-mail — the mail stack's reputation and plumbing: is this server's address on public blocklists; does the reverse DNS match the name the server announces (forward-confirmed reverse DNS); is the outgoing queue draining or backing up.
  • 30-services — whether every service YunoHost manages (nginx, Postfix, Dovecot, the directory, the firewall, Fail2ban…) is actually running.
  • 50-systemresources — disk space, memory and the like: the slow failures.
  • 70-regenconf — whether the configuration files on disk still match what YunoHost would generate — the checker that notices hand edits.
  • 80-apps — the installed apps' own health, including their specific configuration warnings.

Running it, and reading it

Run it from the webadmin (Diagnosis, then run the initial diagnosis) or with yunohost diagnosis run; inspect categories with yunohost diagnosis show and yunohost diagnosis get. Findings arrive in three moods: fine, warning (yellow), and error (red) — with, in the good cases, the specific record, port or service named and a suggestion attached.

Three pieces of reading discipline, all endorsed by the documentation:

  1. The first run is supposed to look bad. Fresh installs show a bunch of yellow and red alerts — typically the unfinished DNS and unforwarded ports. The documentation's words: "Don't run away!" Work the list; it shortens.
  2. An alert you have decided about can be ignored, deliberately. If you do not intend to use a feature — the classic case is mail on a server that will never send any — flag the issue as ignored in the webadmin or with yunohost diagnosis ignore, and it stops nagging while staying on the record. Ignoring is a decision, not a dismissal: do it per finding, not per category.
  3. The twice-daily email is the point. Set up so the admins actually receive it (chapter 9's warning applies — an outside address in the loop is wise), the diagnosis turns "the server has been broken for a month" into "the server has been broken since Tuesday, and here is the paragraph that explains it".

What it is not

The diagnosis checks configuration and reachability; it is not a security audit, a backup check (it will not tell you your archives are stale — chapter 11's discipline is yours), or a promise that an app is behaving well internally. It also judges against YunoHost's own recommended shape: a deliberate, knowledgeable deviation from that shape will be reported as a problem forever, until you ignore that specific finding. That strictness is the design — a referee that can be argued with per call, but never quietly reprogrammed.