Skip to content

Troubleshooting & FAQ

When something breaks, start here. This section covers the most common issues encountered during development, deployment, and operation of Foundry.

Before diving into specific issues, run these checks:

Terminal window
# Check Convex dev is running
bunx convex dev # should show "Ready" with no errors
# Check function logs for recent errors
# Open Convex Dashboard → Logs tab
Terminal window
# Agent worker health check
curl http://localhost:3001/health # local
curl https://foundry-agent-worker.<account>.workers.dev/health # production
# Sandbox worker (production only)
curl https://migration-sandbox-worker.<account>.workers.dev/health
Terminal window
# Check Convex env vars
bunx convex env list
# Check Cloudflare secrets
cd agent-worker && wrangler secret list
cd sandbox-worker && wrangler secret list

Open the browser console and check for:

  • "Not authenticated" errors — Clerk env vars missing or JWT expired
  • "Access denied" errors — wrong organization selected or assertOrgAccess failure
  • WebSocket disconnection warnings — Convex URL incorrect or backend not running
ServiceLog Location
Next.js frontendBrowser console + Vercel function logs
Convex backendConvex Dashboard -> Logs tab
Agent worker (local)Terminal running bun run dev:agent
Agent worker (prod)cd agent-worker && wrangler tail
Sandbox workercd sandbox-worker && wrangler tail
ClerkClerk Dashboard -> Logs
GitHub webhooksGitHub App -> Advanced -> Recent deliveries