From c881430f4cd47f4ac1ffbb51372bb5204c6caa61 Mon Sep 17 00:00:00 2001 From: Adam Benesh Date: Thu, 7 Oct 2021 09:24:48 +0000 Subject: [PATCH] puppet: Add WSGIApplicationGroup config to Apache SSO example. Zulip apparently is now affected by a bad interaction between Apache's WSGI using Python subinterpreters and C extension modules like `re2` that are not designed for it. The solution is apparently to set WSGIApplicationGroup to %{GLOBAL}, which disables Apache's use of Python subinterpreters. See https://serverfault.com/questions/514242/non-responsive-apache-mod-wsgi-after-installing-scipy/514251#514251 for background. Fixes #19924. --- puppet/zulip/files/apache/sites/zulip-sso.example | 1 + 1 file changed, 1 insertion(+) diff --git a/puppet/zulip/files/apache/sites/zulip-sso.example b/puppet/zulip/files/apache/sites/zulip-sso.example index 91515b41ab..f3ce6a0f71 100644 --- a/puppet/zulip/files/apache/sites/zulip-sso.example +++ b/puppet/zulip/files/apache/sites/zulip-sso.example @@ -38,6 +38,7 @@ Listen 127.0.0.1:8888 WSGIScriptAlias / /home/zulip/deployments/current/zproject/wsgi.py WSGIDaemonProcess zulip threads=5 user=zulip python-path=/home/zulip/deployments/current/ WSGIProcessGroup zulip + WSGIApplicationGroup %{GLOBAL} ErrorLog ${APACHE_LOG_DIR}/zulip_auth_error.log