Install Kivo
Troubleshooting
Fixes for the most common install problems.
Fixes for the problems people hit most often while installing Kivo. docker compose logs app and docker compose logs migrate usually name the cause.
Pulling the images
| Problem | What to do |
|---|---|
no matching manifest for linux/arm64 | The images are built for amd64. Use an x86_64 server; on a Mac with Apple silicon, turn on Rosetta in Docker Desktop (Settings → General). The compose file already asks for linux/amd64. |
pull access denied or manifest unknown | Check KIVO_REGISTRY=invicly/ and that KIVO_VERSION is an existing tag on Docker Hub. |
toomanyrequests | Docker Hub's anonymous pull limit. Wait, or docker login with a free Docker account. |
| Pulls time out | Allow outbound HTTPS to registry-1.docker.io, auth.docker.io and production.cloudflare.docker.com. |
The app container exits with code 78
Kivo checks its environment at startup and refuses to run with a missing or unsafe value. The log names each problem.
| Variable | Needs to be |
|---|---|
DATABASE_URL | A postgresql:// URL |
AUTH_SECRET | At least 32 characters |
AUTH_URL | https://… — or ALLOW_INSECURE_AUTH_URL=true for http://localhost only |
SMTP_HOST | Set (or EMAIL_TRANSPORT=outbox for local testing) |
CRON_SECRET | At least 24 characters, if set |
Database and migrations
| Problem | What to do |
|---|---|
migrate failed and the app never started | docker compose logs migrate. Usually the database isn't reachable or the credentials are wrong. Fix it and run docker compose up -d. |
migrate waits forever, or "service postgres is required" | With a managed database, DATABASE_URL must be set and db removed from COMPOSE_PROFILES. With the bundled one, keep db and set POSTGRES_PASSWORD. |
/api/health/ready answers 503 | The database is down or not migrated: docker compose run --rm migrate. |
| "Can't reach database server" with a managed database | Allow the server's address in the database firewall and add ?sslmode=require. |
Special characters break DATABASE_URL | URL-encode the password (@ → %40, # → %23). |
Sign-in and HTTPS
| Problem | What to do |
|---|---|
| Sign-in loops back to the sign-in page | AUTH_URL doesn't match the address in the browser, or the proxy doesn't forward the host. |
| Everyone was signed out after a restart | AUTH_SECRET changed. Put the old value back. |
| Certificate errors | DNS doesn't point at the server yet (dig +short <your-domain>), ports 80/443 are closed, or KIVO_DOMAIN is wrong. docker compose logs caddy shows why. |
| Rate limits hit everyone at once | TRUSTED_PROXY_HOPS is wrong — 1 for one proxy, 2 with a CDN in front of a load balancer. |
| Problem | What to do |
|---|---|
| Connection timeouts | Your cloud blocks the SMTP port. Azure, AWS and Google Cloud block 25; use 465 or 587. DigitalOcean may block more — try 2525. |
| TLS errors | Port 465 needs SMTP_SECURE=true; 587 needs SMTP_SECURE=false. |
| Authentication failed | Wrong username or password. Gmail and Google Workspace need an app password. |
| Rejected sender | SMTP_FROM_EMAIL must be verified with your provider (for example in Amazon SES). |
License activation
| Problem | What to do |
|---|---|
| "Kivo Control couldn't be reached." | Test from the server: curl -fsS https://kivo-control.invicly.com/api/v1/licensing/keys. Allow outbound HTTPS, and check KIVO_CONTROL_URL. |
| "…signed with a key this installation doesn't know." | Set KIVO_LICENSE_PUBLIC_KEYS="lic-2026-09:MCowBQYDK2VwAyEAzWdTL0qB3C7ZDkfbdcn0u4MADyzGFR9suPCuNkf8mbQ=" and restart Kivo. |
| "…already activated on as many workspaces as it allows." | Free a slot in your portal. |
Still stuck? Email inviclytech@gmail.com with the output of docker compose ps and the relevant log lines.