[GH-ISSUE #147] End of script output before headers: wsgi.py #123

Closed
opened 2026-02-27 16:38:02 +03:00 by kerem · 3 comments
Owner

Originally created by @vchrizz on GitHub (Nov 15, 2013).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/147

hi,

great project! works really well. just that i had to install apache2-mpm-prefork, else apache2 is eating up all ram, giving http500 errors if its not killed by the os.
besides that i see following messages in logs. its just notices but segfaults, so im unsure what to do about it, ignore it? actually im running debian/testing(jessie) but was getting the same messages on debian/stable(wheezy) too before upgrading.

/var/log/apache2/error.log:
[Fri Nov 15 14:02:42.165846 2013] [core:notice] [pid 3202:tid 139765969860416] AH00052: child pid 25487 exit signal Segmentation fault (11)
[Fri Nov 15 14:02:44.168478 2013] [core:notice] [pid 3202:tid 139765969860416] AH00052: child pid 25505 exit signal Segmentation fault (11)
[Fri Nov 15 14:03:41.223454 2013] [core:notice] [pid 3202:tid 139765969860416] AH00052: child pid 25526 exit signal Segmentation fault (11)
[Fri Nov 15 14:03:55.239019 2013] [core:notice] [pid 3202:tid 139765969860416] AH00052: child pid 25546 exit signal Segmentation fault (11)
[Fri Nov 15 14:05:17.325745 2013] [core:notice] [pid 3202:tid 139765969860416] AH00052: child pid 25566 exit signal Segmentation fault (11)
[Fri Nov 15 14:06:14.385470 2013] [core:notice] [pid 3202:tid 139765969860416] AH00052: child pid 25590 exit signal Segmentation fault (11)

/var/log/apache2/webvirtmgr-error_log:
[Fri Nov 15 14:02:43.733647 2013] [core:error] [pid 3208:tid 139765851744000] [client 1.2.3.4:49896] End of script output before headers: wsgi.py, referer: http://eleanor:8888/overview/1/
[Fri Nov 15 14:03:40.386321 2013] [core:error] [pid 3207:tid 139765868529408] [client 1.2.3.4:49897] End of script output before headers: wsgi.py, referer: http://eleanor:8888/overview/1/
[Fri Nov 15 14:03:54.888157 2013] [core:error] [pid 3208:tid 139765868529408] [client 1.2.3.4:49898] End of script output before headers: wsgi.py, referer: http://eleanor:8888/overview/1/
[Fri Nov 15 14:05:16.897018 2013] [core:error] [pid 3208:tid 139765843351296] [client 1.2.3.4:49900] End of script output before headers: wsgi.py, referer: http://eleanor:8888/overview/1/
[Fri Nov 15 14:05:16.897054 2013] [core:error] [pid 3207:tid 139765834958592] [client 1.2.3.4:49901] End of script output before headers: wsgi.py, referer: http://eleanor:8888/overview/1/
[Fri Nov 15 14:06:13.901109 2013] [core:error] [pid 3208:tid 139765752002304] [client 1.2.3.4:49923] End of script output before headers: wsgi.py, referer: http://eleanor:8888/overview/1/

Originally created by @vchrizz on GitHub (Nov 15, 2013). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/147 hi, great project! works really well. just that i had to install apache2-mpm-prefork, else apache2 is eating up all ram, giving http500 errors if its not killed by the os. besides that i see following messages in logs. its just notices but segfaults, so im unsure what to do about it, ignore it? actually im running debian/testing(jessie) but was getting the same messages on debian/stable(wheezy) too before upgrading. /var/log/apache2/error.log: [Fri Nov 15 14:02:42.165846 2013] [core:notice] [pid 3202:tid 139765969860416] AH00052: child pid 25487 exit signal Segmentation fault (11) [Fri Nov 15 14:02:44.168478 2013] [core:notice] [pid 3202:tid 139765969860416] AH00052: child pid 25505 exit signal Segmentation fault (11) [Fri Nov 15 14:03:41.223454 2013] [core:notice] [pid 3202:tid 139765969860416] AH00052: child pid 25526 exit signal Segmentation fault (11) [Fri Nov 15 14:03:55.239019 2013] [core:notice] [pid 3202:tid 139765969860416] AH00052: child pid 25546 exit signal Segmentation fault (11) [Fri Nov 15 14:05:17.325745 2013] [core:notice] [pid 3202:tid 139765969860416] AH00052: child pid 25566 exit signal Segmentation fault (11) [Fri Nov 15 14:06:14.385470 2013] [core:notice] [pid 3202:tid 139765969860416] AH00052: child pid 25590 exit signal Segmentation fault (11) /var/log/apache2/webvirtmgr-error_log: [Fri Nov 15 14:02:43.733647 2013] [core:error] [pid 3208:tid 139765851744000] [client 1.2.3.4:49896] End of script output before headers: wsgi.py, referer: http://eleanor:8888/overview/1/ [Fri Nov 15 14:03:40.386321 2013] [core:error] [pid 3207:tid 139765868529408] [client 1.2.3.4:49897] End of script output before headers: wsgi.py, referer: http://eleanor:8888/overview/1/ [Fri Nov 15 14:03:54.888157 2013] [core:error] [pid 3208:tid 139765868529408] [client 1.2.3.4:49898] End of script output before headers: wsgi.py, referer: http://eleanor:8888/overview/1/ [Fri Nov 15 14:05:16.897018 2013] [core:error] [pid 3208:tid 139765843351296] [client 1.2.3.4:49900] End of script output before headers: wsgi.py, referer: http://eleanor:8888/overview/1/ [Fri Nov 15 14:05:16.897054 2013] [core:error] [pid 3207:tid 139765834958592] [client 1.2.3.4:49901] End of script output before headers: wsgi.py, referer: http://eleanor:8888/overview/1/ [Fri Nov 15 14:06:13.901109 2013] [core:error] [pid 3208:tid 139765752002304] [client 1.2.3.4:49923] End of script output before headers: wsgi.py, referer: http://eleanor:8888/overview/1/
kerem closed this issue 2026-02-27 16:38:02 +03:00
Author
Owner

@retspen commented on GitHub (Nov 17, 2013):

This problem only Ubuntu/Debian distro. I find this on https://code.google.com/p/modwsgi/wiki/FrequentlyAskedQuestions

Apache Process Crashes
Q: Why when the mod_wsgi module is initially being loaded by Apache, do the Apache server processes crash with a 'segmentation fault'?

A: This is nearly always caused due to mod_python also being loaded by Apache at the same time as mod_wsgi and the Python installation not providing a shared library, or mod_python having originally being built against a static Python library. This is especially a problem with older Linux distributions before they started shipping with Python as a shared library.

<!-- gh-comment-id:28645914 --> @retspen commented on GitHub (Nov 17, 2013): This problem only Ubuntu/Debian distro. I find this on https://code.google.com/p/modwsgi/wiki/FrequentlyAskedQuestions Apache Process Crashes Q: Why when the mod_wsgi module is initially being loaded by Apache, do the Apache server processes crash with a 'segmentation fault'? A: This is nearly always caused due to mod_python also being loaded by Apache at the same time as mod_wsgi and the Python installation not providing a shared library, or mod_python having originally being built against a static Python library. This is especially a problem with older Linux distributions before they started shipping with Python as a shared library.
Author
Owner

@jansauerbrey commented on GitHub (Nov 18, 2013):

Hi,

I have the same problem with ubuntu 12.04.
I also remove mod_python (package: libapache2-mod-python) but nothing changed.

At the same time the following errors show up in the libvirt log:

2013-11-18 21:06:50.670+0000: 16090: error : virNetSocketReadWire:1006 : End of file while reading data: Input/output error
2013-11-18 21:06:52.982+0000: 16090: error : virNetSocketReadWire:1006 : End of file while reading data: Input/output error
2013-11-18 21:25:26.680+0000: 31465: error : virNetSocketReadWire:998 : Cannot recv data: Connection reset by peer
2013-11-18 21:25:28.958+0000: 31465: error : virNetSocketReadWire:1006 : End of file while reading data: Input/output error

Jan

<!-- gh-comment-id:28736380 --> @jansauerbrey commented on GitHub (Nov 18, 2013): Hi, I have the same problem with ubuntu 12.04. I also remove mod_python (package: libapache2-mod-python) but nothing changed. At the same time the following errors show up in the libvirt log: 2013-11-18 21:06:50.670+0000: 16090: error : virNetSocketReadWire:1006 : End of file while reading data: Input/output error 2013-11-18 21:06:52.982+0000: 16090: error : virNetSocketReadWire:1006 : End of file while reading data: Input/output error 2013-11-18 21:25:26.680+0000: 31465: error : virNetSocketReadWire:998 : Cannot recv data: Connection reset by peer 2013-11-18 21:25:28.958+0000: 31465: error : virNetSocketReadWire:1006 : End of file while reading data: Input/output error Jan
Author
Owner

@retspen commented on GitHub (Jan 30, 2014):

move to nginx and gunicorn + supervisor

<!-- gh-comment-id:33668007 --> @retspen commented on GitHub (Jan 30, 2014): move to nginx and gunicorn + supervisor
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtmgr#123
No description provided.