A connect code is single-use — once it has been approved for a VM it can't be used again. Re-run sudo /opt/gritiva/gritiva-agent setup on the VM that still needs enrolling and approve the new code.
scope X: died unexpectedly, restart_count=5, giving up#
The agent gave up restarting a scope's main process after 5 consecutive crashes. Investigate in the panel under Scopes -> my-app -> Logs, or on the VM:
BASH
sudo journalctl -u gritiva-agent --since "10 min ago"
Common causes: out-of-memory in the cgroup (raise the scope's memory limit in the panel), missing dependency in the docker image, port conflict with another scope.
domain add: cloudflare API: 1003 Invalid or missing zone id#
The domain's apex isn't registered in your Cloudflare account, OR the API token in /etc/gritiva/agent.toml doesn't have access to that zone. Add the zone in Cloudflare dashboard first, then check token permissions (Zone → Read + Edit on that specific zone).
Cloudflared can reach the tunnel but nginx-in-scope isn't responding. Check:
Is the scope running? Look at Scopes -> my-app in the panel, or curl -s https://api.gritiva.com/api/v1/scopes/<scope_id> -H "X-API-Key: $GRITIVA_API_KEY"
Is the app listening on the port you specified? On the VM: sudo ip netns exec <netns> ss -tlnp | grep 8080
Is nginx-in-scope started? On the VM: sudo ip netns exec <netns> ss -tlnp | grep nginx
Almost always: the remote scope is missing a wg-gmesh interface inside its netns. The cause was traced in the 2026-05-14 mesh-stuck-peer postmortem. Manual fix: in the panel, open Mesh -> your network -> Peers, remove the stuck peer and add it back — that re-issues the peer entry and re-installs the WireGuard config on both sides. Full procedure in the mesh stuck-peer runbook.
If still stuck after the retry, send us a note via our contact form — it's a real reconciler bug.
You're hitting the agent crash loop (postmortem on 2026-05-14). Verify your agent is on PR #55 or later — the agent binary has no version subcommand, so read the version from the panel under INFRA → VMs, or:
The meta field is silently ignored by the planner (known issue). Workaround: redraft with notes prefixed "MUST INCLUDE EXACTLY" and provide every literal command/term you want in the output.