Operations
Troubleshooting
What a symptom means and how to fix it.
| What you see | Likely cause | Fix |
|---|---|---|
| The app has prices but no vault numbers; badge No engine data | Vercel has no DATABASE_URL | Add the pooled string and redeploy |
| Badge Engine offline | The engine is not running, or writes to a different database | Check Render's logs and /health. Both DATABASE_URLs must point at the same Neon database |
| Badge Engine not started | The database is connected but the engine never ran against it | Deploy the engine |
| The engine exits with Engine configuration is invalid | A variable is missing or malformed | The log lists which one. Usually DATABASE_URL, or an empty line like HL_ACCOUNT= copied from the example file |
| The engine exits with EXECUTION_MODE=live needs … | Live mode without its keys | Set EXECUTION_MODE=paper, or supply the keys it lists |
| The engine works for a while, then stops quoting | A free Render instance went to sleep | Use a paid instance |
Admin calls answer 403 ADMIN_DISABLED | ADMIN_TOKEN unset on Vercel, or shorter than 24 characters | Set it and redeploy |
Admin calls answer 401 UNAUTHORIZED | Wrong token | Check the Authorization: Bearer … header |
| Badge Halted | The kill switch is on (an operator, or the drawdown limit) | Release it with {"on": false}. If NAV is still 10 % under its 24 h peak, it re-engages |
| Connection errors from Vercel to the database | Vercel uses the direct string | Use the pooled one (host contains -pooler) |
Vault endpoints answer 503 DATABASE_NOT_CONFIGURED | No database on the API's side | Same fix as No engine data |
502 UPSTREAM_ERROR | The database, the RPC or an upstream API did not answer | Retry; check Neon and the Elysium RPC |
| Market making shows waiting for a fresh book | Hyperliquid's feed paused for more than 15 s | Nothing to do: quotes resume when the book is fresh |
| Harvest is blocked | No MOTION_TOKEN (and no stand-in), or the FeeSplitter has no pool yet | Set MOTION_TOKEN; the admin calls setPoolId once |
| Arbitrage is idle | MOTION has no HyperCore market | Set ARB_HL_COIN when it lists |
Where to look
/api/v1/status: database, heartbeat age, mode, kill switch, feed health./api/v1/ledger?kind=risk: every halt, drawdown and stale-data event.- The engine's
/healthand/statuson its own address. - Render's logs (one JSON line per event with
LOG_FORMAT=json).