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

Terminal
# 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 doctor

Or as an installation administrator in the app: Settings ▸ Installation ▸ Checks ▸ Run checks. Nothing is changed and no email is sent.

What it checks

CheckFails onWarns on
Configurationno TAIRI_DATA_ENCRYPTION_KEY, the development JWT secret in production, dev bypasses switched onpublic URLs not https, no admin emails set
Databasecan't connectPostgres older than 15, 90% of connections used, slow answers
Migrationsa migration failed half-way, or a newer version migrated a modulemigrations that didn't run at start
Clockhost and database differ by 30 s or more5 s or more
Licence and seatsexpired or invalid licence, more active accounts than seatslicence ends within 30 days, no seat left
Emailcan't connect, no STARTTLS when required, login refusedno SMTP in production, recent failures not resent
Redisset but not answering
Backupsthe last backup failed, the target can't be listedno backup recorded, last one older than 36 hours
Updatesa security release is out, or you're several minor versions behind
Networkthe 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

Terminal
kubectl -n requestarium exec deploy/requestarium-backend -- /requestarium-api doctor --json > doctor.json

The 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:

Terminal
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.zip

It contains:

  • the doctor report (doctor.txt, doctor.json);
  • versions, OS and architecture, and whether the installation is offline;
  • TAIRI_* and REQUESTARIUM_* 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.