Hi,
Recently, my project report a 'Truncated or oversized response headers 
received from daemon process' out of nowhere after 3 years of working fine. 
This is what apache logs show up:

[wsgi:info] [pid 8691:tid 139935800280832] [remote 
2806:10be:a:1253:c80c:b395:242c:5334:4326] mod_wsgi (pid=8691, 
process='MyProject', application=''): Loading WSGI script 
'/home/axel/MyProjectProject/MyProject/MyProject/wsgi.py'.
[core:notice] [pid 7681:tid 139935929101248] AH00051: child pid 8642 exit 
signal Segmentation fault (11), possible coredump in /etc/apache2
[wsgi:info] [pid 8718:tid 139935929101248] mod_wsgi (pid=8718): Attach 
interpreter ''.
[wsgi:info] [pid 8718:tid 139935929101248] mod_wsgi (pid=8718): Adding 
'/home/axel/MyProjectProject/MyProject' to path.
[wsgi:error] [pid 7891:tid 139935646435072] [client 
2806:10be:a:1253:c80c:b395:242c:5334:4326] Truncated or oversized response 
headers received from daemon process 'MyProject': 
/home/axel/MyProjectProject/MyProject/MyProject/wsgi.py, referer: 
https://MyProject.net/es/login/

I check a few solutions for this in serverfault or Stack Overflow and I add 
some new things for my Apache conf like 'WSGIApplicationGroup %{GLOBAL}' or 
'processes=5 threads=15 display-name=%{GROUP} user=www-data group=www-data' 
in WSGIDaemonProcess but nothing works (of course I restart Apache service 
every time I change something).

<IfModule mod_ssl.c>
<VirtualHost *:443>
    DocumentRoot /var/www/html
    ServerAlias MyProject.net
    ServerAlias www.MyProject.net
    LogLevel info ssl:warn

    Alias /res /home/axel/MyProjectProject/MyProject/res
    <Directory /home/axel/MyProjectProject/MyProject/res>
        Require all granted
    </Directory>

    Alias /media /home/axel/MyProjectProject/MyProject/media
    <Directory /home/axel/MyProjectProject/MyProject/media>
        Require all granted
    </Directory>

    <Directory /home/axel/MyProjectProject/MyProject/MyProject>
        <Files wsgi.py>
            Require all granted
        </Files>
    </Directory>

    <Directory /home/axel/MyProjectProject>
        <Files metrics.csv>
            Require all granted
        </Files>
    </Directory>

    WSGIDaemonProcess MyProject 
python-home=/home/axel/MyProjectProject/MyProjectVenv 
python-path=/home/axel/MyProjectProject/MyProject processes=5 threads=15 
display-name=%{GROUP} user=www-data group=www-data
    WSGIApplicationGroup %{GLOBAL}
    #WSGIProcessGroup %{GLOBAL}
        WSGIProcessGroup MyProject
    WSGIScriptAlias / 
/home/axel/MyProjectProject/MyProject/MyProject/wsgi.py

    RewriteEngine on
</VirtualHost>
</IfModule>

This is the list of dependency in Django:

Package             Version  

------------------- ---------

certifi             2018.4.16

chardet             3.0.4    

coreapi             2.3.3    

coreschema          0.0.4    

Django              2.0.5    

django-filter       1.1.0    

django-rest-swagger 2.2.0    

django-rosetta      0.8.1    

djangorestframework 3.8.2    

html5lib            1.0.1    

httplib2            0.11.3   

idna                2.7      

itypes              1.1.0    

Jinja2              2.10     

lxml                4.2.5    

MarkupSafe          1.0      

microsofttranslator 0.8      

openapi-codec       1.3.2    

Pillow              5.1.0    

pip                 18.1     

pkg-resources       0.0.0    

polib               1.1.0    

psycopg2-binary     2.7.4    

PyPDF2              1.26.0   

python-docx         0.8.7    

pytz                2018.5   

reportlab           3.5.6    

requests            2.19.1   

setuptools          39.0.1   

simplejson          3.16.0   

six                 1.11.0   

uritemplate         3.0.0    

urllib3             1.23     

webencodings        0.5.1    

xhtml2pdf           0.2.2    

XlsxWriter          3.0.1  

I'm not using PHP or anything, is just Django, PostgreSQL and javascript
Please provide solution for above issue, and sorry for my awful english

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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/modwsgi/89f4f197-da11-4559-bb0e-4b27d68d3299n%40googlegroups.com.

Reply via email to