Troubleshooting
Start with the two checks that separate "the product is wrong" from "the path to the product is wrong":
cd /opt/portavium
docker compose --env-file .env ps
curl -fsSk https://127.0.0.1:8081/healthz
If the controller is healthy locally but the WebUI is unreachable, the management path or a firewall is the problem, not PORTAVIUM.
Symptoms
| Symptom | Likely cause | First action |
|---|---|---|
Apply succeeded, host shows BLOCKED / certificate | No certificate yet — normal on the first Apply | Watch Certificates; issuance starts automatically |
AUTO_ISSUE_DEFERRED in the audit | DNS does not contain both published addresses | Fix A/AAAA, wait for the TTL; no re-Apply needed |
Certificate FAILED, reason mentions the challenge | Port 80 unreachable, wrong AAAA, or a proxy in front of the node | Correct DNS/firewall; the worker retries, and a manual Request is available |
Certificate FAILED, reason mentions rate limits | CA rate limit | Wait for the retry shown as the next attempt; do not loop manual requests |
| Served fingerprint differs from stored | The data plane is not running the verified revision | System → running matches verified; check logs and Reapply |
New host answers 403 for an approved source | Access policy default is DENY and the source is not allowed | Fix the policy, save a revision, apply |
New host answers 404 | Host name not compiled: disabled, no certificate, or not in the live revision | Check the host on Hosts and the live revision on Revisions |
| A visitor sees a block page | WAF block, CrowdSec block or access denial | Copy the RP-… reference and look it up under Security |
| Administrator cannot sign in after creation | The initial credential is only valid for the password-change page | They must replace it at first sign-in |
| Second-factor prompt rejects every code | Device clock drift, or an already-used code | Check the device clock; a TOTP code is single-use |
| Lost authenticator | — | Host-authorized reset: -mode reset-mfa -user <name> |
Node status endpoint answers 503 | A component or evidence is degraded; traffic may still be served | Read status.degraded_reasons in the body |
502/503 from a host | No usable upstream destination answered | Check the upstream address, port and readiness expectation |
504 from a host | The origin exceeded the upstream's response timeout | Fix the origin or raise the timeout, then apply |
Logs
cd /opt/portavium
docker compose logs -f controller
docker compose logs -f caddy
docker compose logs -f db
The controller logs structured JSON; the data plane logs JSON to stderr. Rotation is
20 MB × 5 per service. Certificate lifecycle events (AUTO_ISSUE_*,
AUTO_ACTIVATED, RENEWAL_*) and administrative actions are also in the audit trail,
which is the durable record after logs rotate.
When traffic statistics are enabled, the data plane also writes a structured access log
under data/caddy/. It contains one line per request and no request body, cookie or
header value beyond the standard request line fields. Deleting it loses unread samples,
not configuration or certificates.
Rollout detail
Every Apply and rollback has a job page. Per node it shows the state, the failure class,
each phase (ID_INDEX, VALIDATE, ACTIVATE, CONFIG_READBACK, VERIFY), the
readiness result per host and the ACL-aware verification result per family. Read the
failure class before changing anything; a failed activation leaves the previous verified
revision serving.
Diagnostic headers
A proxy host can add test-only X-RP-* request headers from the proxy's own
observations (client address and port, TLS version and SNI, route id, node, revision).
Enable it on a test name only: the headers overwrite anything the client sent, and they
are not a substitute for the dashboard's serving evidence.