Troubleshooting¶
Start with porthole doctor and porthole status on the machine. Daemon logs: journalctl --user -u porthole -f on Linux,
/tmp/porthole.log for the launchd agent on macOS, or run porthole serve
--log-level debug in a terminal.
Pairing and connecting¶
porthole pairsays "no VPN or private address is bound"- The daemon found nothing but loopback to listen on. Bring the VPN up (or
join the Wi-Fi) and restart the daemon;
listen = ["auto"]picks up private and VPN addresses at start. - The app cannot reach the machine
- The phone needs a private route to the host shown by
porthole pair: the same network, or the VPN connected on the phone too. The daemon refuses connections from public addresses. Check that TCP port 7433 (or yourport) is open in the host firewall on that interface, and thatporthole statuslists the address you are using. - "Certificate fingerprint mismatch"
- The daemon's certificate changed because its state directory
(
~/.local/state/porthole/) was deleted or the daemon moved to a new machine. Forget the machine in the app and pair again. - The pairing code is rejected
- Codes are single use and expire after two minutes. Five wrong attempts in
a minute lock that source address out for a minute. Run
porthole pairagain. - A phone was lost
porthole devicesthenporthole devices revoke <id>. Its connections close within a second and its token stops working.
Sessions¶
- A session is read-only
- Only sessions running inside tmux can be controlled. Start them with
porthole wrap claude(orcodex), or from the app's New session. A finished session can be restarted under tmux with Resume in tmux…. See Sessions. - A session is missing
- The daemon reads
~/.claude/projectsand~/.codex/sessions. A CLI using anotherCLAUDE_CONFIG_DIRorCODEX_HOMEis found while it runs; add the directory toprofilesin config.toml to watch it always. Checkporthole sessions. - No repositories in New session
- Nothing has been recorded and no session has run anywhere yet. Run
porthole addinside a repository, orporthole add --workspace ~/codefor a folder of them, then checkporthole repos. - Permission prompts do not appear on the phone
- Hooks apply only to sessions started after
porthole install-hooksran; restart the session.porthole doctorreports whether each profile has the hooks. Prompts also fall back to the terminal afterpermission_timeout_s(60 s) with no answer, so an old prompt may already have been answered at the keyboard. - Session status stays "unknown"
- The status comes from hooks, so sessions started before the hooks were installed report nothing until restarted.
- No account or quota information
- claude-swap must be on the
daemon's
PATH. The systemd unit and launchd agent set a fixedPATH; edit it if cswap lives elsewhere, and[cswap] enabledmust not befalse.
Notifications¶
- Nothing arrives while the app is closed
- Direct notifications need the app open (or, on Android, Stay connected
in the background). Everything else needs a push relay: a relay URL in
Settings → Push relay,
[push] relay_urlset on every machine, and the daemon restarted afterwards. See Push notifications. - "Relay: not active"
- The relay answered 402: the credential in your relay URL is not active (lapsed, unknown, or mistyped). Check it with whoever runs the relay; for the hosted relay that is https://zerkersec.io/supporter.
- "Relay: could not verify"
- The relay could not be reached. The app keeps using its last grant and retries; Re-check forces a retry now.
- "Apple has not issued this phone a push token yet"
- The app asks Apple for a push token the first time you save a relay URL, and Apple can take a few seconds. Make sure the phone is online, then save the URL again. TestFlight build 1 never asked Apple for a token and fails here every time; update the app.
- Relay is connected but one machine never pushes
- That daemon has no
relay_url, or the machine is muted under Machines. The daemon refuses push registrations until the URL is set and it is restarted. - There is no Push relay field in Settings
- This build was made without the Firebase options, so it cannot receive
push at all. Install a store build, or build with
--dart-define-from-file=dart_defines/store.json. - iOS alerts arrive late or not at all without a relay
- iOS suspends the connection shortly after the app leaves the foreground. See iOS background behavior.
The daemon¶
- "refusing to run as root"
- Run the daemon as the user who owns the sessions. The service files do
this already; do not wrap them in
sudo. - "listen ... is a public address; refusing"
- An explicit
listenentry is a public IP. Use a private or VPN address instead.--allow-public-bind-i-understandoverrides the check; see Security. - The service does not come back after a reboot (Linux)
- User services only run while you are logged in unless linger is enabled:
sudo loginctl enable-linger "$USER".porthole installtries this and prints the command if it could not. claudeorcodexnot found by the daemon but fine in a shell- The service runs with a fixed
PATH(~/.local/bin,/usr/local/bin,/usr/bin,/bin, plus/opt/homebrew/binon macOS). Add the directory your CLI lives in to the unit'sEnvironment=PATH=…line (Linux) or the plist'sPATH(macOS), or pointbinaryin config.toml at the full path. - Changes to config.toml do nothing
- Only
repos.tomlandworkspacesreload live (onSIGHUPor whenporthole addruns). Everything else needssystemctl --user restart porthole. See Reloading.