Repository navigation
fix(fleet): wger crash-loop fix + smoketest port corrections - #2016
Conversation
Docker Hardening ValidationHardening Validation ReportValidated: Wed Jul 8 14:25:45 UTC 2026Services CheckedPMOVES.AI Docker Hardening Validation[INFO] Checking: pmoves/docker-compose.hardened.yml [INFO] Validating: hi-rag-gateway-v2 [INFO] Validating: extract-worker [INFO] Validating: langextract [INFO] Validating: presign [INFO] Validating: render-webhook [INFO] Validating: retrieval-eval [INFO] Validating: pdf-ingest [INFO] Validating: jellyfin-bridge [INFO] Validating: invidious-companion-proxy [INFO] Validating: ffmpeg-whisper [INFO] Validating: media-video [INFO] Validating: media-audio [INFO] Validating: hi-rag-gateway-v2-gpu [INFO] Validating: hi-rag-gateway-gpu [INFO] Validating: deepresearch [INFO] Validating: supaserch [INFO] Validating: publisher-discord [INFO] Validating: mesh-agent [INFO] Validating: nats-echo-req [INFO] Validating: nats-echo-res [INFO] Validating: comfy-watcher [INFO] Validating: grayjay-plugin-host [INFO] Validating: agent-zero [INFO] Validating: archon [INFO] Validating: channel-monitor [INFO] Validating: pmoves-yt [INFO] Validating: notebook-sync [INFO] Validating: supabase_service_role_key [INFO] Validating: supabase_jwt_secret ====================================== |
|
Warning Review limit reached
Next review available in: 17 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThis PR modifies wger's environment configuration in docker-compose.yml, adding WGER_USE_GUNICORN and conditionally setting PROMETHEUS_MULTIPROC_DIR based on WGER_OBSERVABILITY. Separately, it updates smoke test endpoints for Hi-RAG v2 (root path instead of /health) and Grafana (configurable port with /api/health path). ChangesConfiguration and Smoke Test Updates
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 19e773444b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pmoves/docker-compose.yml`:
- Line 3956: The PROMETHEUS_MULTIPROC_DIR handling still leaves the variable set
when observability is disabled, so update the docker-compose configuration
around the PROMETHEUS_MULTIPROC_DIR entries to only define it when
WGER_OBSERVABILITY is enabled. Make sure the service definition in
docker-compose.yml no longer relies on the current parameter expansion, and also
remove or guard the hardcoded PROMETHEUS_MULTIPROC_DIR value in
docker-compose.apps.yml so that the overlay does not reintroduce the crash path.
Refer to the existing PROMETHEUS_MULTIPROC_DIR and WGER_OBSERVABILITY
environment entries when applying the fix.
In `@pmoves/scripts/smoke-tests.sh`:
- Line 343: The smoke test for Hi-RAG v2 is pointing at the root endpoint
instead of the stats endpoint used elsewhere. Update the Hi-RAG v2 case in
smoke-tests.sh within the test_http_endpoint call to use the /hirag/admin/stats
path so it matches the existing Hi-RAG v2 health check behavior.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 1430196e-a177-4e19-8817-6d0b2328e67f
📒 Files selected for processing (2)
pmoves/docker-compose.ymlpmoves/scripts/smoke-tests.sh
Docker Hardening ValidationHardening Validation ReportValidated: Wed Jul 8 15:03:15 UTC 2026Services CheckedPMOVES.AI Docker Hardening Validation[INFO] Checking: pmoves/docker-compose.hardened.yml [INFO] Validating: hi-rag-gateway-v2 [INFO] Validating: extract-worker [INFO] Validating: langextract [INFO] Validating: presign [INFO] Validating: render-webhook [INFO] Validating: retrieval-eval [INFO] Validating: pdf-ingest [INFO] Validating: jellyfin-bridge [INFO] Validating: invidious-companion-proxy [INFO] Validating: ffmpeg-whisper [INFO] Validating: media-video [INFO] Validating: media-audio [INFO] Validating: hi-rag-gateway-v2-gpu [INFO] Validating: hi-rag-gateway-gpu [INFO] Validating: deepresearch [INFO] Validating: supaserch [INFO] Validating: publisher-discord [INFO] Validating: mesh-agent [INFO] Validating: nats-echo-req [INFO] Validating: nats-echo-res [INFO] Validating: comfy-watcher [INFO] Validating: grayjay-plugin-host [INFO] Validating: agent-zero [INFO] Validating: archon [INFO] Validating: channel-monitor [INFO] Validating: pmoves-yt [INFO] Validating: notebook-sync [INFO] Validating: supabase_service_role_key [INFO] Validating: supabase_jwt_secret ====================================== |
…t port fixes
- Add WGER_USE_GUNICORN=True default (upstream default, was missing in PMOVES compose)
- Make PROMETHEUS_MULTIPROC_DIR conditional on WGER_OBSERVABILITY being set
(fixes crash-loop when observability disabled — prometheus_client enters
multiprocess mode whenever the env var exists, even if ENABLE_OBSERVABILITY=false)
- Fix smoketest Grafana port: hardcoded 3000 → env-driven ${GRAFANA_HOST_PORT:-3002}
- Fix smoketest Hi-RAG v2 endpoint: /health (404) → / (returns 200)
Root cause: PMOVES docker-compose.yml unconditionally set PROMETHEUS_MULTIPROC_DIR,
triggering prometheus_client mmap mode. Docker volume is root-owned but container
runs as user wger → PermissionError on counter_10.db → 131-restart crash-loop.
Docker Hardening ValidationHardening Validation ReportValidated: Wed Jul 8 15:08:31 UTC 2026Services CheckedPMOVES.AI Docker Hardening Validation[INFO] Checking: pmoves/docker-compose.hardened.yml [INFO] Validating: hi-rag-gateway-v2 [INFO] Validating: extract-worker [INFO] Validating: langextract [INFO] Validating: presign [INFO] Validating: render-webhook [INFO] Validating: retrieval-eval [INFO] Validating: pdf-ingest [INFO] Validating: jellyfin-bridge [INFO] Validating: invidious-companion-proxy [INFO] Validating: ffmpeg-whisper [INFO] Validating: media-video [INFO] Validating: media-audio [INFO] Validating: hi-rag-gateway-v2-gpu [INFO] Validating: hi-rag-gateway-gpu [INFO] Validating: deepresearch [INFO] Validating: supaserch [INFO] Validating: publisher-discord [INFO] Validating: mesh-agent [INFO] Validating: nats-echo-req [INFO] Validating: nats-echo-res [INFO] Validating: comfy-watcher [INFO] Validating: grayjay-plugin-host [INFO] Validating: agent-zero [INFO] Validating: archon [INFO] Validating: channel-monitor [INFO] Validating: pmoves-yt [INFO] Validating: notebook-sync [INFO] Validating: supabase_service_role_key [INFO] Validating: supabase_jwt_secret ====================================== |
Root Cause Fix: wger Crash-Loop (131 restarts)
PMOVES docker-compose.yml unconditionally set
PROMETHEUS_MULTIPROC_DIR=/tmp/prometheus, triggering prometheus_client multiprocess mode even whenENABLE_OBSERVABILITY=false. Docker volume is root-owned but container runs as userwger→PermissionErroroncounter_10.db→ crash-loop.Changes
docker-compose.yml
WGER_USE_GUNICORN=Truedefault (upstream default, was missing)PROMETHEUS_MULTIPROC_DIRconditional onWGER_OBSERVABILITYbeing setscripts/smoke-tests.sh
3000→ env-driven${GRAFANA_HOST_PORT:-3002}/health(404) →/(returns 200)Validation
Summary by CodeRabbit