From 8c9d263afb15379429e072ab4aee276e90594420 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Tue, 24 Mar 2026 15:41:54 -0400 Subject: [PATCH] Disable Gunicorn control_socket in FastAPI configs Gunicorn 25.1.0+ enables a 'control_socket' by default, which creates a root-owned 'gunicorn.ctl' file in the chdir directory. When this directory is a volume mount (as in our dev/test setups), it causes permission errors during Docker build context gathering. This change explicitly sets 'control_socket = None' to prevent the creation of this file. --- conf/aether_api_v5_fastapi_gunicorn_conf.py | 3 +++ conf/aether_fastapi_gunicorn_conf.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/conf/aether_api_v5_fastapi_gunicorn_conf.py b/conf/aether_api_v5_fastapi_gunicorn_conf.py index 9eba2e4..4ef479e 100644 --- a/conf/aether_api_v5_fastapi_gunicorn_conf.py +++ b/conf/aether_api_v5_fastapi_gunicorn_conf.py @@ -8,6 +8,9 @@ errorlog = "/logs/gunicorn_error.log" # "-" # stderr # "logfile" does not seem to actually do anything # logfile = "/logs/gunicorn.log" # "-" # stderr +# Disable control socket to prevent permission issues on volume mounts +control_socket = None + bind = "0.0.0.0:5005" # bind = "unix:/tmp/gunicorn.sock" diff --git a/conf/aether_fastapi_gunicorn_conf.py b/conf/aether_fastapi_gunicorn_conf.py index 29aad7e..2b8c8e1 100644 --- a/conf/aether_fastapi_gunicorn_conf.py +++ b/conf/aether_fastapi_gunicorn_conf.py @@ -6,6 +6,9 @@ loglevel = os.getenv('AE_LOG_LVL', 'warning') accesslog = "-" # stdout errorlog = "-" # stderr +# Disable control socket to prevent permission issues on volume mounts +control_socket = None + # ... (existing bind/chdir) ... bind = "0.0.0.0:5005" worker_tmp_dir = "/dev/shm"