Repository navigation
v0.6.4.1 — restart-loop hotfix
Hotfix on top of v0.6.4. No new features, no DB migrations — drop-in replacement for any 0.6.x deployment showing the "container restarts every ~5 hours" pattern.
Why upgrade
If you're running 0.6.3 or 0.6.4, your container is silently rate-limiting its own healthcheck. About 5 hours after every boot, wget /health from the Dockerfile healthcheck starts getting 429 Too Many Requests, swarm/Compose flags the container unhealthy, and it gets restarted. The new container starts a fresh 5-hour timer, and the loop continues forever.
This hotfix breaks the loop. 0.6.3 and 0.6.4 are now marked deprecated in the changelog.
Fixed
- Rate-limit counter never expired.
Redis.Incrementreset the key's TTL on every call (INCRfollowed unconditionally byEXPIRE). The Dockerfile healthcheck (wget /healthevery 30s) kept therl:::1counter alive forever instead of expiring per-minute, so the counter accumulated cumulatively. After ~5 hours (600 hits ÷ 2/min), it crossed the 600 req/min threshold and/healthstarted returning429. Now uses an atomic Lua script that only sets the TTL when the key is created. /healthwas wrapped by the rate limiter, CORS, and body-size middlewares. Healthchecks must never be subject to client-facing throttles. Now mounted on a separate root mux that bypasses all middleware.
Added
RATE_LIMIT_PER_MINUTEenv var (default600). Lower it on small deployments or raise it for high-traffic apps without rebuilding the image.
How to upgrade
docker pull ghcr.io/arkhe-systems/senddock:latest
# or pin: ghcr.io/arkhe-systems/senddock:0.6.4.1No migration to run. No env vars required. Just redeploy.