Hello Graham,

As I have SSL configured, attached are the logs (apache_logs.txt) from the 
/var/log/httpd/ssl_error_log 
with LogLevel debug and ErrorLog logs/ssl_error_log configured in ssl.conf.  
I believe it is complete from the beginning of a client connecting via GET 
to the index /, hitting POST to initiate the script, to the traceback from 
Python.  I tested running Apache and the WSGIDaemonProcess with my user 
account, knowing I can run the same Python script with this account without 
any issues from the command line (example: running the web.py application 
from the cli via python app2.py runs successfully without exception, or 
simply putting just the python script alone in a .py file and running it), 
however, it continues to fail via Apache/mod_wsgi.

Please let me know if there is more I can provide to potentially identify 
the issue.

Thank you.


On Tuesday, July 11, 2017 at 6:43:52 PM UTC-4, Graham Dumpleton wrote:
>
> I need to see the full context of the error message, not just the error 
> message. So the full messages around it, and if being raised from Python 
> the Python exception type and stack trace.
>
> There is no reason that INET socket connections should be prohibited 
> unless somehow SELinux is blocking them, which is probably unlikely. The 
> only time can think would get permission denied with socket connection was 
> if you were trying to use UNIX socket connection and Apache user doesn't 
> have access to the path for the UNIX socket.
>
> Need to see the full error messages to work out where you are getting this.
>
> Graham
>
> On 12 Jul 2017, at 4:15 AM, ncat <[email protected] <javascript:>> wrote:
>
> Hello,
>
>  
>
> I am running the following, with a clean install:
>
>  
>
> ·        RHEL 7
>
> ·        Apache 2.4.6
>
> ·        mod_wsgi 4.5.15
>
> ·        Python 2.7.5
>
> ·        web.py 0.37
>
>  
>
> I have successfully deployed my web.py application via mod_wsgi and 
> Apache, however, I am continuing to fight with an issue when I use the 
> Python ‘socket’ module inside of my code.  I identified that I am receiving 
> the socket.error error code [Errno 13] Permission denied.  I tried running 
> several scripts with socket itself and paramiko, and they both raise the 
> same error.  Running another module that would communicate with another 
> system inside the app, for example, ‘requests’, works just fine.  Running 
> the app via the web.py built-in CherryPy server works fine.  Running the 
> scripts via the Python interpreter works fine.
>
>  
>
> I am redirecting 80 to 443 in the httpd.conf so the ssl.conf contains the 
> VirtualHost configuration.
>
>  
>
> I’ve set the following in /etc/httpd/conf/httpd.conf:
>
>  
>
> #Global
>
> WSGISocketPrefix /var/run/httpd/wsgi
>
> User apache
>
> Group apache
>
>  
>
> I also tried /var/run/wsgi, but the results are the same.
>
>  
>
> Set the following WSGI directives in the VirtualHost in 
> /etc/httpd/conf.d/ssl.conf:
>
>  
>
> #Inside VirtualHost
>
> WSGIDaemonProcess example.com user=apache group=apache processes=2 
> threads=15
>
> WSGIProcessGroup example.com
>
>  
>
> Restarting Apache, I see the following file created in /var/run/httpd/wsgi 
> (or /var/run/ previously):
>
> srwx------.  1 apache root      0 Jul 11 18:02 wsgi.6619.0.1.sock
>
>  
>
> I still receive the [Errno 13] Permission denied when trying to run even a 
> simple socket script inside my web.py application.  (<server_ip> redacted)
>
>
> #simple socket script
>
> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
>
> server = (*<server_ip>*,22)
>
> s.connect(server)
>
> s.close()
>
>  
>
> Please let me know if anyone has any idea as to what may be occurring here.
>
>  
>
> Thanks.
>
> -- 
> 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 [email protected] <javascript:>.
> To post to this group, send email to [email protected] <javascript:>
> .
> Visit this group at https://groups.google.com/group/modwsgi.
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.
[Wed Jul 12 14:37:16.042604 2017] [ssl:info] [pid 14660] [client 
<web_client_ip_address>:12391] AH01964: Connection to child 5 established 
(server <server_fqdn>:443)
[Wed Jul 12 14:37:16.081559 2017] [ssl:debug] [pid 14660] 
ssl_engine_kernel.c(1812): [client <web_client_ip_address>:12391] AH02041: 
Protocol: TLSv1.2, Cipher: ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
[Wed Jul 12 14:37:16.098984 2017] [ssl:debug] [pid 14660] 
ssl_engine_kernel.c(224): [client <web_client_ip_address>:12391] AH02034: 
Initial (No.1) HTTPS request received for child 5 (server <server_fqdn>:443)
[Wed Jul 12 14:37:16.099441 2017] [authz_core:debug] [pid 14660] 
mod_authz_core.c(809): [client <web_client_ip_address>:12391] AH01626: 
authorization result of Require all granted: granted
[Wed Jul 12 14:37:16.099448 2017] [authz_core:debug] [pid 14660] 
mod_authz_core.c(809): [client <web_client_ip_address>:12391] AH01626: 
authorization result of <RequireAny>: granted
[Wed Jul 12 14:37:16.099554 2017] [authz_core:debug] [pid 14660] 
mod_authz_core.c(809): [client <web_client_ip_address>:12391] AH01626: 
authorization result of Require all granted: granted
[Wed Jul 12 14:37:16.099560 2017] [authz_core:debug] [pid 14660] 
mod_authz_core.c(809): [client <web_client_ip_address>:12391] AH01626: 
authorization result of <RequireAny>: granted
[Wed Jul 12 14:37:16.100654 2017] [wsgi:debug] [pid 14620] 
src/server/mod_wsgi.c(12650): mod_wsgi (pid=14620): Server listener address 
'|443'.
[Wed Jul 12 14:37:16.100673 2017] [wsgi:debug] [pid 14620] 
src/server/mod_wsgi.c(12659): mod_wsgi (pid=14620): Server listener address 
'|443' was found.
[Wed Jul 12 14:37:16.100679 2017] [wsgi:debug] [pid 14620] 
src/server/mod_wsgi.c(12672): mod_wsgi (pid=14620): Connection server matched 
was '<server_fqdn>|443'.
[Wed Jul 12 14:37:16.100683 2017] [wsgi:debug] [pid 14620] 
src/server/mod_wsgi.c(12687): mod_wsgi (pid=14620): Request server matched was 
'<server_fqdn>|443'.
[Wed Jul 12 14:37:16.100718 2017] [wsgi:info] [pid 14620] [remote 
<web_client_ip_address>:12391] mod_wsgi (pid=14620): Force restart of process 
'example.com'.
[Wed Jul 12 14:37:16.100773 2017] [wsgi:info] [pid 14660] [client 
<web_client_ip_address>:12391] mod_wsgi (pid=14660): Connect after WSGI daemon 
process restart, attempt #1.
[Wed Jul 12 14:37:16.100780 2017] [wsgi:info] [pid 14620] mod_wsgi (pid=14620): 
Shutdown requested 'example.com'.
[Wed Jul 12 14:37:16.100828 2017] [wsgi:info] [pid 14620] mod_wsgi (pid=14620): 
Exiting thread 0 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.100872 2017] [wsgi:info] [pid 14620] mod_wsgi (pid=14620): 
Exiting thread 10 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.100894 2017] [wsgi:info] [pid 14620] mod_wsgi (pid=14620): 
Exiting thread 9 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.101308 2017] [wsgi:info] [pid 14620] mod_wsgi (pid=14620): 
Exiting thread 8 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.101697 2017] [wsgi:info] [pid 14620] mod_wsgi (pid=14620): 
Exiting thread 6 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.102094 2017] [wsgi:info] [pid 14620] mod_wsgi (pid=14620): 
Exiting thread 4 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.102111 2017] [wsgi:info] [pid 14620] mod_wsgi (pid=14620): 
Exiting thread 2 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.102130 2017] [wsgi:info] [pid 14620] mod_wsgi (pid=14620): 
Exiting thread 5 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.102973 2017] [wsgi:info] [pid 14620] mod_wsgi (pid=14620): 
Exiting thread 7 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.102996 2017] [wsgi:info] [pid 14620] mod_wsgi (pid=14620): 
Exiting thread 14 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.103008 2017] [wsgi:info] [pid 14620] mod_wsgi (pid=14620): 
Exiting thread 13 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.103042 2017] [wsgi:info] [pid 14620] mod_wsgi (pid=14620): 
Exiting thread 11 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.103183 2017] [wsgi:debug] [pid 14619] 
src/server/mod_wsgi.c(12650): mod_wsgi (pid=14619): Server listener address 
'|443'.
[Wed Jul 12 14:37:16.103192 2017] [wsgi:debug] [pid 14619] 
src/server/mod_wsgi.c(12659): mod_wsgi (pid=14619): Server listener address 
'|443' was found.
[Wed Jul 12 14:37:16.103194 2017] [wsgi:debug] [pid 14619] 
src/server/mod_wsgi.c(12672): mod_wsgi (pid=14619): Connection server matched 
was '<server_fqdn>|443'.
[Wed Jul 12 14:37:16.103198 2017] [wsgi:debug] [pid 14619] 
src/server/mod_wsgi.c(12687): mod_wsgi (pid=14619): Request server matched was 
'<server_fqdn>|443'.
[Wed Jul 12 14:37:16.103223 2017] [wsgi:info] [pid 14619] [remote 
<web_client_ip_address>:12391] mod_wsgi (pid=14619): Force restart of process 
'example.com'.
[Wed Jul 12 14:37:16.103249 2017] [wsgi:info] [pid 14620] mod_wsgi (pid=14620): 
Exiting thread 3 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.103291 2017] [wsgi:info] [pid 14620] mod_wsgi (pid=14620): 
Exiting thread 12 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.103315 2017] [wsgi:info] [pid 14620] mod_wsgi (pid=14620): 
Exiting thread 1 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.103344 2017] [wsgi:info] [pid 14619] mod_wsgi (pid=14619): 
Exiting thread 3 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.103376 2017] [wsgi:info] [pid 14620] mod_wsgi (pid=14620): 
Stopping process 'example.com'.
[Wed Jul 12 14:37:16.103388 2017] [wsgi:info] [pid 14620] mod_wsgi (pid=14620): 
Destroying interpreters.
[Wed Jul 12 14:37:16.104168 2017] [wsgi:debug] [pid 14620] 
src/server/wsgi_interp.c(1477): mod_wsgi (pid=14620): Create thread state for 
thread 0 against interpreter '<server_fqdn>|'.
[Wed Jul 12 14:37:16.104179 2017] [wsgi:info] [pid 14620] mod_wsgi (pid=14620): 
Destroy interpreter '<server_fqdn>|'.
[Wed Jul 12 14:37:16.104285 2017] [wsgi:info] [pid 14619] mod_wsgi (pid=14619): 
Shutdown requested 'example.com'.
[Wed Jul 12 14:37:16.104357 2017] [wsgi:info] [pid 14619] mod_wsgi (pid=14619): 
Exiting thread 4 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.104396 2017] [wsgi:info] [pid 14620] mod_wsgi (pid=14620): 
End interpreter '<server_fqdn>|'.
[Wed Jul 12 14:37:16.104586 2017] [wsgi:info] [pid 14619] mod_wsgi (pid=14619): 
Exiting thread 6 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.104785 2017] [wsgi:info] [pid 14619] mod_wsgi (pid=14619): 
Exiting thread 8 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.104990 2017] [wsgi:info] [pid 14619] mod_wsgi (pid=14619): 
Exiting thread 11 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.105028 2017] [wsgi:info] [pid 14619] mod_wsgi (pid=14619): 
Exiting thread 13 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.105050 2017] [wsgi:info] [pid 14619] mod_wsgi (pid=14619): 
Exiting thread 14 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.105088 2017] [wsgi:info] [pid 14619] mod_wsgi (pid=14619): 
Exiting thread 0 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.105112 2017] [wsgi:info] [pid 14619] mod_wsgi (pid=14619): 
Exiting thread 10 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.105130 2017] [wsgi:info] [pid 14619] mod_wsgi (pid=14619): 
Exiting thread 1 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.105156 2017] [wsgi:info] [pid 14619] mod_wsgi (pid=14619): 
Exiting thread 5 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.105349 2017] [wsgi:info] [pid 14619] mod_wsgi (pid=14619): 
Exiting thread 12 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.105384 2017] [wsgi:info] [pid 14619] mod_wsgi (pid=14619): 
Exiting thread 9 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.105571 2017] [wsgi:info] [pid 14619] mod_wsgi (pid=14619): 
Exiting thread 7 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.105770 2017] [wsgi:info] [pid 14660] [client 
<web_client_ip_address>:12391] mod_wsgi (pid=14660): Connect after WSGI daemon 
process restart, attempt #2.
[Wed Jul 12 14:37:16.105820 2017] [wsgi:info] [pid 14619] mod_wsgi (pid=14619): 
Exiting thread 2 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.105854 2017] [wsgi:info] [pid 14619] mod_wsgi (pid=14619): 
Stopping process 'example.com'.
[Wed Jul 12 14:37:16.105865 2017] [wsgi:info] [pid 14619] mod_wsgi (pid=14619): 
Destroying interpreters.
[Wed Jul 12 14:37:16.105874 2017] [wsgi:debug] [pid 14619] 
src/server/wsgi_interp.c(1477): mod_wsgi (pid=14619): Create thread state for 
thread 0 against interpreter '<server_fqdn>|'.
[Wed Jul 12 14:37:16.105879 2017] [wsgi:info] [pid 14619] mod_wsgi (pid=14619): 
Destroy interpreter '<server_fqdn>|'.
[Wed Jul 12 14:37:16.106107 2017] [wsgi:info] [pid 14619] mod_wsgi (pid=14619): 
End interpreter '<server_fqdn>|'.
[Wed Jul 12 14:37:16.107994 2017] [wsgi:info] [pid 14620] mod_wsgi (pid=14620): 
Cleanup interpreter ''.
[Wed Jul 12 14:37:16.109715 2017] [wsgi:info] [pid 14620] mod_wsgi (pid=14620): 
Terminating Python.
[Wed Jul 12 14:37:16.109834 2017] [wsgi:info] [pid 14619] mod_wsgi (pid=14619): 
Cleanup interpreter ''.
[Wed Jul 12 14:37:16.111279 2017] [wsgi:info] [pid 14619] mod_wsgi (pid=14619): 
Terminating Python.
[Wed Jul 12 14:37:16.113364 2017] [wsgi:info] [pid 14620] mod_wsgi (pid=14620): 
Python has shutdown.
[Wed Jul 12 14:37:16.113377 2017] [wsgi:info] [pid 14620] mod_wsgi (pid=14620): 
Exiting process 'example.com'.
[Wed Jul 12 14:37:16.114984 2017] [wsgi:info] [pid 14619] mod_wsgi (pid=14619): 
Python has shutdown.
[Wed Jul 12 14:37:16.114997 2017] [wsgi:info] [pid 14619] mod_wsgi (pid=14619): 
Exiting process 'example.com'.
[Wed Jul 12 14:37:16.375047 2017] [wsgi:debug] [pid 14979] 
src/server/mod_wsgi.c(10119): mod_wsgi (pid=14979): Process 'example.com' 
logging to '<server_fqdn>'.
[Wed Jul 12 14:37:16.375047 2017] [wsgi:debug] [pid 14978] 
src/server/mod_wsgi.c(10119): mod_wsgi (pid=14978): Process 'example.com' 
logging to '<server_fqdn>'.
[Wed Jul 12 14:37:16.375113 2017] [wsgi:info] [pid 14978] mod_wsgi (pid=14978): 
Attach interpreter ''.
[Wed Jul 12 14:37:16.375113 2017] [wsgi:info] [pid 14979] mod_wsgi (pid=14979): 
Attach interpreter ''.
[Wed Jul 12 14:37:16.375381 2017] [wsgi:debug] [pid 14978] 
src/server/mod_wsgi.c(9369): mod_wsgi (pid=14978): Starting 15 threads in 
daemon process 'example.com'.
[Wed Jul 12 14:37:16.375384 2017] [wsgi:debug] [pid 14979] 
src/server/mod_wsgi.c(9369): mod_wsgi (pid=14979): Starting 15 threads in 
daemon process 'example.com'.
[Wed Jul 12 14:37:16.375387 2017] [wsgi:debug] [pid 14978] 
src/server/mod_wsgi.c(9378): mod_wsgi (pid=14978): Starting thread 1 in daemon 
process 'example.com'.
[Wed Jul 12 14:37:16.375391 2017] [wsgi:debug] [pid 14979] 
src/server/mod_wsgi.c(9378): mod_wsgi (pid=14979): Starting thread 1 in daemon 
process 'example.com'.
[Wed Jul 12 14:37:16.375413 2017] [wsgi:debug] [pid 14979] 
src/server/mod_wsgi.c(9378): mod_wsgi (pid=14979): Starting thread 2 in daemon 
process 'example.com'.
[Wed Jul 12 14:37:16.375416 2017] [wsgi:debug] [pid 14978] 
src/server/mod_wsgi.c(9378): mod_wsgi (pid=14978): Starting thread 2 in daemon 
process 'example.com'.
[Wed Jul 12 14:37:16.375435 2017] [wsgi:debug] [pid 14979] 
src/server/mod_wsgi.c(9378): mod_wsgi (pid=14979): Starting thread 3 in daemon 
process 'example.com'.
[Wed Jul 12 14:37:16.375442 2017] [wsgi:debug] [pid 14978] 
src/server/mod_wsgi.c(9378): mod_wsgi (pid=14978): Starting thread 3 in daemon 
process 'example.com'.
[Wed Jul 12 14:37:16.375453 2017] [wsgi:debug] [pid 14979] 
src/server/mod_wsgi.c(9378): mod_wsgi (pid=14979): Starting thread 4 in daemon 
process 'example.com'.
[Wed Jul 12 14:37:16.375461 2017] [wsgi:debug] [pid 14978] 
src/server/mod_wsgi.c(9378): mod_wsgi (pid=14978): Starting thread 4 in daemon 
process 'example.com'.
[Wed Jul 12 14:37:16.375475 2017] [wsgi:debug] [pid 14979] 
src/server/mod_wsgi.c(9378): mod_wsgi (pid=14979): Starting thread 5 in daemon 
process 'example.com'.
[Wed Jul 12 14:37:16.375479 2017] [wsgi:debug] [pid 14978] 
src/server/mod_wsgi.c(9378): mod_wsgi (pid=14978): Starting thread 5 in daemon 
process 'example.com'.
[Wed Jul 12 14:37:16.375493 2017] [wsgi:debug] [pid 14979] 
src/server/mod_wsgi.c(9378): mod_wsgi (pid=14979): Starting thread 6 in daemon 
process 'example.com'.
[Wed Jul 12 14:37:16.375496 2017] [wsgi:debug] [pid 14978] 
src/server/mod_wsgi.c(9378): mod_wsgi (pid=14978): Starting thread 6 in daemon 
process 'example.com'.
[Wed Jul 12 14:37:16.375513 2017] [wsgi:debug] [pid 14979] 
src/server/mod_wsgi.c(9378): mod_wsgi (pid=14979): Starting thread 7 in daemon 
process 'example.com'.
[Wed Jul 12 14:37:16.375515 2017] [wsgi:debug] [pid 14978] 
src/server/mod_wsgi.c(9378): mod_wsgi (pid=14978): Starting thread 7 in daemon 
process 'example.com'.
[Wed Jul 12 14:37:16.375531 2017] [wsgi:debug] [pid 14979] 
src/server/mod_wsgi.c(9378): mod_wsgi (pid=14979): Starting thread 8 in daemon 
process 'example.com'.
[Wed Jul 12 14:37:16.375537 2017] [wsgi:debug] [pid 14978] 
src/server/mod_wsgi.c(9378): mod_wsgi (pid=14978): Starting thread 8 in daemon 
process 'example.com'.
[Wed Jul 12 14:37:16.375550 2017] [wsgi:debug] [pid 14979] 
src/server/mod_wsgi.c(9378): mod_wsgi (pid=14979): Starting thread 9 in daemon 
process 'example.com'.
[Wed Jul 12 14:37:16.375558 2017] [wsgi:debug] [pid 14978] 
src/server/mod_wsgi.c(9378): mod_wsgi (pid=14978): Starting thread 9 in daemon 
process 'example.com'.
[Wed Jul 12 14:37:16.375812 2017] [wsgi:debug] [pid 14979] 
src/server/mod_wsgi.c(9378): mod_wsgi (pid=14979): Starting thread 10 in daemon 
process 'example.com'.
[Wed Jul 12 14:37:16.375822 2017] [wsgi:debug] [pid 14978] 
src/server/mod_wsgi.c(9378): mod_wsgi (pid=14978): Starting thread 10 in daemon 
process 'example.com'.
[Wed Jul 12 14:37:16.376105 2017] [wsgi:debug] [pid 14979] 
src/server/mod_wsgi.c(9378): mod_wsgi (pid=14979): Starting thread 11 in daemon 
process 'example.com'.
[Wed Jul 12 14:37:16.376115 2017] [wsgi:debug] [pid 14978] 
src/server/mod_wsgi.c(9378): mod_wsgi (pid=14978): Starting thread 11 in daemon 
process 'example.com'.
[Wed Jul 12 14:37:16.376133 2017] [wsgi:debug] [pid 14979] 
src/server/mod_wsgi.c(9378): mod_wsgi (pid=14979): Starting thread 12 in daemon 
process 'example.com'.
[Wed Jul 12 14:37:16.376139 2017] [wsgi:debug] [pid 14978] 
src/server/mod_wsgi.c(9378): mod_wsgi (pid=14978): Starting thread 12 in daemon 
process 'example.com'.
[Wed Jul 12 14:37:16.376154 2017] [wsgi:debug] [pid 14979] 
src/server/mod_wsgi.c(9378): mod_wsgi (pid=14979): Starting thread 13 in daemon 
process 'example.com'.
[Wed Jul 12 14:37:16.376158 2017] [wsgi:debug] [pid 14978] 
src/server/mod_wsgi.c(9378): mod_wsgi (pid=14978): Starting thread 13 in daemon 
process 'example.com'.
[Wed Jul 12 14:37:16.376175 2017] [wsgi:debug] [pid 14979] 
src/server/mod_wsgi.c(9378): mod_wsgi (pid=14979): Starting thread 14 in daemon 
process 'example.com'.
[Wed Jul 12 14:37:16.376176 2017] [wsgi:debug] [pid 14978] 
src/server/mod_wsgi.c(9378): mod_wsgi (pid=14978): Starting thread 14 in daemon 
process 'example.com'.
[Wed Jul 12 14:37:16.376193 2017] [wsgi:debug] [pid 14979] 
src/server/mod_wsgi.c(9378): mod_wsgi (pid=14979): Starting thread 15 in daemon 
process 'example.com'.
[Wed Jul 12 14:37:16.376194 2017] [wsgi:debug] [pid 14978] 
src/server/mod_wsgi.c(9378): mod_wsgi (pid=14978): Starting thread 15 in daemon 
process 'example.com'.
[Wed Jul 12 14:37:16.376239 2017] [wsgi:debug] [pid 14979] 
src/server/mod_wsgi.c(8931): mod_wsgi (pid=14979): Enable monitor thread in 
process 'example.com'.
[Wed Jul 12 14:37:16.376239 2017] [wsgi:info] [pid 14978] mod_wsgi (pid=14978): 
Started thread 11 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.376246 2017] [wsgi:debug] [pid 14979] 
src/server/mod_wsgi.c(8935): mod_wsgi (pid=14979): Startup timeout is 0.
[Wed Jul 12 14:37:16.376249 2017] [wsgi:debug] [pid 14979] 
src/server/mod_wsgi.c(8938): mod_wsgi (pid=14979): Deadlock timeout is 300.
[Wed Jul 12 14:37:16.376251 2017] [wsgi:debug] [pid 14979] 
src/server/mod_wsgi.c(8941): mod_wsgi (pid=14979): Idle inactivity timeout is 0.
[Wed Jul 12 14:37:16.376254 2017] [wsgi:debug] [pid 14979] 
src/server/mod_wsgi.c(8944): mod_wsgi (pid=14979): Request time limit is 0.
[Wed Jul 12 14:37:16.376257 2017] [wsgi:debug] [pid 14979] 
src/server/mod_wsgi.c(8947): mod_wsgi (pid=14979): Graceful timeout is 0.
[Wed Jul 12 14:37:16.376259 2017] [wsgi:debug] [pid 14979] 
src/server/mod_wsgi.c(8950): mod_wsgi (pid=14979): Eviction timeout is 0.
[Wed Jul 12 14:37:16.376260 2017] [wsgi:debug] [pid 14979] 
src/server/mod_wsgi.c(8953): mod_wsgi (pid=14979): Restart interval is 0.
[Wed Jul 12 14:37:16.376276 2017] [wsgi:debug] [pid 14978] 
src/server/mod_wsgi.c(8931): mod_wsgi (pid=14978): Enable monitor thread in 
process 'example.com'.
[Wed Jul 12 14:37:16.376281 2017] [wsgi:debug] [pid 14978] 
src/server/mod_wsgi.c(8935): mod_wsgi (pid=14978): Startup timeout is 0.
[Wed Jul 12 14:37:16.376283 2017] [wsgi:debug] [pid 14978] 
src/server/mod_wsgi.c(8938): mod_wsgi (pid=14978): Deadlock timeout is 300.
[Wed Jul 12 14:37:16.376285 2017] [wsgi:debug] [pid 14978] 
src/server/mod_wsgi.c(8941): mod_wsgi (pid=14978): Idle inactivity timeout is 0.
[Wed Jul 12 14:37:16.376287 2017] [wsgi:debug] [pid 14978] 
src/server/mod_wsgi.c(8944): mod_wsgi (pid=14978): Request time limit is 0.
[Wed Jul 12 14:37:16.376289 2017] [wsgi:debug] [pid 14978] 
src/server/mod_wsgi.c(8947): mod_wsgi (pid=14978): Graceful timeout is 0.
[Wed Jul 12 14:37:16.376290 2017] [wsgi:debug] [pid 14978] 
src/server/mod_wsgi.c(8950): mod_wsgi (pid=14978): Eviction timeout is 0.
[Wed Jul 12 14:37:16.376292 2017] [wsgi:debug] [pid 14978] 
src/server/mod_wsgi.c(8953): mod_wsgi (pid=14978): Restart interval is 0.
[Wed Jul 12 14:37:16.376300 2017] [wsgi:debug] [pid 14979] 
src/server/mod_wsgi.c(8896): mod_wsgi (pid=14979): Enable deadlock thread in 
process 'example.com'.
[Wed Jul 12 14:37:16.376311 2017] [wsgi:info] [pid 14979] mod_wsgi (pid=14979): 
Started thread 1 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.376347 2017] [wsgi:info] [pid 14979] mod_wsgi (pid=14979): 
Started thread 2 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.376360 2017] [wsgi:info] [pid 14979] mod_wsgi (pid=14979): 
Started thread 3 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.376381 2017] [wsgi:debug] [pid 14978] 
src/server/mod_wsgi.c(12650): mod_wsgi (pid=14978): Server listener address 
'|443'.
[Wed Jul 12 14:37:16.376386 2017] [wsgi:debug] [pid 14978] 
src/server/mod_wsgi.c(12659): mod_wsgi (pid=14978): Server listener address 
'|443' was found.
[Wed Jul 12 14:37:16.376396 2017] [wsgi:debug] [pid 14978] 
src/server/mod_wsgi.c(12672): mod_wsgi (pid=14978): Connection server matched 
was '<server_fqdn>|443'.
[Wed Jul 12 14:37:16.376405 2017] [wsgi:debug] [pid 14978] 
src/server/mod_wsgi.c(12687): mod_wsgi (pid=14978): Request server matched was 
'<server_fqdn>|443'.
[Wed Jul 12 14:37:16.376618 2017] [wsgi:info] [pid 14979] mod_wsgi (pid=14979): 
Started thread 4 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.376866 2017] [wsgi:info] [pid 14979] mod_wsgi (pid=14979): 
Started thread 5 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.377129 2017] [wsgi:info] [pid 14979] mod_wsgi (pid=14979): 
Started thread 6 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.377865 2017] [wsgi:info] [pid 14979] mod_wsgi (pid=14979): 
Started thread 7 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.377896 2017] [wsgi:info] [pid 14979] mod_wsgi (pid=14979): 
Started thread 8 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.377905 2017] [wsgi:info] [pid 14979] mod_wsgi (pid=14979): 
Started thread 9 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.377912 2017] [wsgi:info] [pid 14979] mod_wsgi (pid=14979): 
Started thread 10 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.377920 2017] [wsgi:info] [pid 14979] mod_wsgi (pid=14979): 
Started thread 11 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.377931 2017] [wsgi:info] [pid 14979] mod_wsgi (pid=14979): 
Started thread 12 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.377939 2017] [wsgi:info] [pid 14979] mod_wsgi (pid=14979): 
Started thread 13 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.377946 2017] [wsgi:info] [pid 14979] mod_wsgi (pid=14979): 
Started thread 14 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.377979 2017] [wsgi:info] [pid 14978] mod_wsgi (pid=14978): 
Started thread 14 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.377991 2017] [wsgi:info] [pid 14978] mod_wsgi (pid=14978): 
Started thread 13 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.378002 2017] [wsgi:info] [pid 14978] mod_wsgi (pid=14978): 
Started thread 12 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.378009 2017] [wsgi:info] [pid 14978] mod_wsgi (pid=14978): 
Started thread 8 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.378057 2017] [wsgi:info] [pid 14979] mod_wsgi (pid=14979): 
Started thread 0 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.378102 2017] [wsgi:info] [pid 14978] mod_wsgi (pid=14978): 
Started thread 9 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.378274 2017] [wsgi:info] [pid 14978] mod_wsgi (pid=14978): 
Started thread 7 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.378821 2017] [wsgi:info] [pid 14978] mod_wsgi (pid=14978): 
Started thread 6 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.378932 2017] [wsgi:info] [pid 14978] mod_wsgi (pid=14978): 
Started thread 0 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.378363 2017] [wsgi:info] [pid 14978] mod_wsgi (pid=14978): 
Started thread 2 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.378916 2017] [wsgi:info] [pid 14978] mod_wsgi (pid=14978): 
Started thread 1 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.379079 2017] [wsgi:info] [pid 14978] mod_wsgi (pid=14978): 
Started thread 3 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.378921 2017] [wsgi:debug] [pid 14978] 
src/server/mod_wsgi.c(8896): mod_wsgi (pid=14978): Enable deadlock thread in 
process 'example.com'.
[Wed Jul 12 14:37:16.378602 2017] [wsgi:info] [pid 14978] mod_wsgi (pid=14978): 
Started thread 5 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.379073 2017] [wsgi:info] [pid 14978] mod_wsgi (pid=14978): 
Started thread 4 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.378926 2017] [wsgi:info] [pid 14978] mod_wsgi (pid=14978): 
Started thread 10 in daemon process 'example.com'.
[Wed Jul 12 14:37:16.385264 2017] [wsgi:info] [pid 14978] mod_wsgi (pid=14978): 
Create interpreter '<server_fqdn>|'.
[Wed Jul 12 14:37:16.386309 2017] [wsgi:debug] [pid 14978] 
src/server/wsgi_interp.c(1417): mod_wsgi (pid=14978): Bind thread state for 
thread 1 against interpreter '<server_fqdn>|'.
[Wed Jul 12 14:37:16.386374 2017] [wsgi:info] [pid 14978] [remote 
<web_client_ip_address>:12391] mod_wsgi (pid=14978, process='example.com', 
application='<server_fqdn>|'): Loading WSGI script '/var/www/scripts/app2.py'.
[Wed Jul 12 14:37:16.438828 2017] [wsgi:error] [pid 14978] None
[Wed Jul 12 14:37:18.430493 2017] [ssl:debug] [pid 14660] 
ssl_engine_kernel.c(224): [client <web_client_ip_address>:12391] AH02034: 
Subsequent (No.2) HTTPS request received for child 5 (server 
<server_fqdn>:443), referer: https://<server_ip_address>/
[Wed Jul 12 14:37:18.430590 2017] [authz_core:debug] [pid 14660] 
mod_authz_core.c(809): [client <web_client_ip_address>:12391] AH01626: 
authorization result of Require all granted: granted, referer: 
https://<server_ip_address>/
[Wed Jul 12 14:37:18.430610 2017] [authz_core:debug] [pid 14660] 
mod_authz_core.c(809): [client <web_client_ip_address>:12391] AH01626: 
authorization result of <RequireAny>: granted, referer: 
https://<server_ip_address>/
[Wed Jul 12 14:37:18.430682 2017] [authz_core:debug] [pid 14660] 
mod_authz_core.c(809): [client <web_client_ip_address>:12391] AH01626: 
authorization result of Require all granted: granted, referer: 
https://<server_ip_address>/
[Wed Jul 12 14:37:18.430687 2017] [authz_core:debug] [pid 14660] 
mod_authz_core.c(809): [client <web_client_ip_address>:12391] AH01626: 
authorization result of <RequireAny>: granted, referer: 
https://<server_ip_address>/
[Wed Jul 12 14:37:18.431211 2017] [wsgi:debug] [pid 14979] 
src/server/mod_wsgi.c(12650): mod_wsgi (pid=14979): Server listener address 
'|443'.
[Wed Jul 12 14:37:18.431250 2017] [wsgi:debug] [pid 14979] 
src/server/mod_wsgi.c(12659): mod_wsgi (pid=14979): Server listener address 
'|443' was found.
[Wed Jul 12 14:37:18.431256 2017] [wsgi:debug] [pid 14979] 
src/server/mod_wsgi.c(12672): mod_wsgi (pid=14979): Connection server matched 
was '<server_fqdn>|443'.
[Wed Jul 12 14:37:18.431263 2017] [wsgi:debug] [pid 14979] 
src/server/mod_wsgi.c(12687): mod_wsgi (pid=14979): Request server matched was 
'<server_fqdn>|443'.
[Wed Jul 12 14:37:18.439251 2017] [wsgi:info] [pid 14979] mod_wsgi (pid=14979): 
Create interpreter '<server_fqdn>|'.
[Wed Jul 12 14:37:18.440280 2017] [wsgi:debug] [pid 14979] 
src/server/wsgi_interp.c(1417): mod_wsgi (pid=14979): Bind thread state for 
thread 1 against interpreter '<server_fqdn>|'.
[Wed Jul 12 14:37:18.440327 2017] [wsgi:info] [pid 14979] [remote 
<web_client_ip_address>:12391] mod_wsgi (pid=14979, process='example.com', 
application='<server_fqdn>|'): Loading WSGI script '/var/www/scripts/app2.py'.
[Wed Jul 12 14:37:18.492082 2017] [wsgi:error] [pid 14979] None
[Wed Jul 12 14:37:18.493132 2017] [wsgi:error] [pid 14979] [remote 
<web_client_ip_address>:12391] Traceback (most recent call last):
[Wed Jul 12 14:37:18.493397 2017] [wsgi:error] [pid 14979] [remote 
<web_client_ip_address>:12391]   File 
"/usr/lib/python2.7/site-packages/web/application.py", line 239, in process
[Wed Jul 12 14:37:18.493401 2017] [wsgi:error] [pid 14979] [remote 
<web_client_ip_address>:12391]     return self.handle()
[Wed Jul 12 14:37:18.493403 2017] [wsgi:error] [pid 14979] [remote 
<web_client_ip_address>:12391]   File 
"/usr/lib/python2.7/site-packages/web/application.py", line 230, in handle
[Wed Jul 12 14:37:18.493405 2017] [wsgi:error] [pid 14979] [remote 
<web_client_ip_address>:12391]     return self._delegate(fn, self.fvars, args)
[Wed Jul 12 14:37:18.493407 2017] [wsgi:error] [pid 14979] [remote 
<web_client_ip_address>:12391]   File 
"/usr/lib/python2.7/site-packages/web/application.py", line 420, in _delegate
[Wed Jul 12 14:37:18.493410 2017] [wsgi:error] [pid 14979] [remote 
<web_client_ip_address>:12391]     return handle_class(cls)
[Wed Jul 12 14:37:18.493412 2017] [wsgi:error] [pid 14979] [remote 
<web_client_ip_address>:12391]   File 
"/usr/lib/python2.7/site-packages/web/application.py", line 396, in handle_class
[Wed Jul 12 14:37:18.493414 2017] [wsgi:error] [pid 14979] [remote 
<web_client_ip_address>:12391]     return tocall(*args)
[Wed Jul 12 14:37:18.493416 2017] [wsgi:error] [pid 14979] [remote 
<web_client_ip_address>:12391]   File "/var/www/scripts/app2.py", line 17, in 
POST
[Wed Jul 12 14:37:18.493417 2017] [wsgi:error] [pid 14979] [remote 
<web_client_ip_address>:12391]     s.connect(server)
[Wed Jul 12 14:37:18.493419 2017] [wsgi:error] [pid 14979] [remote 
<web_client_ip_address>:12391]   File "/usr/lib64/python2.7/socket.py", line 
224, in meth
[Wed Jul 12 14:37:18.493421 2017] [wsgi:error] [pid 14979] [remote 
<web_client_ip_address>:12391]     return getattr(self._sock,name)(*args)
[Wed Jul 12 14:37:18.493423 2017] [wsgi:error] [pid 14979] [remote 
<web_client_ip_address>:12391] error: [Errno 13] Permission denied
[Wed Jul 12 14:37:18.493432 2017] [wsgi:error] [pid 14979] [remote 
<web_client_ip_address>:12391] 
[Wed Jul 12 14:37:18.493743 2017] [ssl:debug] [pid 14660] ssl_engine_io.c(992): 
[client <web_client_ip_address>:12391] AH02001: Connection closed to child 5 
with standard shutdown (server <server_fqdn>:443)

Reply via email to