Skip to main content

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​

SymptomLikely causeFirst action
Apply succeeded, host shows BLOCKED / certificateNo certificate yet — normal on the first ApplyWatch Certificates; issuance starts automatically
AUTO_ISSUE_DEFERRED in the auditDNS does not contain both published addressesFix A/AAAA, wait for the TTL; no re-Apply needed
Certificate FAILED, reason mentions the challengePort 80 unreachable, wrong AAAA, or a proxy in front of the nodeCorrect DNS/firewall; the worker retries, and a manual Request is available
Certificate FAILED, reason mentions rate limitsCA rate limitWait for the retry shown as the next attempt; do not loop manual requests
Served fingerprint differs from storedThe data plane is not running the verified revisionSystem → running matches verified; check logs and Reapply
New host answers 403 for an approved sourceAccess policy default is DENY and the source is not allowedFix the policy, save a revision, apply
New host answers 404Host name not compiled: disabled, no certificate, or not in the live revisionCheck the host on Hosts and the live revision on Revisions
A visitor sees a block pageWAF block, CrowdSec block or access denialCopy the RP-… reference and look it up under Security
Administrator cannot sign in after creationThe initial credential is only valid for the password-change pageThey must replace it at first sign-in
Second-factor prompt rejects every codeDevice clock drift, or an already-used codeCheck the device clock; a TOTP code is single-use
Lost authenticator—Host-authorized reset: -mode reset-mfa -user <name>
Node status endpoint answers 503A component or evidence is degraded; traffic may still be servedRead status.degraded_reasons in the body
502/503 from a hostNo usable upstream destination answeredCheck the upstream address, port and readiness expectation
504 from a hostThe origin exceeded the upstream's response timeoutFix 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.