fix(gunicorn): set control_socket to /dev/shm path

Newer gunicorn (post-23.0.0) added _get_control_socket_path() which
calls os.path.isabs() on the value — crashing when it is None.
Point the socket to /dev/shm (already used for worker_tmp_dir) so it
is writable inside the container and satisfies the new gunicorn code.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Scott Idem
2026-03-24 20:24:12 -04:00
parent cd208ef25c
commit 6fd6899879

View File

@@ -6,8 +6,8 @@ loglevel = os.getenv('AE_LOG_LVL', 'warning')
accesslog = "-" # stdout
errorlog = "-" # stderr
# Disable control socket to prevent permission issues on volume mounts
control_socket = None
# Use /dev/shm for the control socket to avoid permission issues on volume mounts
control_socket = "/dev/shm/gunicorn.ctl"
# ... (existing bind/chdir) ...
bind = "0.0.0.0:5005"