[Flask] (no subject)

Stephen Mazzei mazzei.stephen.a at gmail.com
Mon Dec 18 22:29:38 EST 2017

So I am running into an interesting error and not sure how to go about
this. When running my application on my local laptop, the application runs
smooth, but dies on the test virtual machine. My laptop is a 4 core, 8Gb
machine, the test VM is 2 core 8GB.

>From what I can tell, is on one of the pages I am pulling back about 2000
records to be displayed. On my laptop, this is fine, but it looks like this
causes the VM to fail with an error code of 500 in the Apache logs.

[Mon Dec 18 15:55:34.130217 2017] [core:error] [pid 2649] [client] Premature end of script headers: wsgi, referer:

[Mon Dec 18 15:55:34.131654 2017] [:error] [pid 2602] [remote] mod_wsgi (pid=2602): Exception occurred processing WSGI
script '/data/www/flask/usermanagement/wsgi'.

[Mon Dec 18 15:55:34.131725 2017] [:error] [pid 2602] [remote] IOError: failed to write data

I'm not to sure where to go from here, or really what I need to do. I
supplied the wsgi and my Apache config below. Any help would be really

[root at vm]# cat  wsgi

import sys

sys.path.insert(0, '/data/www/flask/usermanagement/')

from usermanagement_app import usermanagement_app as application

application.debug = True

    WSGIDaemonProcess usermanagement user=apache group=apache

    WSGIScriptAlias /webtools/usermanagement /data/www/flask/

    <Directory /data/www/flask/usermanagement>

        Order deny,allow

        AuthBasicProvider ldap

        AuthLDAPURL blah blah blah

        AuthType Basic

        AuthName "Please enter Intranet username and Intranet password"

        Require valid-user

        WSGIProcessGroup usermanagement

        WSGIApplicationGroup %{GLOBAL}

        WSGIScriptReloading On

        AllowOverride none



Stephen A. Mazzei

Systems Administrator | AFDS, ASRC Federal Data Solutions - P&G HPC Account
| 513-634-9965 <(513)%20634-9965>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/flask/attachments/20171218/289d6760/attachment.html>

More information about the Flask mailing list