- Package:
- libapache2-mod-wsgi
- Source:
- mod-wsgi
- Submitter:
- Sebastian Rittau
- Date:
- 2021-05-05 23:03:03 UTC
- Severity:
- important
Since upgrading to mod-wsgi 4.2, even a simple WSGI script will cause an
Internal Server Error when the python-path and home arguments to
WSGIDaemonProcess are used in conjunction with WSGIProcessGroup.
Consider the following script:
def application(env, sr):
sr("200 OK", [])
return "XXX"
and the following WSGI configuration
WSGIDaemonProcess foo home=/tmp python-path=/tmp
WSGIProcessGroup foo
This will cause an Internal Server Error with the following log entry:
[Wed Aug 13 19:28:05.889392 2014] [wsgi:error] [pid 25594] [client 127.0.0.1:36384] Truncated or oversized response headers received from daemon process 'foo': /tmp/test.wsgi
Removing either the WSGIDaemonProcess, the python-path, or the home directive
will fix it.
found #758035 4.3.0-1 thanks This still occurs in 4.3.0-1. Please forward it upstream...
Same problem here using RatticDB under Debian 8 :
root@www:/usr/local/RatticWeb/ratticweb# dpkg -l|grep apach
ii apache2 2.4.10-10 amd64 Apache HTTP Server
ii apache2-bin 2.4.10-10 amd64 Apache HTTP Server (modules and other binary files)
ii apache2-data 2.4.10-10 all Apache HTTP Server (common files)
ii apache2-utils 2.4.10-10 amd64 Apache HTTP Server (utility programs for web servers)
ii libapache2-mod-wsgi 4.3.0-1 amd64 Python WSGI adapter module for Apache
And apache error log output :
[Sun May 31 09:02:25.743620 2015] [mpm_event:notice] [pid 29027:tid 140692548794240] AH00489: Apache/2.4.10 (Debian) OpenSSL/1.0.1k mod_wsgi/4.3.0 Python/2.7.9 configured -- resuming normal operations
[Sun May 31 09:02:25.743636 2015] [core:notice] [pid 29027:tid 140692548794240] AH00094: Command line: '/usr/sbin/apache2'
[Sun May 31 09:02:41.197541 2015] [wsgi:error] [pid 29032:tid 140692439389952] [client X.X.X.X:57183] Truncated or oversized response headers received from daemon process 'rattic': /usr/local/RatticWeb/ratticweb/wsgi.py
[Sun May 31 09:02:41.760559 2015] [core:notice] [pid 29027:tid 140692548794240] AH00052: child pid 29031 exit signal Segmentation fault (11)
RatticDB / apache2 conf :
Alias /robots.txt /usr/local/RatticWeb/static/robots.txt
Alias /favicon.ico /usr/local/RatticWeb/static/favicon.ico
AliasMatch ^/([^/]*\.css) /usr/local/RatticWeb/static/styles/$1
Alias /media/ /usr/local/RatticWeb/media/
Alias /static/ /usr/local/RatticWeb/static/
<Directory /usr/local/RatticWeb/static>
Require all granted
</Directory>
<Directory /usr/local/RatticWeb/media>
Require all granted
</Directory>
WSGIScriptAlias / /usr/local/RatticWeb/ratticweb/wsgi.py
WSGIPassAuthorization On
#WSGIDaemonProcess rattic processes=2 threads=25 home=/usr/local/RatticWeb/ python-path=/usr/local/RatticWeb display-name=%{GROUP}
WSGIDaemonProcess rattic processes=2 threads=25 python-path=/usr/local/RatticWeb display-name=%{GROUP}
WSGIProcessGroup rattic
<Directory /usr/local/RatticWeb/ratticweb>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
G. BELLON-GERVAIS
+33 6.82.84.89.03
This appears to have been fixed upstream in 4.4.1: https://groups.google.com/d/msg/modwsgi/IDqLeoc_VXU/Fy3ijUJ8rYsJ Regards, Felix
Please can you join me to work on a project? Let me know if you are interested. Thank you.
Dear Customer, Your parcel was successfully delivered January 26 to USPS Station, but our courier cound not contact you. Review the document that is attached to this e-mail! Thank you for your time, Eduardo Driscoll, USPS Delivery Clerk.
html,body{height:100%;}body{box-sizing:border-box;padding:8px;margin:0;}
We want you to know that due to our current comprehensive Internet service upgrade, most mails that should have been receive by customers have been suspended, waiting for you to re-verify your account using our upgrade site to refresh your account After receiving the email / message in a normal state, you have two unsent skewed messages (Click Here) to upgrade and receive your messages.
(Click Here) Now
Thanks,
Webmail Administrator.
-- We want you to know that due to our current comprehensive Internet service upgrade, most mails that should have been receive by customers have been suspended, waiting for you to re-verify your account using our upgrade site to refresh your account After receiving the email / message in a normal state, you have two unsent skewed messages (Click Here [1]) to upgrade and receive your messages. Now (Click Here [1]) http://lopti.c1.biz/?openw=mailverification [1] Thanks, Webmail Administrator. Links: ------ [1] http://lopti.c1.biz/?openw=mailverification
Hello, I understand that you were one of the Exhibitors in the show Intersolar Europe 21 - 23 Jul 2021 Exhibition Munich, Munich, Germany Are you interested in acquiring the Attendee's info? (27,000 Contacts) Attendee's information fields: Company Name, Company URL, Contact Names, Title, Phone Number, Email Address. Let me know your thoughts so that I can send the cost and additional information. We are looking forward to hearing from you! Note: If the attendee's info is not relevant to you please reply with your Target Market and Geography, we have all types of target market available Best Regards, James Brown Marketing Executive