Repair
Diagnose and fix a broken instance.
If your instance configuration becomes corrupted — Traefik routing breaks, the database connection is lost, permissions drift — the built-in repair tool recovers it:
BASH
cd /opt/zensailor
sudo ./fix.shThe script recreates the zensailor-net network, repairs the agent's
Docker-socket mount, reconnects PostgreSQL and NATS, rotates NATS credentials,
regenerates NATS TLS certificates, pulls the latest image tags, resolves
failed Prisma migrations, force-recomposes the stack, and ends with a
per-container health report.
When to use it#
Run fix.sh when core services fail to start or the dashboard is
unreachable. It is idempotent — safe to re-run — and it never touches your
deployed services' volumes or data.