CONFIDENTIAL — Internal Use Only
Last Updated: April 7, 2026
| Symptom | Run This |
|---|---|
| Agent not responding | curl https://[agent-subdomain].up.railway.app/health |
| Gateway down | curl https://openclaw-production-a09d.up.railway.app/health |
| WebSocket fails | Check browser console for "origin not allowed" |
| Skills won't install | Verify agent is online first |
Cause: WebSocket origin mismatch on Railway.
Fix for user:
- Go to Dashboard → Copy Gateway Token
- Open agent's OpenClaw URL → Settings
- Paste token in "Gateway Token" field
- Save and refresh
Root cause: The gateway config already has allowedOrigins: ["*"] but some browsers/proxies strip the origin header. Railway doesn't forward Origin header by default.
Error: "Agent offline. Install your agent first, then retry installing skills."
Cause: Gateway unreachable or agent not running.
Fix:
- Verify agent is running:
/dashboardshows "running" status - If offline → redeploy agent first
- If online but skills still fail → skill is saved to DB, will auto-sync on next agent sync
- Manual retry: Refresh dashboard, try installing skill again
Background: Skills are saved to Prisma first, then deployed to gateway. If gateway is down, skill stays in DB and syncs automatically when agent reconnects.
Symptom: "No valid gateway token detected" warning in dashboard.
Fix:
- Click "Refresh token" button in dashboard OpenClaw Controls section
- If still fails → manual pair:
- Copy token from dashboard
- Open agent's OpenClaw URL
- Settings → Paste token
- Restart agent if needed
Cause: Gateway container crashed or didn't start properly.
Fix:
- Check Railway dashboard → openclaw-gateway → Logs
- If "Invalid --bind" error:
- Verify
gateway/Dockerfileusesbind: "lan"NOT0.0.0.0 - Source must be "GitHub Repo" not "Docker Image"
- Verify
- Redeploy if needed
Reference: skills/railway-gateway-skill.md
Check:
/api/jobs/boardreturns data?- External jobs:
curl https://www.thegitcity.com/api/jobsreachable? - Database:
prisma.jobListinghas records?
Verify:
- Bankr API key set in user settings
- User has USDC balance
- Base network connectivity
- x402 endpoint reachable
| Issue | Escalation |
|---|---|
| Complete outage | Check Railway status, Vercel status |
| Database issues | Check Neon dashboard |
| Gateway token problems | Review lib/gateway-token.ts |
| Provisioning failures | Check agentbot-backend logs |
# Check gateway health
curl https://openclaw-production-a09d.up.railway.app/health
# Check specific agent
curl https://[subdomain].up.railway.app/api/status
# Database query (via prisma)
npx prisma db execute --sql="SELECT COUNT(*) FROM Agent"
# View recent errors
grep -r "ERROR" agentbot-backend/logs/- ❌ Delete users' installed skills
- ❌ Reset gateway token for all users (breaks existing pairings)
- ❌ Clear Prisma tables without backup
- ❌ Push to stable-v1 without testing
- OpenClaw:
2026.4.1 - Node: Check
package.json - Gateway:
ghcr.io/openclaw/openclaw:latest - Main repo commit:
8adbc45d - Docs submodule:
2f36af2