Troubleshooting

Browser shows a certificate warning

Expected while the server runs --self-signed (the only mode currently supported) — click through it. Agents connecting to a self-signed server need --insecure (POTARU_INSECURE=true).

Agent won't enroll: "invalid token"

Agent shows offline in the dashboard

"this agent already has an active session"

Only one live tunnel session per agent is allowed at a time. This usually means a previous agent process is still running (or hasn't been detected as dead yet) — stop it before starting a new one.

Shell opens but the command doesn't run right

The agent's default shell is $SHELL, falling back to /bin/bash, then /bin/sh. In a Docker container built on a distroless base, none of those exist — this is exactly why potaru's own client image uses alpine instead (see the Docker section of Install).

docker exec / privilege questions

The Docker client image runs as an unprivileged user (uid 65532), not root — docker exec <container> id will confirm this. See Security → Least privilege on the agent.

Security