Intermittent Page Load Problem with mod_python

"Newman, Courtney D." <[email protected]> Mon, 24 Jan 2011 09:51:50 -0500
Newsgroups gmane.comp.python.mod_python
Message-ID <B5D106B9E75D1145A258CEB9565046587981F56ACF@03s-exch01.nngov.local>
--===============1680208437==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_B5D106B9E75D1145A258CEB9565046587981F56ACF03sexch01nngo_"

--_000_B5D106B9E75D1145A258CEB9565046587981F56ACF03sexch01nngo_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi,

I've inherited a server running a mod_python application written circa 2004=
-2005.  It is used as part of another application that we plan on retiring =
in the not too distant future.  The server is running Debian 3.1 which has =
been out of support for some time now.  I've been attempting to migrate the=
 system to CentOS 5.5 so that I can receive regular OS security updates.  A=
lso we are trying to standardize on 64-bit Linux and the old Debian system =
is 32-bit.

The mod_python application is having intermittent page load problems on the=
 new server.  Most of the time it loads fine, but occasionally a blank scre=
en is returned, usually at very inopportune times (e.g. after someone has e=
ntered login information, now they have to enter it a second time).  When I=
 say the screen is blank, I mean absolutely no HTML is returned.  The Apach=
e access log shows a 200 is returned.  There is nothing in the Apache error=
 log.

CentOS comes with mod_python 3.2.8 (I think) pre-built.  I've updated it th=
e final mod_python release on this system.  I've spent hours on Google look=
ing for results.  I found one post on stack overflow (http://stackoverflow.=
com/questions/1508406/mod-python-produces-no-output) which suggests a probl=
em with mod_python.cgi, but I've not been able to confirm this is the probl=
em.  None of my configuration files for Apache appear to do anything with C=
GI.  I've also searched this mailing list via Google.  It's possible that t=
his has been answered by someone on this list, but I have not been able to =
find it.

My Apache configuration for mod_python is pretty plain.  I'm posting it bel=
ow:

<Directory "/var/www/html/psp/">
DirectoryIndex login.psp
AddHandler mod_python .psp
PythonHandler mod_python.psp
PythonPath "['/var/www/html/psp/common/modules'] + sys.path"
PythonDebug On
</Directory>

I'm not sure what other information would be helpful.  I'd really prefer no=
t to have to re-write this application especially if there is an easy fix f=
or this.

Thanks,

Courtney


--_000_B5D106B9E75D1145A258CEB9565046587981F56ACF03sexch01nngo_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40"><head><meta http-equiv=3DContent-Type content=
=3D"text/html; charset=3Dus-ascii"><meta name=3DGenerator content=3D"Micros=
oft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:"Lucida Console";
	panose-1:2 11 6 9 4 5 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue vli=
nk=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal>Hi,<o:p></o:p></=
p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>I&#8217;ve=
 inherited a server running a mod_python application written circa 2004-200=
5.&nbsp; It is used as part of another application that we plan on retiring=
 in the not too distant future.&nbsp; The server is running Debian 3.1 whic=
h has been out of support for some time now.&nbsp; I&#8217;ve been attempti=
ng to migrate the system to CentOS 5.5 so that I can receive regular OS sec=
urity updates.&nbsp; Also we are trying to standardize on 64-bit Linux and =
the old Debian system is 32-bit.<o:p></o:p></p><p class=3DMsoNormal><o:p>&n=
bsp;</o:p></p><p class=3DMsoNormal>The mod_python application is having int=
ermittent page load problems on the new server.&nbsp; Most of the time it l=
oads fine, but occasionally a blank screen is returned, usually at very ino=
pportune times (e.g. after someone has entered login information, now they =
have to enter it a second time).&nbsp; When I say the screen is blank, I me=
an absolutely no HTML is returned.&nbsp; The Apache access log shows a 200 =
is returned.&nbsp; There is nothing in the Apache error log.&nbsp; <o:p></o=
:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>CentO=
S comes with mod_python 3.2.8 (I think) pre-built.&nbsp; I&#8217;ve updated=
 it the final mod_python release on this system.&nbsp; I&#8217;ve spent hou=
rs on Google looking for results.&nbsp; I found one post on stack overflow =
(<a href=3D"http://stackoverflow.com/questions/1508406/mod-python-produces-=
no-output">http://stackoverflow.com/questions/1508406/mod-python-produces-n=
o-output</a>) which suggests a problem with mod_python.cgi, but I&#8217;ve =
not been able to confirm this is the problem.&nbsp; None of my configuratio=
n files for Apache appear to do anything with CGI.&nbsp; I&#8217;ve also se=
arched this mailing list via Google.&nbsp; It&#8217;s possible that this ha=
s been answered by someone on this list, but I have not been able to find i=
t.<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNo=
rmal>My Apache configuration for mod_python is pretty plain.&nbsp; I&#8217;=
m posting it below:<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p=
><p class=3DMsoNormal><span style=3D'font-size:10.0pt;font-family:"Lucida C=
onsole"'>&lt;Directory &#8220;/var/www/html/psp/&#8221;&gt;<o:p></o:p></spa=
n></p><p class=3DMsoNormal><span style=3D'font-size:10.0pt;font-family:"Luc=
ida Console"'>DirectoryIndex login.psp<o:p></o:p></span></p><p class=3DMsoN=
ormal><span style=3D'font-size:10.0pt;font-family:"Lucida Console"'>AddHand=
ler mod_python .psp<o:p></o:p></span></p><p class=3DMsoNormal><span style=
=3D'font-size:10.0pt;font-family:"Lucida Console"'>PythonHandler mod_python=
.psp<o:p></o:p></span></p><p class=3DMsoNormal><span style=3D'font-size:10.=
0pt;font-family:"Lucida Console"'>PythonPath &#8220;[&#8216;/var/www/html/p=
sp/common/modules&#8217;] + sys.path&#8221;<o:p></o:p></span></p><p class=
=3DMsoNormal><span style=3D'font-size:10.0pt;font-family:"Lucida Console"'>=
PythonDebug On<o:p></o:p></span></p><p class=3DMsoNormal><span style=3D'fon=
t-size:10.0pt;font-family:"Lucida Console"'>&lt;/Directory&gt;<o:p></o:p></=
span></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>I&#=
8217;m not sure what other information would be helpful.&nbsp; I&#8217;d re=
ally prefer not to have to re-write this application especially if there is=
 an easy fix for this.<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p>=
</p><p class=3DMsoNormal>Thanks,<o:p></o:p></p><p class=3DMsoNormal><br>Cou=
rtney<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p></div></body>=
</html>=

--_000_B5D106B9E75D1145A258CEB9565046587981F56ACF03sexch01nngo_--

--===============1680208437==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Mod_python mailing list
[email protected]
http://mailman.modpython.org/mailman/listinfo/mod_python

--===============1680208437==--