Docs / Troubleshooting

Troubleshooting

Common failure modes across ferro-agent, direct CLI offload, GitHub CI checkouts, and account authentication.

1. Node shows Offline in Fleet Nodes

The Control Plane automatically marks a node offline when no heartbeat has been received for 90 seconds (default agent heartbeat interval is 15 seconds).

  • Confirm the binary was installed at /usr/local/bin/ferro-agent (if the bootstrap script failed downloading from a private GitHub release URL, set FERRO_AGENT_DOWNLOAD_BASE_URL to your public mirror or build from source).
  • Check systemd status and recent logs on the runner host:
Inspect ferro-agent service logs
sudo systemctl status ferro-agentsudo journalctl -u ferro-agent -n 100 --no-pager
  • Verify FERRO_CONTROL_PLANE in /etc/ferro/agent.env is reachable from the runner (curl -fsS $FERRO_CONTROL_PLANE/api/health).
  • If the log shows HTTP 401, the frn_... token is invalid or the node was deleted in the dashboard—create a new node, update /etc/ferro/node-token (loaded via systemd LoadCredential), and restart ferro-agent.service.
  • If ferro-agent exits on startup with a sandbox probe error (--sandbox=auto fails closed), verify the ferro-job user and /etc/polkit-1/rules.d/50-ferro-agent.rules exist for systemd-run (on Ubuntu 24.04+, AppArmor restricts unprivileged user namespaces for bwrap, so prefer the systemd backend).

2. Direct TLS offload, certificate pinning & Relay Mode

Relay Mode default & Direct TLS pinning

By default, ferro-agent binds 127.0.0.1:7420 (no inbound port required) and CLI offloads run in Relay Mode, syncing uncommitted workspace blobs over HTTPS through the Control Plane. Opt-in Direct Mode requires an https:// FERRO_DIRECT_URL: the agent serves rustls TLS with a self-signed certificate stored in <work_dir>/private/ whose SHA-256 fingerprint is automatically pinned by ferro-cli.

If ferro run fails TLS verification or uses Relay Mode unexpectedly:

  • Test reachability from your workstation to the node's directUrl: curl -kfsS https://<NODE_VPN_IP>:7420/health.
  • Check host firewalls (ufw/nftables/cloud security groups) and confirm FERRO_BIND_ADDR binds an interface your workstation can route to (default is loopback 127.0.0.1:7420).
  • If the agent refuses startup with an offloadPublicKey pin mismatch after an intentional Control Plane signing key rotation, stop ferro-agent, remove <work_dir>/private/offload-signing-pubkey.b64, and restart the service to re-pin.
  • Check label matching: ferro run only selects an online node with free concurrency slots matching all labels in ferro.toml / --label.

3. Git checkout failures now fail the run

ferro-agent fails closed during Git workspace preparation (crates/ferro-agent/src/executor.rs). If cloning, updating the bare mirror, fetching the commit SHA, checking out the branch/commit, or verifying HEAD fails, the agent immediately fails the run instead of executing the CI command in an empty or stale directory.

Common causes to check in the run's system logs:

  • Private repository auth: The ferro OS user on your runner lacks SSH keys or Git HTTPS credentials to read repoUrl.
  • Force-pushed or deleted commit SHA: GitHub cannot serve the commit referenced by an older webhook or retry. Push a new commit or retry on an existing ref.
  • Invalid URL or network timeout: Verify repoUrl in Project Settings and test git ls-remote <repoUrl> as the ferro user on the runner.

4. Email verification & sign-in

Email verification is enabled by default (and always required in production). After signing up at /signup, you must open the 1-hour verification link before signing in.

If sign-up, verification, or sign-in fails, check:

  • Verification email not received: Use the Resend verification email button on the post-signup screen or the unverified-account prompt on /login. In local dev without RESEND_API_KEY, emails are logged to the Control Plane server stdout.
  • HTTP 503 “Email delivery is not configured”: In production, both RESEND_API_KEY and a valid EMAIL_FROM sender address must be configured before sign-up, verification resend, or password reset can run.
  • Terms consent required: Both the web form and POST /api/auth/sign-up/email require explicit acceptance of the Terms of Service and Privacy Policy (termsAccepted: true); missing consent returns HTTP 400.
  • Password policy & reset: Passwords must be 10–128 characters. Forgotten passwords can be reset via /forgot-password (1-hour token; revokes all active sessions upon reset).
  • Rate limits (HTTP 429): Sign-in/sign-up is limited to 60 attempts/min per IP, and verification resend / password reset requests are limited to 5/min per IP and per email. Behind a reverse proxy, set TRUSTED_PROXY_HOPS (e.g. 1) so distinct users do not share the default unknown bucket.
  • Cookie / origin mismatch: In self-hosted deployments, confirm NEXT_PUBLIC_APP_URL and BETTER_AUTH_URL match the exact public origin you visit in the browser.

5. Fork PR approvals & skipped sync files

  • Fork PR run stays queued: With the default forkPrPolicy = require_approval, fork PR runs wait in approvalState = pending until an org owner or admin opens the run in Dashboard → CI Runs and clicks Approve or Reject.
  • Test fixture missing during ferro run: Run with ferro run --verbose to see whether the built-in sensitive file denylist or max_file_mb cap skipped the file. Opt safe fixtures back in via include_sensitive in ferro.toml.

Still stuck? See Contact & Support.