Check a self-hosted installation with doctor, and send a support bundle without secrets
Self-hosted problems usually aren't bugs. They're a missing encryption key, a clock that drifted, a backup that failed last Tuesday, an SMTP server that dropped STARTTLS. Requestarium's backend has a built-in doctor that checks for all of these, and a support bundle that packages the results for support without leaking secrets.
Run the doctor
# Docker Compose
docker compose exec backend /requestarium-api doctor
# Kubernetes
kubectl -n requestarium exec deploy/requestarium-backend -- /requestarium-api doctor
# Before the first start, with the bundle's .env
docker compose run --rm --no-deps backend doctorOr as an installation administrator in the app: Settings ▸ Installation ▸ Checks ▸ Run checks. Nothing is changed and no email is sent.
What it checks
| Check | Fails on | Warns on |
|---|---|---|
| Configuration | no TAIRI_DATA_ENCRYPTION_KEY, the development JWT secret in production, dev bypasses switched on | public URLs not https, no admin emails set |
| Database | can't connect | Postgres older than 15, 90% of connections used, slow answers |
| Migrations | a migration failed half-way, or a newer version migrated a module | migrations that didn't run at start |
| Clock | host and database differ by 30 s or more | 5 s or more |
| Licence and seats | expired or invalid licence, more active accounts than seats | licence ends within 30 days, no seat left |
| can't connect, no STARTTLS when required, login refused | no SMTP in production, recent failures not resent | |
| Redis | set but not answering | |
| Backups | the last backup failed, the target can't be listed | no backup recorded, last one older than 36 hours |
| Updates | a security release is out, or you're several minor versions behind | |
| Network | the update feed is unreachable (skipped offline) |
Each check has 10 seconds and they run in parallel, so a run takes about 10 seconds at most.
In a deploy pipeline
kubectl -n requestarium exec deploy/requestarium-backend -- /requestarium-api doctor --json > doctor.jsonThe exit code is 1 on any FAIL, so an upgrade job can stop before it routes traffic to a broken release. Warnings don't fail the command; read them anyway.
The support bundle
In the app, Settings ▸ Installation ▸ Support bundle ▸ Download support bundle saves a zip. From the command line:
docker compose exec -T backend /requestarium-api support-bundle -o - > support.zip
kubectl -n requestarium exec deploy/requestarium-backend -- /requestarium-api support-bundle -o - > support.zipIt contains:
- the doctor report (
doctor.txt,doctor.json); - versions, OS and architecture, and whether the installation is offline;
TAIRI_*andREQUESTARIUM_*settings, with every secret's value shown as<redacted>and passwords in URLs as***;- which settings are saved in the app (names only), migration versions per module;
- licence plan, status and seats (never the licence itself);
- mail, authentication and backup settings without credentials, with recent failures;
- from the app only, the last 2,000 log lines of the replica that built it, with tokens removed.
The command line doesn't include logs; add docker compose logs --since 24h backend if support asks.
Before you send it
Log lines can still hold email addresses, IP addresses and request paths. Open logs.txt and check, or untick Include this server's recent log lines. With several replicas, the bundle has the logs of the replica that answered; add kubectl logs for the others if the problem moves between them.
Run it before go-live, too
The doctor is just as useful before anyone uses the installation: it catches the missing encryption key and the unconfigured SMTP server on day one, instead of when the first invitation doesn't arrive.