Thank you for the detailed post. Does going to WSGIDaemon really help that much on resources and other things? Or is it just a "nice to have"?
Based on your steps and what I am seeing, it seems that the failure happens when that final request his apache and its passed off to the WSGIDaemon during that last connection.
I had been running as LogLevel Debug, but was unaware of the WSGIVerboseDebugging. I enabled that and will provide the logs at the bottom of my message (I cleaned up and showed what seemed relevant instead of just posting everything.) So you are aware, the redirecting to /tmp/wsgi failed as well.
I did open a support ticket to KnownHost to see if I could get any additional information to help. They really run a very basic config with nothing special. The tech did mention one thing that he thought could be an issue because was one of the mods installed in Apache --- mod_ruid2 He said he has seen this conflict with Tomcat because of how it handles PHP and user requests. I am not very familiar with that mod. Have you had any experience with it and could it cause conflicts?
core_module (static) authn_file_module (static) authn_core_module (static) authz_host_module (static) authz_groupfile_module (static) authz_user_module (static) authz_core_module (static) access_compat_module (static) auth_basic_module (static) socache_shmcb_module (static) socache_dbm_module (static) so_module (static) include_module (static) filter_module (static) deflate_module (static) http_module (static) mime_module (static) log_config_module (static) logio_module (static) expires_module (static) headers_module (static) unique_id_module (static) setenvif_module (static) proxy_module (static) proxy_connect_module (static) proxy_http_module (static) slotmem_shm_module (static) ssl_module (static) mpm_prefork_module (static) unixd_module (static) status_module (static) autoindex_module (static) info_module (static) suexec_module (static) cgi_module (static) negotiation_module (static) dir_module (static) actions_module (static) userdir_module (static) alias_module (static) rewrite_module (static) bwlimited_module (shared) ruid2_module (shared) php5_module (shared) security2_module (shared) wsgi_module (shared)
Here are the logs with what seemed relevant. If you want everything with a full log, I can certainly provide it... From what I can tell the WSGIDaemon process is starting up and waiting with all the threads and settings I have set. So it appears to be during that last hand off that it freaks out.....
[Wed Dec 10 19:56:10.002390 2014] [ssl:info] [pid 24734] AH01876: mod_ssl/2.4.10 compiled against Server: Apache/2.4.10, Library: OpenSSL/1.0.1e
[Wed Dec 10 19:56:10.018768 2014] [suexec:notice] [pid 24734] AH01232: suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Wed Dec 10 19:56:10.018900 2014] [:notice] [pid 24734] ModSecurity: APR compiled version="1.5.1"; loaded version="1.5.1"
[Wed Dec 10 19:56:10.018915 2014] [:notice] [pid 24734] ModSecurity: PCRE compiled version="8.36 "; loaded version="8.36 2014-09-26"
[Wed Dec 10 19:56:10.018929 2014] [:notice] [pid 24734] ModSecurity: LUA compiled version="Lua 5.1"
[Wed Dec 10 19:56:10.018944 2014] [:notice] [pid 24734] ModSecurity: LIBXML compiled version="2.9.2"
[Wed Dec 10 19:56:10.018957 2014] [:notice] [pid 24734] Status engine is currently disabled, enable it by set SecStatusEngine to On.
Wed Dec 10 19:56:11.094046 2014] [:debug] [pid 24737] mod_wsgi.c(10488): mod_wsgi (pid=24737): Socket for 'mydomain_com' is '/wsgisock/wsgi.24737.0.1.sock'.
[Wed Dec 10 19:56:11.094960 2014] [:info] [pid 24742] mod_wsgi (pid=24742): Starting process 'mydomain_com' with uid=99, gid=99 and threads=10.
[Wed Dec 10 19:56:11.097400 2014] [mpm_prefork:notice] [pid 24737] AH00163: Apache/2.4.10 (Unix) OpenSSL/1.0.1e-fips mod_bwlimited/1.4 PHP/5.4.34 mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
[Wed Dec 10 19:56:11.097463 2014] [:info] [pid 24746] mod_wsgi (pid=24746): Initializing Python.
[Wed Dec 10 19:56:11.097501 2014] [mpm_prefork:debug] [pid 24737] prefork.c(995): AH00165: Accept mutex: sysvsem (default: sysvsem)
[Wed Dec 10 19:56:11.108088 2014] [proxy:debug] [pid 24747] proxy_util.c(1771): AH00925: initializing worker proxy:reverse shared
[Wed Dec 10 19:56:11.108152 2014] [proxy:debug] [pid 24747] proxy_util.c(1813): AH00927: initializing worker proxy:reverse local
[Wed Dec 10 19:56:11.108216 2014] [proxy:debug] [pid 24747] proxy_util.c(1864): AH00931: initialized single connection worker in child 24747 for (*)
[Wed Dec 10 19:56:11.108268 2014] [:debug] [pid 24742] mod_wsgi.c(11873): mod_wsgi (pid=24742): Process 'mydomain_com' logging to '
clientsupportsystem.com'.
[Wed Dec 10 19:56:11.108348 2014] [:info] [pid 24747] mod_wsgi (pid=24747): Initializing Python.
[Wed Dec 10 19:56:11.108363 2014] [:info] [pid 24742] mod_wsgi (pid=24742): Attach interpreter ''.
[Wed Dec 10 19:56:11.108804 2014] [:debug] [pid 24742] mod_wsgi.c(11253): mod_wsgi (pid=24742): Starting 10 threads in daemon process 'mydomain_com'.
[Wed Dec 10 19:56:11.108812 2014] [:debug] [pid 24742] mod_wsgi.c(11057): mod_wsgi (pid=24742): Enable deadlock thread in process 'mydomain_com'.
[Wed Dec 10 19:56:11.108810 2014] [:debug] [pid 24742] mod_wsgi.c(11089): mod_wsgi (pid=24742): Enable monitor thread in process 'mydomain_com'.
[Wed Dec 10 19:56:11.108831 2014] [:debug] [pid 24742] mod_wsgi.c(11262): mod_wsgi (pid=24742): Starting thread 1 in daemon process 'mydomain_com'.
[Wed Dec 10 19:56:11.108849 2014] [:debug] [pid 24742] mod_wsgi.c(11093): mod_wsgi (pid=24742): Deadlock timeout is 300.
[Wed Dec 10 19:56:11.108869 2014] [:debug] [pid 24742] mod_wsgi.c(11096): mod_wsgi (pid=24742): Inactivity timeout is 300.
[Wed Dec 10 19:56:11.108876 2014] [:debug] [pid 24742] mod_wsgi.c(11262): mod_wsgi (pid=24742): Starting thread 2 in daemon process 'mydomain_com'.
[Wed Dec 10 19:58:40.871293 2014] [authz_core:debug] [pid 24743] mod_authz_core.c(802): [client
76.168.56.154:39988] AH01626: authorization result of Require all granted: granted
[Wed Dec 10 19:58:40.871314 2014] [authz_core:debug] [pid 24743] mod_authz_core.c(802): [client
76.168.56.154:39988] AH01626: authorization result of <RequireAny>: granted
[Wed Dec 10 19:58:40.871414 2014] [:error] [pid 24743] (13)Permission denied: [client
76.168.56.154:39988] mod_wsgi (pid=24743): Unable to connect to WSGI daemon process 'mydomain_com' on '/wsgisock/wsgi.24737.0.1.sock' after multiple attempts.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thank you again for looking at this... I appreciate the help so much!