Troubleshooting
Find the cause of status, TLS, sign-in, receipt, installer and backup failures from Tach's exact errors and service logs.
Built from commit f569b4a on Nov 14, 2026
Use the symptom and error class to choose the next check. In message templates below, uppercase names stand for the value Tach prints. Fixed text, including loopback addresses, matches the source.
Read the logs
Host operation failures print tach: followed by the failed step or cause and exit 1. Invalid command syntax exits 2. A failed external command includes its step, exit status, last error lines and an appropriate log command.
| Part | Command |
|---|---|
| Tach server | sudo journalctl -u tach-selfhost -n 50 --no-pager |
| Caddy and HTTPS | sudo journalctl -u caddy -n 50 --no-pager |
| Azure Blob backup copy | sudo journalctl -u tach-backup-copy -n 50 --no-pager |
| Docker and image loading | sudo journalctl -u docker -n 50 --no-pager |
| Host package installation | sudo tail -n 50 /var/log/apt/term.log |
The server reports fixed error classes without logging request content. A startup line beginning tach: ready version= means the server reached its listening state.
tach status fails
Status checks the server on 127.0.0.1:8080, then Caddy on 127.0.0.1:443 using your domain for TLS. Both must return the installed source revision.
The server is not healthy
The error template is:
the Tach service on 127.0.0.1:8080 did not report healthy revision REVISION; check sudo systemctl status tach-selfhost and sudo journalctl -u tach-selfhost -n 50 --no-pager
The server may be stopped, unable to start or running the wrong revision. Read the server journal:
| Startup class | Cause and next check |
|---|---|
database_start_failed |
The database cannot open. Check free space, storage ownership and the configured data directory. |
listener_failed |
The configured address could not be bound. Check for another listener on port 8080. |
installer_artifacts_mismatch |
Installer files failed checksum validation at server startup. Use a verified image with its matching setup artifacts. |
missing_configuration, invalid_origin, https_origin_required, missing_smtp_configuration, invalid_smtp_port, invalid_timezone, invalid_listener |
Runtime settings are absent or invalid. Compare the retained source configuration with the configuration reference. |
For an installation that has never completed, see failed initialization.
Local HTTPS is not healthy
The error template is:
local HTTPS is not serving the expected revision for DOMAIN on 127.0.0.1:443 (last attempt: CAUSE); check Caddy (sudo systemctl status caddy; sudo journalctl -u caddy -n 50 --no-pager) and TLS certificates.
CAUSE text |
Cause | Fix |
|---|---|---|
nothing listening on 127.0.0.1:443 (connection refused); is Caddy running? |
Caddy is not listening. | Check its service status and journal. |
timed out connecting to 127.0.0.1:443 |
The local HTTPS connection did not complete. | Check Caddy’s status and journal. |
certificate name mismatch: the certificate Caddy serves is not for DOMAIN |
The certificate does not cover the configured domain. | Supply a certificate for that domain or correct the domain setting. |
certificate not trusted (DETAIL) |
Certificate trust validation failed. | With provided TLS, check the full chain. With ACME, check issuance errors in Caddy’s journal. |
TLS handshake failed (REASON) |
TLS negotiation failed. | Check Caddy’s certificate and TLS errors. |
cannot read CA file PATH (DETAIL) |
The trust file is absent or unreadable. | For internal lab TLS, wait for Caddy to create its CA. For provided TLS, check the certificate path. |
HTTP CODE, response is not Tach health JSON, health status is not ok or invalid HTTP response (TYPE) |
HTTPS did not return a valid healthy Tach response. | Check the reverse proxy and its journal. |
wrong revision: expected REVISION |
HTTPS reached a different revision. | Check the running image and Caddy’s target. |
For ACME, public DNS must resolve to the VM and inbound ports 80 and 443 must be reachable. An internal-only name needs provided TLS trusted by clients. After fixing an install-time HTTPS failure, rerun the same install command. Its error ends Then rerun the same install command. Existing data and keys are preserved.
Status probes the VM itself. To check the address your users reach, run this from another computer on their network:
curl --fail https://YOUR_DOMAIN/healthz
If a private CA is in use, curl may report certificate error 60. Supply its trust file with --cacert YOUR_CA_FILE.
A first install failed
database_start_failed during initialization includes a check free space: df -h PATH hint. Check space before retrying.
If the next run reports that first-admin-keys.json was left by an earlier install and may hold the only copy of the first administrator keys, leave it in place. The installer refuses to remove or overwrite a nonempty file. Never share its contents or reset the database to get new keys.
An empty keys file with a nonempty data directory produces this message template:
an earlier install stopped after creating files in DATA_DIR and wrote no keys to /etc/tach/first-admin-keys.json. If this is a new installation with no data to keep, move that directory aside (sudo mv DATA_DIR FAILED_INIT_DIRECTORY) and rerun the same install command.
Only for a new installation with no data to preserve, run the exact printed move command. The destination ends in .failed-init- and a UTC timestamp, with a suffix if needed to avoid an existing name. Rerun the same installer after moving the directory. Never apply this procedure to a database holding accepted usage.
For configuration refusals, see Configuration file. A signature or checksum failure is a reason to stop and obtain a verified package.
Sign-in
No email arrives
Tach sends at most one email per address per minute. Unknown, inactive and cooling-down addresses see the same Check your email page without a new email being sent.
- Check spam or quarantine.
- Confirm that Users lists the address as active.
- Wait 60 seconds before asking again.
- Use the newest email. A new challenge replaces the previous code and link.
- If mail still does not arrive, check the relay configuration and server journal.
If the page says Tach couldn't send the sign-in email. Try again in a moment., the journal reports tach: sign-in mail failed class=CLASS. Invitations use tach: invitation mail failed class=CLASS.
| Class | Cause | Fix |
|---|---|---|
mail_connection |
Connection to the relay failed. | Check smtp.host, smtp.port and outbound network access. |
mail_timeout |
The relay did not answer in time. | Check relay availability. |
mail_tls |
SMTP TLS failed. | Check the relay’s certificate and the configured TLS mode. |
mail_rejected_permanent |
The relay refused the message. | Check the permitted sender and SMTP credentials. |
mail_rejected_transient |
The relay deferred the message. | Retry after the relay recovers. |
mail_bad_response, mail_client |
The client could not complete the SMTP exchange. | Check the server is an SMTP relay with the expected protocol. |
A code or link fails
| Exact page message | Cause | Fix |
|---|---|---|
That code didn't work. Check the latest email, or request a new code. |
Wrong, expired, replaced, consumed or exhausted code. | Use the newest email or request a new code. Five wrong attempts exhaust a challenge. |
That sign-in link expired or was already used. Request a new one. |
Expired or consumed challenge. | Request another email. Code and link expire after 10 minutes and share one use. |
Sign in from this Tach page. Reload it, then try again. |
The submitted form did not pass the same-origin check. | Open your current Tach address’s /login page and retry. |
Your session ended. Sign in again. |
The session expired or was invalidated. | Sign in again. Sessions last eight hours. |
Sign-in is unavailable right now. Try again in a moment. |
Sign-in could not complete its ledger work. | Check server health and retry. |
Rerunning the installer and restoring a backup both invalidate sessions. Deactivating a person ends that person’s sessions.
Sending usage
A refused request returns the same class in its JSON error and x-tach-failure-class. See HTTP API.
| Symptom | Cause | Fix |
|---|---|---|
401 authentication |
Required credential is absent, unknown, revoked or owned by a deactivated person. | Check the key and its owner on Keys. Send it in the route’s required header. |
403 authorization |
A recognized credential has the wrong scope or role. Organization keys cannot use Events, Native events or Delivery. | Use a personal ingest key for those routes. Use a query key for Answers and an administrator’s query key for Health. |
400 protocol |
Invalid fields, content type, encoding or batch headers. | Compare the request with the API reference. Use http/json for OpenTelemetry. |
413 protocol |
Body or ingest row limit exceeded. | Reduce the batch. Canonical Events permits 256 events, OpenTelemetry Logs maps at most 512 usage rows, and ingest bodies are at most 1 MiB. |
409 protocol |
A committed batch ID was reused with different bytes. | Retry the original frozen bytes. Assign a new batch ID to a different batch. |
502 protocol |
A compiled or stored acknowledgement failed validation. | Keep the outbox unchanged and investigate the server. |
503 dependency, 503 storage or 504 timeout |
Capacity, storage or a deadline stopped the operation. | Keep unacknowledged events and retry. Check disk and server logs if it persists. |
Refused accounting writes log tach: ingest_refused route=ROUTE class=CLASS for dependency, storage and timeout failures. A healthy connection alone does not prove usage. Check Receiving for an event from the tool.
A resent event returning in duplicates is already acknowledged, not rejected. A missing, incomplete or failed acknowledgement authorizes no outbox deletion.
Setup and prices
| Symptom | Cause | Fix |
|---|---|---|
This Tach doesn't serve setup commands yet. |
Installer artifacts were not configured in this server. | Use a verified self-host image that includes them. |
Download returns 503 installer_artifact_mismatch |
An installer file failed its pinned size or checksum check. | Replace the image or files with the matching verified package. This singular error differs from startup’s installer_artifacts_mismatch. |
| Usage has no cost | No positive tool-reported cost and no applicable catalog rule. | Check catalog coverage in Health and Models and prices. The cost is unknown, never zero. |
Upgrade and rollback
| Exact message | Cause and action |
|---|---|
Already running this image |
The image is unchanged and its direct health check passed. |
candidate failed; previous image restored on current data |
The new image failed. The previous image is running on current data. Read the server journal before another attempt. |
candidate failed; previous image refuses current schema. Data preserved; service stopped. Fix forward. |
The new image failed and the old image cannot read the current database. Keep the data and use a fixed compatible release. |
no previous image recorded |
Rollback has no recorded image to return to. |
Neither upgrade nor rollback silently restores an old backup or reverses migrations.
Backups
The server runs the backup cycle every night at 04:30 UTC. sudo tach backup runs it now, and sudo tach status and Health show the last result.
| Symptom | Cause | Fix |
|---|---|---|
Status shows "status": "pending" under backup, or Health shows Pending |
No first receipt yet, within 26 hours of enablement (restarts do not renew the deadline). | Run sudo tach backup, or wait for 04:30 UTC. |
backup_size_limit |
Database exceeds the configured cap. | Raise max_mib and rerun the installed package’s installer with edited config. |
backup_disk_space |
Free space is below 3 × max_mib + 64 MiB. |
Extend the disk or free unrelated files; preserve retained backups. |
backup_integrity_failed, backup_snapshot_failed, backup_restore_drill_failed |
Snapshot, full integrity or restore-parity gate failed. | Stop and preserve the current disk; use the package GUIDE’s Backup-blocked recovery procedure on an isolated current-data clone. Never substitute an older snapshot for newer accepted usage. |
backup_cycle_timeout |
The cycle exceeded max(300, ceil(max_mib × 600 / 1024)) seconds. |
Check disk throughput and copy connectivity. A copy has no independent three-hour timeout; retry after its lease ends. |
backup_cycle_failed, backup_storage_failed, backup_publish_failed, backup_status_failed |
Worker crash, resource limit, permissions or I/O failure. | Preserve the disk and inspect the server journal; this is not a Blob verdict. |
backup_already_running |
Another cycle, such as the nightly one, holds the backup lock. Nothing changed. | Run sudo tach backup again after it ends. |
Status shows "status": "stale", or Health shows Overdue |
No cycle finished in the last 26 hours, the first receipt is overdue/missing its enablement record, or a running cycle exceeded its bound. | Check that tach-selfhost is running, then run sudo tach backup. |
backup_copy_failed |
The upload failed, or the copy read back from Azure did not match the checked backup. Earlier local backups are kept. | Read the Azure Blob copy log, check the VM’s Azure CLI login and its access to the configured container. |
backup.directory is no longer used |
The configuration is from a package that took its own host backup. | Delete the backup.directory line. Files in the old directory are left in place. |
A backup-blocked upgrade or rollback changes no image. Fix its named cause and
run sudo tach backup before retrying. A broken optional Blob route may be
deliberately disabled by removing both Azure fields and rerunning the installed
package’s installer, but independently copy a successful local backup before the
switch and restore Blob custody afterward. For a broken backup implementation or
integrity failure, stop the service, preserve the entire current data directory
(including WAL and all earlier backups) off-VM, and validate a fixed package on an
isolated current-data clone. If immutable-state comparisons cannot pass, keep it
stopped; no bypass authorizes accepted-data loss. Follow the signed package GUIDE.
Ask for help
Send the package version, /healthz source revision, sanitized tach status output and the failing command. Remove any private host or person identifiers.
Never send keys, configuration contents, cookies, sign-in codes, email message bodies or the database. The program version reported by /healthz can differ from the package version, so include the revision.