logs from

[Wed Feb 03 04:19:37 2021] [info] [client 116.xx.xxx.xxx] Connection to 
child 1 established (server example.com:443)
[Wed Feb 03 04:19:37 2021] [info] Seeding PRNG with 144 bytes of entropy
[Wed Feb 03 04:19:37 2021] [debug] ssl_engine_kernel.c(1876): OpenSSL: 
Handshake: start
[Wed Feb 03 04:19:37 2021] [debug] ssl_engine_kernel.c(1884): OpenSSL: 
Loop: before/accept initialization.
.
.
ssl_engine_io and OPENSSL calls
.
.
[Wed Feb 03 04:19:37 2021] [debug] ssl_engine_kernel.c(1884): OpenSSL: 
Loop: SSLv3 read finished A
[Wed Feb 03 04:19:37 2021] [debug] ssl_engine_kernel.c(1884): OpenSSL: 
Loop: SSLv3 write session ticket A
[Wed Feb 03 04:19:37 2021] [debug] ssl_engine_kernel.c(1884): OpenSSL: 
Loop: SSLv3 write change cipher spec A
[Wed Feb 03 04:19:37 2021] [debug] ssl_engine_kernel.c(1884): OpenSSL: 
Loop: SSLv3 write finished A
[Wed Feb 03 04:19:37 2021] [debug] ssl_engine_kernel.c(1884): OpenSSL: 
Loop: SSLv3 flush data
[Wed Feb 03 04:19:37 2021] [debug] ssl_engine_kernel.c(1880): OpenSSL: 
Handshake: done
[Wed Feb 03 04:19:37 2021] [info] Connection: Client IP: 116.xx.xxx.xxx, 
Protocol: TLSv1.2, Cipher: xxxxxx (128/128 bits)
[Wed Feb 03 04:19:39 2021] [error] [client 116.xx.xxx.xxx] Truncated or 
oversized response headers received from daemon process 'appproject': 
/home/abc/workspace/project/core/wsgi.py
[Wed Feb 03 04:19:39 2021] [debug] ssl_engine_kernel.c(1894): OpenSSL: 
Write: SSL negotiation finished successfully
[Wed Feb 03 04:19:39 2021] [info] [client 116.xx.xxx.xxx] Connection closed 
to child 1 with standard shutdown (server example.com:443)
[Wed Feb 03 04:19:39 2021] [info] mod_wsgi (pid=114381): Attach interpreter 
''.
[Wed Feb 03 04:19:39 2021] [info] mod_wsgi (pid=114381): Adding 
'/home/abc/workspace' to path.
[Wed Feb 03 04:19:39 2021] [info] mod_wsgi (pid=114381): Adding 
'/home/abc/workspace/project' to path.
[Wed Feb 03 04:19:39 2021] [info] mod_wsgi (pid=114381): Adding 
'/home/abc/.pyenv/versions/test1_env/lib/python3.7/site-packages' to path.
[Wed Feb 03 04:19:39 2021] [info] mod_wsgi (pid=114381): Imported 
'mod_wsgi'.
[Wed Feb 03 04:19:39 2021] [debug] src/server/mod_wsgi.c(9115): mod_wsgi 
(pid=114381): Started thread 0 in daemon process 'appproject'.
[Wed Feb 03 04:19:39 2021] [debug] src/server/mod_wsgi.c(9115): mod_wsgi 
(pid=114381): Started thread 1 in daemon process 'appproject'.
[Wed Feb 03 04:19:39 2021] [debug] src/server/mod_wsgi.c(9115): mod_wsgi 
(pid=114381): Started thread 3 in daemon process 'appproject'.
[Wed Feb 03 04:19:39 2021] [debug] src/server/mod_wsgi.c(9115): mod_wsgi 
(pid=114381): Started thread 2 in daemon process 'appproject'.
[Wed Feb 03 04:19:39 2021] [debug] src/server/mod_wsgi.c(9115): mod_wsgi 
(pid=114381): Started thread 5 in daemon process 'appproject'.
[Wed Feb 03 04:19:39 2021] [debug] src/server/mod_wsgi.c(9115): mod_wsgi 
(pid=114381): Started thread 4 in daemon process 'appproject'.
[Wed Feb 03 04:19:39 2021] [debug] src/server/mod_wsgi.c(9115): mod_wsgi 
(pid=114381): Started thread 6 in daemon process 'appproject'.
[Wed Feb 03 04:19:39 2021] [debug] src/server/mod_wsgi.c(9115): mod_wsgi 
(pid=114381): Started thread 7 in daemon process 'appproject'.
[Wed Feb 03 04:19:39 2021] [debug] src/server/mod_wsgi.c(9115): mod_wsgi 
(pid=114381): Started thread 9 in daemon process 'appproject'.
[Wed Feb 03 04:19:39 2021] [debug] src/server/mod_wsgi.c(9115): mod_wsgi 
(pid=114381): Started thread 8 in daemon process 'appproject'.
[Wed Feb 03 04:19:39 2021] [debug] src/server/mod_wsgi.c(9115): mod_wsgi 
(pid=114381): Started thread 10 in daemon process 'appproject'.
[Wed Feb 03 04:19:39 2021] [debug] src/server/mod_wsgi.c(9115): mod_wsgi 
(pid=114381): Started thread 13 in daemon process 'appproject'.
[Wed Feb 03 04:19:39 2021] [debug] src/server/mod_wsgi.c(9115): mod_wsgi 
(pid=114381): Started thread 11 in daemon process 'appproject'.
[Wed Feb 03 04:19:39 2021] [debug] src/server/mod_wsgi.c(9115): mod_wsgi 
(pid=114381): Started thread 12 in daemon process 'appproject'.
[Wed Feb 03 04:19:39 2021] [debug] src/server/mod_wsgi.c(9115): mod_wsgi 
(pid=114381): Started thread 14 in daemon process 'appproject'.
[Wed Feb 03 04:19:55 2021] [debug] ssl_engine_io.c(1930): OpenSSL: read 5/5 
bytes from BIO#xxxxxxx [mem: xxxxxxx] (BIO dump follows)



On Thursday, February 11, 2021 at 3:58:56 PM UTC+5:30 Graham Dumpleton 
wrote:

> Sorry, my memory is bad here and it is likely nothing to do with that. It 
> is more likely because the application process crashes. You didn't provide 
> sufficient log messages from before the error message to confirm that, so 
> please provide log messages form before and after. You can also look in the 
> main Apache error log message and see if there was a "Segmentation fault" 
> message.
>
>
> On 11 Feb 2021, at 9:19 pm, Graham Dumpleton <[email protected]> 
> wrote:
>
> Your are responding with a set of HTTP headers which exceed the typical 
> maximum Apache header size. You can override the default when using daemon 
> mode of mod_wsgi by using the 'header-buffer-size' option to 
> WSGIDaemonProcess. See:
>
> * 
> https://modwsgi.readthedocs.io/en/master/configuration-directives/WSGIDaemonProcess.html
>
> Graham
>
> On 11 Feb 2021, at 7:48 pm, Suyash Jain <[email protected]> wrote:
>
> Hi,
>
> I am facing error Truncated or oversized response headers received from 
> daemon process when configured apache + mod_wsgi + django
>
> System python is 2.6.6 and I needed Python 3.7.5
> So i installed python using below cmds (with enable shared option)
> wget https://www.python.org/ftp/python/3.7.5/Python-3.7.5.tgz
> tar xzf  Python-3.7.5.tgz
> cd Python-3.7.5 >
> ./configure --enable-optimizations --enable-shared
>
> Then complied mpd_wsgi with virtualenv created from installed python 3.7.5 
> ie test1_env using pyenv virtualenv
>
> yum install httpd-devel   (apxs)
> git clone https://github.com/GrahamDumpleton/mod_wsgi.git
> ./configure --with-apxs=/usr/sbin/apxs 
> --with-python=/home/abc/.pyenv/versions/test1_env/bin/python3
> make
>
>
> System details :
> CentOS release 6.9 (Final)
>
> Server version: Apache/2.2.15 (Unix)
> Architecture:   64-bit
> Server MPM:     Prefork
> threaded:     no
> forked:     yes (variable process count)
>
> Insallted Package details inside test1_env virtual env
> python - 3.7.5
> Django  3.1.2
> mod_wsgi 4.7.1
> pyenv virtualenv used ie test1_env
>
>
> Error logs: 
>
> Truncated or oversized response headers received from daemon process 
> 'appproject': /home/abc/workspace/project/core/wsgi.py
> [info] mod_wsgi (pid=124460): Attach interpreter ''.
> [info] mod_wsgi (pid=124460): Adding '/home/abc/workspace' to path.
> [info] mod_wsgi (pid=124460): Adding '/home/abc/workspace/project' to path.
> [info] mod_wsgi (pid=124460): Adding 
> '/home/abc/.pyenv/versions/test1_env/lib/python3.7/site-packages' to path.
> [info] mod_wsgi (pid=124460): Imported 'mod_wsgi'.
>
>
> The WSGI portion of the configuration for the vhost in Apache looks like 
> this
>
>         ServerAdmin [email protected]
>         ServerName example.com
>         DocumentRoot /home/abc/workspace/project
>
>         Alias /static /home/abc/workspace/project/static/
>         <Directory "/home/abc/workspace/project/static/">
>                 Allow from all
>         </Directory>
>     
>         LogLevel info
>         ErrorLog logs/project_error.log
>         CustomLog logs/project_access.log combined
>
>        
>         WSGIDaemonProcess appproject user=xx group=yy  processes=2 
> threads=15 
> python-path=/home/abc/.pyenv/versions/test1_env/lib/python3.7/site-packages:/home/abc/workspace:/home/abc/workspace/project
>  
> python-home=/home/abc/.pyenv/versions/test1_env display-name='appproject'
>         WSGIProcessGroup appproject
>         WSGIApplicationGroup %{GLOBAL}
>         WSGIScriptAlias / /home/abc/workspace/project/core/wsgi.py 
>
>         <Directory /home/abc/workspace/project/core>
>                <Files wsgi.py>
>                         Order allow,deny
>                         Allow from all
>                 </Files>
>         </Directory>
> </VirtualHost>
>
> Please provide solution for above issue.
>
> Thanks
> Suyash
>
>
> -- 
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/modwsgi/7eca331a-d0d1-4582-a5dd-e8bb74f9d9f8n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/modwsgi/7eca331a-d0d1-4582-a5dd-e8bb74f9d9f8n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/modwsgi/ef2f6054-b50c-41f3-b9f7-9c853e29c608n%40googlegroups.com.

Reply via email to