Common Errors

Last updated 4 min read
Report issue

Common Errors#

Quick reference for the errors we see most often in support. If your error isn't here, send us a note via our contact form.

Agent install / enrollment#

curl: (60) SSL certificate problem#

Your VM's CA bundle is out of date. On Ubuntu/Debian:

BASH
sudo apt update && sudo apt install ca-certificates && sudo update-ca-certificates

Then re-run the install command.

enrollment failed: connect code expired#

Connect codes are short-lived. Print a fresh one on the VM and approve it in the panel:

BASH
sudo /opt/gritiva/gritiva-agent setup
# prints GRTV-XXXX-XXXX

Approve it at https://gritiva.com/connect.

enrollment failed: connect code already used#

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.

agent installed but not appearing in panel#

Most common cause: outbound 443 to *.gritiva.com is blocked by your firewall. Test:

BASH
curl -v https://api.gritiva.com/healthz

If that times out, fix your firewall. If it succeeds, check:

BASH
sudo journalctl -u gritiva-agent -n 50 --no-pager | grep -iE 'connect|reject|deny'

Scope lifecycle#

scope create: failed to create netns: operation not permitted#

The agent doesn't have CAP_NET_ADMIN or CAP_SYS_ADMIN. Verify the systemd unit:

BASH
sudo grep -E 'AmbientCapabilities|CapabilityBoundingSet' /etc/systemd/system/gritiva-agent.service

Should include CAP_NET_ADMIN and CAP_SYS_ADMIN. If missing, re-run the installer so the unit is rewritten:

BASH
curl -fsSL https://gritiva.com/install-gritiva.sh | sudo bash

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 / DRM#

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).

domain returning 502 Bad Gateway#

Cloudflared can reach the tunnel but nginx-in-scope isn't responding. Check:

  1. 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"
  2. Is the app listening on the port you specified? On the VM: sudo ip netns exec <netns> ss -tlnp | grep 8080
  3. Is nginx-in-scope started? On the VM: sudo ip netns exec <netns> ss -tlnp | grep nginx

domain stuck in "provisioning" status#

The DRM reconciler is in a back-off loop. Tail the agent logs:

BASH
sudo journalctl -u gritiva-agent -n 100 --no-pager | grep -i drm

Common: Cloudflare rate-limit (wait 60s), expired CF API token (rotate in panel), nginx-in-scope can't bind port (something else is on it).

Mesh / gmesh#

peer X stuck in CONNECTING for >5 minutes#

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.

agent: NRestarts=12 / hour, mesh stuck#

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:

BASH
curl -s https://api.gritiva.com/api/v1/vms/ -H "X-API-Key: $GRITIVA_API_KEY"

If it's older than 2.5.0, re-run the installer on that VM:

BASH
curl -fsSL https://gritiva.com/install-gritiva.sh | sudo bash

Panel / web UI#

Cannot login: too many failed attempts#

Lockout is 15 minutes after 5 failed attempts. Wait it out, OR use the password-reset link in the login page.

Panel showing "VM offline" but I can SSH in#

The agent's WebSocket to the panel got disconnected. Check on the host:

BASH
sudo systemctl status gritiva-agent
sudo journalctl -u gritiva-agent -n 50 --no-pager | tail

If the agent is running but offline in panel, restart it:

BASH
sudo systemctl restart gritiva-agent

Should reconnect within 30 seconds. If not, the agent may have been bypassed by an outbound firewall change.

Docs system (docs.gritiva.com)#

LLM drafter returning generic content#

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.

Still need help?#

our contact form (Pro+)