Troubleshooting
Use these checks for login, connection and startup failures. Work in the installation directory; for installer-managed stacks, add the same --project-name, --env-file .env and --profile edge options to the Compose commands below. Logs can contain sensitive context: redact secrets before sharing them.
Where to find logs
Read component logs through Docker Compose:
docker compose logs backend --tail 100 # backend API and proxy
docker compose logs frontend --tail 50 # frontend web server logs
docker compose logs postgres --tail 50 # database startup errors
docker compose logs redis --tail 20 # Redis startup errors
docker compose logs guacd --tail 50 # RDP daemon (if your stack runs it as its own service)
Add -f to any command to follow logs in real time. Filter for errors:
docker compose logs backend --since 1h | grep -i "error\|panic\|warn"
The backend exposes health endpoints:
docker compose exec backend curl -s http://localhost:7000/api/v1/health
# {"status":"ok"}
docker compose exec backend curl -s http://localhost:7000/api/v1/ready
# {"status":"ok","checks":{"database":"ok","redis":"ok"}}
/api/v1/ready returns HTTP 503 with the failing check named when PostgreSQL or Redis is unreachable. Both endpoints are also served through the bundled reverse proxy, so you can hit them on your public origin. See the API reference for the full surface.
Login and authentication
Cannot sign in as the local administrator
- Check service health and backend startup logs. Local bootstrap runs after migrations; a failed startup does not create a usable login.
- Use username
adminand the generated password stored underPIPING_AUTH_LOCAL_ADMIN_PASSWORDin the protected installation.env. There is no shared production password. - For an operator-managed deployment, verify
PIPING_AUTH__LOCAL_ENABLEDand provision a strongPIPING_AUTH__LOCAL_ADMIN_PASSWORDthrough the deployment's secret store. Startup reapplies that override to the localadminaccount. Do not delete credential rows or enable weak development secrets as a recovery procedure. - If local login was intentionally disabled, use the configured SSO provider or ask the deployment operator to restore the emergency login through its secret configuration.
Session cookie not sent / logged out immediately
Symptoms: Login succeeds but the browser is redirected back to the login page.
Checks:
PIPING_AUTH__COOKIE_SECURE=true(the production default) marks thepiping_sessioncookie asSecure, and browsers only store it on HTTPS origins. If you are testing over plain HTTP, set it tofalse; behind HTTPS keep ittrue.- If
PIPING_AUTH__COOKIE_DOMAINis set, it must cover the hostname the browser uses. When it is empty (the default), the cookie is bound to the exact host. - Confirm your reverse proxy forwards the
Cookieheader to the backend unchanged.
OIDC login fails or loops
Symptoms: Clicking Continue with SSO redirects to the IdP, then returns with an error or loops.
Checks:
- OIDC settings live in Access Control → SSO — run the Test Connection action there first.
- Verify the redirect URL registered in the IdP exactly matches the configured redirect URL (e.g.
https://piping.example.com/api/v1/auth/oidc/callback), including trailing slashes. - Confirm the OIDC discovery URL is reachable from the backend container (substitute your issuer URL):
docker compose exec backend curl -sf \
"https://idp.example.com/realms/piping/.well-known/openid-configuration" | head -5
- Check the backend logs for the specific OIDC error:
docker compose logs backend --since 5m | grep -i "oidc\|token\|claim"
- Common causes: an expired or rotated client secret, wrong
client_id, IdP certificate not trusted by the backend container (add the CA to the container trust store).
SSH sessions
SSH session does not open / connection refused
Checks:
- Confirm the target host is reachable from the backend container (or the proxy node that terminates the session):
docker compose exec backend timeout 5 bash -c '</dev/tcp/<target-host>/22' && echo "reachable"
- Confirm the SSH server is listening on the configured port.
- Check the backend logs for the session creation attempt:
docker compose logs backend --since 5m | grep -i "ssh\|session"
- Verify the resolved connection settings have the correct host, port, and credentials.
SSH session opens but immediately closes
Checks:
- Wrong username, password, or private key — check the credentials in the connection settings.
- The target SSH server rejects the authentication method — ensure it allows password authentication if you are not using keys.
- The account's shell exits immediately (locked account,
nologinshell, restrictiveForceCommand) — test the same credentials with a plainsshclient.
SSH terminal is garbled / wrong encoding
Checks:
- The browser terminal is UTF-8; there is no per-connection encoding setting. Make sure the target host uses a UTF-8 locale.
- Confirm with
localeon the target; exportLANG=en_US.UTF-8(or another UTF-8 locale) in the shell profile if needed.
RDP sessions
RDP session does not open
RDP decoding runs in guacd. The backend image ships its own guacd binary and starts it inside the backend container when PIPING_START_EMBEDDED_GUACD is true — or auto while PIPING_PROXY__GUACD_HOST points at loopback. Otherwise the backend connects to an external guacd at PIPING_PROXY__GUACD_HOST:PIPING_PROXY__GUACD_PORT (default 4822).
Checks:
- Confirm
guacdis running. Embedded: look for theStarting embedded guacdline in the backend logs. Separate service:docker compose ps guacdshould showUp. - Confirm the target Windows host has RDP enabled and the firewall allows port 3389.
- Check the
guacdlogs for the specific error:
docker compose logs backend --since 5m | grep -i guacd # embedded guacd
docker compose logs guacd --tail 50 # separate service
- With a separate
guacdservice, confirm the backend can reach it:
docker compose exec backend timeout 5 bash -c '</dev/tcp/guacd/4822' && echo "guacd reachable"
- If the target enforces NLA or TLS, set the
securityoption (any,nla,tls,rdp) in the connection settings; for self-signed certificates enableignore_cert.
RDP session shows a black screen
Symptoms: Session connects but displays nothing.
Checks:
- The Windows host may be at the login screen — the Guacamole client should render it; if not, try sending Ctrl+Alt+Del via the session toolbar.
- Check the
color_depthoption in the connection settings — try 16-bit or 24-bit. - Confirm the Windows display driver is not set to
None(common on headless VMs).
VNC sessions
VNC session does not connect
Checks:
- Confirm the VNC server is running on the target host and listening on the configured port (default 5900).
- Confirm the backend can reach the VNC port:
docker compose exec backend timeout 5 bash -c '</dev/tcp/<target-host>/5900' && echo "reachable"
- Check the VNC
passwordin the connection settings. - Piping speaks standard RFB password authentication (or password-less VNC). If the server only accepts another security type (e.g. VeNCrypt/TLS-only), enable classic VNC authentication on the server.
CCTV devices
Device failures are reported with protocol-neutral reason codes and one fixed generic message, Unable to connect to the device — device text is never passed back to the caller. The specific diagnostic is only in the backend log, so read the status code together with docker compose logs backend.
What a CCTV error status means
| Status | Meaning | Typical cause |
|---|---|---|
400 | Authentication failed, operation unsupported, or credentials missing | Wrong device username or password; an operation this family or firmware does not implement; no credentials resolved for the target |
502 | Unreachable, or the exchange failed | No route from the backend to the recorder, or the device refused or aborted the request |
504 | Timed out | The recorder accepted the connection but did not answer in time |
429 | Busy | A media slot or the shared memory budget is exhausted — see Configuration |
403 | Denied | Your account lacks the CCTV action on that target. Authorization also runs before the target is resolved, so an attribute-constrained policy answers 403 on an id that does not exist |
404 | Target not found | No such connection target — returned when the caller's policy carries no attribute constraints |
The device is unreachable or times out
CCTV device I/O is dialed directly from the backend process — it does not pass through a proxy node. Check reachability from the backend container itself, on the family's management port (34567 for DVRIP/Sofia; 80 for Dahua, Hikvision and ONVIF unless the connection record overrides it):
docker compose exec backend timeout 5 bash -c '</dev/tcp/<recorder-host>/34567' && echo "reachable"
Live view, the snapshot fallback and RTSP clip copies additionally need RTSP — port 554 for DVRIP/Sofia, Dahua and Hikvision; on ONVIF the stream URL and its port come from the device itself. See Deployment.
The recording will not play in the browser
Symptoms: The archive player loads but shows nothing, then offers to export the clip instead.
Many recorders use H.265, which most browsers cannot decode. The player retries once with H.264 transcoding. If that fails, export the clip and play it locally. API callers request transcoding with transcode=true on playback; it consumes backend CPU. Exports retain the device's encoding.
PTZ controls are missing
The PTZ pad appears when all three conditions hold:
- The device family reports PTZ support.
- Your account holds the CCTV PTZ permission on that target — see Access control.
- Read-only discovery reports PTZ as supported for the selected channel. A channel that discovery cannot decide either way is reported as "unknown", and the pad stays hidden.
The pad is also hidden in grid view, because grid mode has no single selected camera — switch to single view to control PTZ.
CCTV requests fail with 429
Live streams, RTSP clip copies and native downloads are refused with 429 when either the plane's own concurrency ceiling or the shared media memory budget is exhausted. Snapshots differ: an exhausted STILL_MAX_GRABS makes the grab wait for a free slot rather than fail, so a snapshot returns 429 only when the shared budget is full. Close live tiles you are not watching (a 4×4 wall is sixteen streams), or raise PIPING_CCTV__LIVE_MAX_STREAMS together with PIPING_CCTV__MEDIA_BUDGET_TOTAL_MB — see Configuration. Exports behave differently: when the fast native-download path has no slot free, the request falls back to a slower realtime copy instead of failing.
User management is unavailable on an ONVIF camera
ONVIF is view-only by construction. The driver implements device info, snapshot, streaming, channel listing and PTZ, and refuses user management, disk status, recording status and export — so on an ONVIF device the Archive and Users tabs do not appear at all. Where the hardware supports it, configure the vendor family (dahua, hikvision, dvrip_sofia) instead; see CCTV.
WebSocket issues
Sessions disconnect after a short time
Symptoms: SSH/RDP/VNC sessions drop after 30–60 seconds of inactivity.
Root cause: The reverse proxy (nginx, Caddy, etc.) is closing idle WebSocket connections at its default proxy_read_timeout.
Fix for nginx:
location / {
proxy_pass http://localhost:9080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
}
Fix for Caddy: Caddy handles WebSocket upgrades automatically and has a long default timeout. No extra config needed.
"WebSocket connection failed" in the browser
Checks:
- Open the browser developer tools (F12) → Network tab → filter by WS. Check the WebSocket handshake request for the error code.
- HTTP 401 — the session cookie is not being sent. Check
PIPING_AUTH__COOKIE_SECUREand ensure you are on HTTPS. - HTTP 502 — the reverse proxy cannot reach the Piping frontend/backend. Check nginx/Caddy logs.
- Connection refused — the backend is not running. Check
docker compose ps backend.
NetBox sync
For the sync model — providers, mapping configurations, and sync jobs with per-run status — see Inventory sync.
Sync runs but imports nothing
Checks:
- Verify the NetBox API token has read access to DCIM (sites, devices) and IPAM (IP addresses).
- Test the token from the backend container:
docker compose exec backend curl -sf \
-H "Authorization: Token <your-netbox-token>" \
"https://netbox.your-company.com/api/dcim/sites/" | python3 -m json.tool | head -20
- Check the backend logs during a sync run:
docker compose logs backend --since 5m | grep -i "sync\|netbox"
Sync fails with a certificate error
The backend container may not trust the NetBox server's TLS certificate (common with internal CAs).
Fix: Mount the CA certificate into the backend container and set SSL_CERT_FILE or SSL_CERT_DIR in the container environment.
Database issues
Backend fails to start with "connection refused" to PostgreSQL
Checks:
- Confirm PostgreSQL is running:
docker compose ps postgres. - Confirm
PIPING_DATABASE__URLis correct — host, port, user, password, and database name must all match. - On first start, PostgreSQL takes 5–10 seconds to initialize. The backend retries; wait 30 seconds before concluding it has failed.
Migrations fail on startup
Symptoms: Backend logs contain migration failed or similar.
Checks:
- Confirm the database user has
CREATE TABLEandALTER TABLEprivileges. - Confirm your PostgreSQL major version matches what the release supports — the bundled compose stack ships PostgreSQL 18.
- If you rolled back to a previous image after a migration ran, restore the database from backup — forward-only migrations cannot be automatically reversed.
Performance
High backend CPU during sessions
RDP sessions with many connected clients put load on guacd. If RDP is the primary workload, run guacd as a separate service on a dedicated host (point PIPING_PROXY__GUACD_HOST/PIPING_PROXY__GUACD_PORT at it) or move session termination to dedicated proxy nodes.
Slow UI / long API response times
Enable OpenTelemetry tracing to identify slow database queries or external API calls:
OTEL_EXPORTER_OTLP_ENDPOINT=https://otel-collector.your-company.com:4318
Use the trace data in your APM tool to find the slow span. See Observability for the full exporter setup and the backend's own Prometheus metrics.