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:
@@ -6,8 +6,8 @@ loglevel = os.getenv('AE_LOG_LVL', 'warning')
|
|||||||
accesslog = "-" # stdout
|
accesslog = "-" # stdout
|
||||||
errorlog = "-" # stderr
|
errorlog = "-" # stderr
|
||||||
|
|
||||||
# Disable control socket to prevent permission issues on volume mounts
|
# Use /dev/shm for the control socket to avoid permission issues on volume mounts
|
||||||
control_socket = None
|
control_socket = "/dev/shm/gunicorn.ctl"
|
||||||
|
|
||||||
# ... (existing bind/chdir) ...
|
# ... (existing bind/chdir) ...
|
||||||
bind = "0.0.0.0:5005"
|
bind = "0.0.0.0:5005"
|
||||||
|
|||||||
Reference in New Issue
Block a user