1.6 KiB
1.6 KiB
Why Is No Explorer Data Loading?
If the explorer at https://explorer.d-bis.org shows no stats, no blocks, and no transactions (or only "—" and "Loading..."), the Explorer API backend is not responding.
Root cause
- The frontend loads all data from
/api/(e.g./api/v2/stats,/api/v2/blocks,/api/v2/transactions). - Nginx proxies
/api/to Blockscout on port 4000 (http://127.0.0.1:4000). - When Blockscout is not running or not reachable, nginx returns 502 Bad Gateway (sometimes 503).
- Every API request then fails, so no info loads.
How to fix it
-
On the Proxmox host that runs the explorer VM (VMID 5000):
cd /path/to/explorer-monorepo bash scripts/fix-502-blockscout.shOr from your machine if the script supports SSH:
EXPLORER_VM_HOST=root@192.168.11.12 bash scripts/fix-502-blockscout.sh -
Manually (inside the explorer VM, VMID 5000):
- Start PostgreSQL if used:
docker start blockscout-postgres - Start Blockscout:
cd /opt/blockscout && docker compose up -d - Ensure the Blockscout container is listening on port 4000.
- Start PostgreSQL if used:
-
Verify the API is up:
curl -sS -o /dev/null -w "%{http_code}" https://explorer.d-bis.org/api/v2/statsYou should see
200. If you see502, the backend is still down.
More detail
- 502 = nginx is up but the upstream (Blockscout on port 4000) is down or unreachable.
- Full runbook: EXPLORER_API_ACCESS.md (Fix 502, Blockscout, nginx proxy).
- API reference: EXPLORER_API_REFERENCE.md.