mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
nginx workers are dropped to the `romm` user while gunicorn creates /tmp/gunicorn.sock as root. This only worked because gunicorn's default umask leaves the socket world-writable; on some hosts (e.g. OMV) the worker cannot connect() and every /api request 502s with "connect() to unix:/tmp/gunicorn.sock failed (13: Permission denied)". Proxy over loopback TCP (127.0.0.1:5000), which gunicorn already binds, so there is no socket file owner/mode to mismatch. Readiness now polls the TCP port instead of waiting for the socket file. Fixes #3809 Generated-By: PostHog Code Task-Id: 3cb72cda-eb77-4bc0-97ab-cde365a031c9