Thanks a lot Graham for advice I tried the settings
WSGIScriptAlias / /opt/hosts/pyws.test/pyws/pyws/wsgi.py process-group=pyws.st application-group=%{GLOBAL} WSGIImportScript /opt/hosts/pyws.test/pyws/pyws/wsgi_monitor.py process-group=pyws.st application-group=%{GLOBAL} but I still got the error. Bellow is the stack I can now reproduce the problem on all our environments (5). They all use the same technology stack. [Thu Oct 08 14:18:25.997539 2015] [:error] [pid 1827] django.setup() [Thu Oct 08 14:18:25.997546 2015] [:error] [pid 1827] File "/opt/python_envs/pyws/lib/python3.3/site-packages/django/__init__.py", line 17, in setup [Thu Oct 08 14:18:25.997553 2015] [:error] [pid 1827] configure_logging(settings.LOGGING_CONFIG, settings.LOGGING) [Thu Oct 08 14:18:25.997560 2015] [:error] [pid 1827] File "/opt/python_envs/pyws/lib/python3.3/site-packages/django/utils/log.py", line 86, in configure_logging [Thu Oct 08 14:18:25.997567 2015] [:error] [pid 1827] logging_config_func(logging_settings) [Thu Oct 08 14:18:25.997574 2015] [:error] [pid 1827] File "/opt/rh/python33/root/usr/lib64/python3.3/logging/config.py", line 795, in dictConfig [Thu Oct 08 14:18:25.997581 2015] [:error] [pid 1827] dictConfigClass(config).configure() [Thu Oct 08 14:18:25.997588 2015] [:error] [pid 1827] File "/opt/rh/python33/root/usr/lib64/python3.3/logging/config.py", line 555, in configure [Thu Oct 08 14:18:25.997595 2015] [:error] [pid 1827] filters[name] = self.configure_filter(filters[name]) [Thu Oct 08 14:18:25.997601 2015] [:error] [pid 1827] File "/opt/rh/python33/root/usr/lib64/python3.3/logging/config.py", line 679, in configure_filter [Thu Oct 08 14:18:25.997609 2015] [:error] [pid 1827] result = self.configure_custom(config) [Thu Oct 08 14:18:25.997615 2015] [:error] [pid 1827] File "/opt/rh/python33/root/usr/lib64/python3.3/logging/config.py", line 472, in configure_custom [Thu Oct 08 14:18:25.997622 2015] [:error] [pid 1827] c = self.resolve(c) [Thu Oct 08 14:18:25.997629 2015] [:error] [pid 1827] File "/opt/rh/python33/root/usr/lib64/python3.3/logging/config.py", line 387, in resolve [Thu Oct 08 14:18:25.997635 2015] [:error] [pid 1827] found = self.importer(used) [Thu Oct 08 14:18:25.997649 2015] [:error] [pid 1827] [Thu Oct 08 14:18:25.997658 2015] [:error] [pid 1827] # ProcessId: 1827 [Thu Oct 08 14:18:25.997674 2015] [:error] [pid 1827] # ThreadID: 140423838201600 File "/opt/python_envs/pyws/lib/python3.3/site-packages/raven/middleware.py", line 35, in __call__ [Thu Oct 08 14:18:25.997684 2015] [:error] [pid 1827] iterable = self.application(environ, start_response) [Thu Oct 08 14:18:25.997692 2015] [:error] [pid 1827] File "/opt/python_envs/pyws/lib/python3.3/site-packages/django/core/handlers/wsgi.py", line 189, in __call__ [Thu Oct 08 14:18:25.997699 2015] [:error] [pid 1827] response = self.get_response(request) [Thu Oct 08 14:18:25.997706 2015] [:error] [pid 1827] File "/opt/python_envs/pyws/lib/python3.3/site-packages/django/core/handlers/base.py", line 108, in get_response [Thu Oct 08 14:18:25.997713 2015] [:error] [pid 1827] response = middleware_method(request) [Thu Oct 08 14:18:25.997720 2015] [:error] [pid 1827] File "/opt/python_envs/pyws/lib/python3.3/site-packages/django/middleware/common.py", line 74, in process_request [Thu Oct 08 14:18:25.997727 2015] [:error] [pid 1827] if (not urlresolvers.is_valid_path(request.path_info, urlconf) and [Thu Oct 08 14:18:25.997734 2015] [:error] [pid 1827] File "/opt/python_envs/pyws/lib/python3.3/site-packages/django/core/urlresolvers.py", line 647, in is_valid_path [Thu Oct 08 14:18:25.997748 2015] [:error] [pid 1827] resolve(path, urlconf) [Thu Oct 08 14:18:25.997755 2015] [:error] [pid 1827] File "/opt/python_envs/pyws/lib/python3.3/site-packages/django/core/urlresolvers.py", line 522, in resolve [Thu Oct 08 14:18:25.997762 2015] [:error] [pid 1827] return get_resolver(urlconf).resolve(path) [Thu Oct 08 14:18:25.997769 2015] [:error] [pid 1827] File "/opt/python_envs/pyws/lib/python3.3/site-packages/django/core/urlresolvers.py", line 368, in resolve [Thu Oct 08 14:18:25.997776 2015] [:error] [pid 1827] sub_match = pattern.resolve(new_path) [Thu Oct 08 14:18:25.997783 2015] [:error] [pid 1827] File "/opt/python_envs/pyws/lib/python3.3/site-packages/django/core/urlresolvers.py", line 368, in resolve [Thu Oct 08 14:18:25.997790 2015] [:error] [pid 1827] sub_match = pattern.resolve(new_path) [Thu Oct 08 14:18:25.997797 2015] [:error] [pid 1827] File "/opt/python_envs/pyws/lib/python3.3/site-packages/django/core/urlresolvers.py", line 240, in resolve [Thu Oct 08 14:18:25.997804 2015] [:error] [pid 1827] return ResolverMatch(self.callback, args, kwargs, self.name) [Thu Oct 08 14:18:25.997810 2015] [:error] [pid 1827] File "/opt/python_envs/pyws/lib/python3.3/site-packages/django/core/urlresolvers.py", line 247, in callback [Thu Oct 08 14:18:25.997817 2015] [:error] [pid 1827] self._callback = get_callable(self._callback_str) [Thu Oct 08 14:18:25.997824 2015] [:error] [pid 1827] File "/opt/python_envs/pyframe/lib64/python3.3/functools.py", line 251, in wrapper [Thu Oct 08 14:18:25.997831 2015] [:error] [pid 1827] result = user_function(*args, **kwds) [Thu Oct 08 14:18:25.997838 2015] [:error] [pid 1827] File "/opt/python_envs/pyws/lib/python3.3/site-packages/django/core/urlresolvers.py", line 106, in get_callable [Thu Oct 08 14:18:25.997845 2015] [:error] [pid 1827] mod = import_module(mod_name) [Thu Oct 08 14:18:25.997851 2015] [:error] [pid 1827] File "/opt/python_envs/pyframe/lib64/python3.3/importlib/__init__.py", line 90, in import_module [Thu Oct 08 14:18:25.997858 2015] [:error] [pid 1827] return _bootstrap._gcd_import(name[level:], package, level) [Thu Oct 08 14:18:25.997865 2015] [:error] [pid 1827] File "<frozen importlib._bootstrap>", line 1584, in _gcd_import [Thu Oct 08 14:19:06.184766 2015] [core:error] [pid 2038] [client 10.71.16.7:64015] Script timed out before returning headers: wsgi.py [Thu Oct 08 14:19:06.771853 2015] [core:error] [pid 1982] [client 10.71.16.7:49284] Script timed out before returning headers: wsgi.py [Thu Oct 08 14:19:09.944177 2015] [core:error] [pid 1958] [client 10.71.16.7:62722] Script timed out before returning headers: wsgi.py -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+unsubscr...@googlegroups.com. To post to this group, send email to modwsgi@googlegroups.com. Visit this group at http://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/d/optout.