Skip to content

v4.0.7 — sync-all permissions, Redis/Sentinel resilience, optional pm2-independent deployment

Choose a tag to compare

@igorls igorls released this 16 May 22:16
· 47 commits to main since this release

Note: 4.0.6 was never tagged — that version sat on main and some operators deployed it directly before a release tag existed. To avoid ambiguity with those pre-tag production deployments, this work is released as 4.0.7. Functionally identical to what was briefly labeled 4.0.6.

⚠️ Before you upgrade

Hyperion now requires glibc ≥ 2.38 (Ubuntu 24.04+).

uWebSockets.js prebuilt binaries need GLIBC_2.38, so the API/stream server and indexer-controller will not start on Ubuntu 22.04 (glibc 2.35). Symptom:

Error: GLIBC_2.38 not found (required by .../uWebSockets.js/uws_linux_x64_*.node)

This is not new — every supported uWebSockets.js version needs glibc 2.38. It is simply documented now. Still on Ubuntu 22.04? Pick one:

  • Upgrade the host to Ubuntu 24.04+, or run Hyperion in a glibc ≥ 2.38 container (e.g. node:22-trixie-slim).
  • Pin the last glibc-2.35-compatible build — after each build/npm ci, force-install uWebSockets.js v20.52.0:
    npm install --no-save github:uNetworking/uWebSockets.js#v20.52.0
    
    (Trades newer uWS fixes for compatibility; re-apply after every rebuild.)
  • Build uWebSockets.js from source on the host against its local glibc.

Highlights

🆕 Optional pm2-independent deployment — run Hyperion under systemd instead of pm2. New systemd/ unit templates (graceful controller stop for the indexer) plus an opt-in HYP_NO_PM2=1 mode for ./run / ./stop. pm2 stays the default and is unchanged when the variable is unset. Single-instance scope — pm2 cluster scaling (api.pm2_scaling) is intentionally not reproduced.

🐛 sync all no longer skips permissions — it previously synced voters/accounts/proposals/contract-state but silently skipped permissions, leaving the MongoDB permissions collection incomplete after a bootstrap or restore. It now runs with a proper indexer pause, and the standalone sync permissions race is closed. Re-run ./hyp-control sync all <chain> once after upgrading to backfill.

🐛 Redis replica / Sentinel resilience (#164, thanks @rwcii) — startup cache-invalidation DELs tolerate READONLY instead of crash-looping; RedisConfig now surfaces auth + Sentinel fields.

Other fixes

  • Contract-state sync no longer aborts the run on a malformed/missing chain config — it reports a clear, actionable error instead.
  • ./stop <chain>-api now actually stops the API (it was being treated as an indexer).
  • Indexer status check is process-manager agnostic (no longer shells out to pm2 jlist; also fixes a latent always-false filter).
  • Invalid query params return HTTP 400 (was 500); action regrouping handles notifications and inline actions correctly.

Maintenance

Dependency refresh — @wharfkit/antelope 1.2.0, amqplib 2.0.1, mongodb 7.2.0, fastify 5.8.5, undici 8.3.0, ws 8.20.1, zod 4.4.3, typescript 6.0.3, uWebSockets.js v20.67.0, plus Fastify plugin patches — and reconciled lockfiles.

Acknowledgements

Thanks to @eosusa for the field reports that drove several of these fixes — the launcher / process-management issues (./stop on the API, the glibc startup failure) and the sync all failures — and to @rwcii (#164) for the Redis replica/Sentinel resilience work.


Full details: CHANGELOG.md