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, setFERRO_AGENT_DOWNLOAD_BASE_URLto your public mirror or build from source). - Check systemd status and recent logs on the runner host:
sudo systemctl status ferro-agentsudo journalctl -u ferro-agent -n 100 --no-pager- Verify
FERRO_CONTROL_PLANEin/etc/ferro/agent.envis reachable from the runner (curl -fsS $FERRO_CONTROL_PLANE/api/health). - If the log shows HTTP
401, thefrn_...token is invalid or the node was deleted in the dashboard—create a new node, update/etc/ferro/node-token(loaded via systemdLoadCredential), and restartferro-agent.service. - If
ferro-agentexits on startup with a sandbox probe error (--sandbox=autofails closed), verify theferro-jobuser and/etc/polkit-1/rules.d/50-ferro-agent.rulesexist forsystemd-run(on Ubuntu 24.04+, AppArmor restricts unprivileged user namespaces forbwrap, so prefer thesystemdbackend).
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 confirmFERRO_BIND_ADDRbinds an interface your workstation can route to (default is loopback127.0.0.1:7420). - If the agent refuses startup with an
offloadPublicKeypin mismatch after an intentional Control Plane signing key rotation, stopferro-agent, remove<work_dir>/private/offload-signing-pubkey.b64, and restart the service to re-pin. - Check label matching:
ferro runonly selects an online node with free concurrency slots matching all labels inferro.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
ferroOS user on your runner lacks SSH keys or Git HTTPS credentials to readrepoUrl. - 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
repoUrlin Project Settings and testgit ls-remote <repoUrl>as theferrouser 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_KEYand a validEMAIL_FROMsender 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/emailrequire explicit acceptance of the Terms of Service and Privacy Policy (termsAccepted: true); missing consent returns HTTP400. - 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 defaultunknownbucket. - Cookie / origin mismatch: In self-hosted deployments, confirm
NEXT_PUBLIC_APP_URLandBETTER_AUTH_URLmatch 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 inapprovalState = pendinguntil an orgowneroradminopens the run in Dashboard → CI Runs and clicks Approve or Reject. - Test fixture missing during
ferro run: Run withferro run --verboseto see whether the built-in sensitive file denylist ormax_file_mbcap skipped the file. Opt safe fixtures back in viainclude_sensitivein ferro.toml.
Still stuck? See Contact & Support.