Since upgrading gunicorn from 22.0.0 to 25.1.0, we occasionally get Control server error: [Errno 13] Permission denied errors.
https://mozilla.sentry.io/share/issue/64e08910fb3e441e9e4223c6da979892/
Version 25 introduced a control socket (Unix socket at /run/gunicorn.ctl by default) that is enabled by default. Our Docker container runs as an unprivileged user, which cannot write to /run/. The control socket allows runtime management of gunicorn via the gunicornc command-line tool. Commands include viewing worker status, adjusting worker count, and graceful reload/shutdown.
We don't use this new feature, so we can disable it.
Since upgrading
gunicornfrom 22.0.0 to 25.1.0, we occasionally getControl server error: [Errno 13] Permission deniederrors.https://mozilla.sentry.io/share/issue/64e08910fb3e441e9e4223c6da979892/
Version 25 introduced a control socket (Unix socket at
/run/gunicorn.ctlby default) that is enabled by default. Our Docker container runs as an unprivileged user, which cannot write to/run/. The control socket allows runtime management ofgunicornvia thegunicornccommand-line tool. Commands include viewing worker status, adjusting worker count, and graceful reload/shutdown.We don't use this new feature, so we can disable it.