Long delay when error occurs in External Method
I find that if my External Method throws an error, Zope will spin for several minutes before it finally presents the error. If there is no error, my script will return immediately. Obviously it's taking me a long time to debug. Does anyone know what the problem might be? Nathaniel
nwingfield@che-llp.com wrote at 2003-10-1 12:27 -0400:
I find that if my External Method throws an error, Zope will spin for several minutes before it finally presents the error. If there is no error, my script will return immediately. Obviously it's taking me a long time to debug. Does anyone know what the problem might be?
No, no idea. And we do not see this problem... Dieter
OK, how about this one then (I like to ask the hard questions) ... On one of my Zope servers (this one is running on Windows - ick), if a python script or page template throws a Zope error, and I debug my code so that it should no longer throw the error, it will take 5 minutes before Zope acknowledges my change. Until then, the page will continue to throw the same error again and again. Scripts and page templates with no bugs immediately respond to code changes, as they should. I can reproduce this behavior as easily as creating a new python script containing the code 'return x'. When I run it, I get an error (x does not exist). If I rewrite it to 'x = 1; return x' I still get the error for 5 minutes, at which point Zope seems to become aware of my change. Nathaniel Dieter Maurer <dieter@handshake To: nwingfield@che-llp.com .de> cc: zope@zope.org Subject: Re: [Zope] Long delay when error occurs in External Method 10/02/2003 06:17 PM nwingfield@che-llp.com wrote at 2003-10-1 12:27 -0400:
I find that if my External Method throws an error, Zope will spin for several minutes before it finally presents the error. If there is no error, my script will return immediately. Obviously it's taking me a long time to debug. Does anyone know what the problem might be?
No, no idea. And we do not see this problem... Dieter
OOK, how about this one then (I like to ask the hard questions) ...
On one of my Zope servers (this one is running on Windows - ick), if a python script or page template throws a Zope error, and I debug my code so that it should no longer throw the error, it will take 5 minutes before Zope acknowledges my change. Until then, the page will continue to throw the same error again and again. Scripts and page templates with no bugs immediately respond to code changes, as they should. I can reproduce this behavior as easily as creating a new python script containing the code 'return x'. When I run it, I get an error (x does not exist). If I rewrite it to 'x = 1; return x' I still get the error for 5 minutes, at which point Zope seems to become aware of my change. Nathaniel
Is there a cache between you and the server? Caches can cache error pages, too. jens P.S.: Did you pay Dieter support money or why did you send this mail directly to him?
Jens, There is no cache between me and the server. Normal modifications to pages and scripts are not cached, and changes display immediately. Only errors are cached. Bug-free changes are immediately visible. In response to your question: I am new to mailing lists. Mailing lists, like any community, have their own culture. Generally one learns how to behave within an unfamiliar culture by observing the other members of that culture. It has generally been the case that people continue a discussion by replying to me directly, as well as to the mailing list. Your e-mail is a good example: you replied to me directly, and copied the mailing list. It is for that reason, and for that reason only, that I replied directly to Dieter. Granted, my reply was somewhat off the original topic. Though not entirely unrelated, perhaps it was better suited to a new thread. Nathaniel |---------+----------------------------> | | Jens Vagelpohl | | | <jens@zope.com> | | | | | | 10/03/2003 09:41 | | | AM | |---------+---------------------------->
------------------------------------------------------------------------------------------------------------------------------| | | | To: nwingfield@che-llp.com | | cc: Dieter Maurer <dieter@handshake.de>, zope@zope.org | | Subject: Re: [Zope] Long delay when error occurs in External Method | ------------------------------------------------------------------------------------------------------------------------------|
OOK, how about this one then (I like to ask the hard questions) ...
On one of my Zope servers (this one is running on Windows - ick), if a python script or page template throws a Zope error, and I debug my code so that it should no longer throw the error, it will take 5 minutes before Zope acknowledges my change. Until then, the page will continue to throw the same error again and again. Scripts and page templates with no bugs immediately respond to code changes, as they should. I can reproduce this behavior as easily as creating a new python script containing the code 'return x'. When I run it, I get an error (x does not exist). If I rewrite it to 'x = 1; return x' I still get the error for 5 minutes, at which point Zope seems to become aware of my change. Nathaniel
Is there a cache between you and the server? Caches can cache error pages, too. jens P.S.: Did you pay Dieter support money or why did you send this mail directly to him?
nwingfield@che-llp.com wrote at 2003-10-3 08:53 -0400:
... Scripts and page templates with no bugs immediately respond to code changes, as they should. I can reproduce this behavior as easily as creating a new python script containing the code 'return x'. When I run it, I get an error (x does not exist). If I rewrite it to 'x = 1; return x' I still get the error for 5 minutes, at which point Zope seems to become aware of my change.
I do not know. What I do know it that Zope does not treat templates with bugs in a special way when it comes to reloading them on changes. Dieter
If it's "newer" w2k or xp, it _could_ be the error reporting service. Does the python process stop (disappear) in the task manager? error reporting service (I think) allows the user to send a dump back to m$. google for this service. you might try stopping this service and seeing if the result is < 5 minutes. Also, check the applicatoin event log. Even though zope doesn't record to this log, it _may_ put event id 1000 or 10002. hth bobb ----- Original Message ----- From: <nwingfield@che-llp.com> To: "Dieter Maurer" <dieter@handshake.de> Cc: <zope@zope.org> Sent: Friday, October 03, 2003 8:53 AM Subject: Re: [Zope] Long delay when error occurs in External Method
OK, how about this one then (I like to ask the hard questions) ... On one of my Zope servers (this one is running on Windows - ick), if a python script or page template throws a Zope error, and I debug my code so that it should no longer throw the error, it will take 5 minutes before Zope acknowledges my change. Until then, the page will continue to throw the same error again and again. Scripts and page templates with no bugs immediately respond to code changes, as they should. I can reproduce this behavior as easily as creating a new python script containing the code 'return x'. When I run it, I get an error (x does not exist). If I rewrite it to 'x = 1; return x' I still get the error for 5 minutes, at which point Zope seems to become aware of my change. Nathaniel
Dieter Maurer <dieter@handshake To:
nwingfield@che-llp.com
.de> cc: zope@zope.org Subject: Re: [Zope] Long
delay when error occurs in External Method
10/02/2003 06:17 PM
nwingfield@che-llp.com wrote at 2003-10-1 12:27 -0400:
I find that if my External Method throws an error, Zope will spin for several minutes before it finally presents the error. If there is no error, my script will return immediately. Obviously it's taking me a long time to debug. Does anyone know what the problem might be?
No, no idea.
And we do not see this problem...
Dieter
---------------------------------------------------------------------------- ----
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (4)
-
Bobb -
Dieter Maurer -
Jens Vagelpohl -
nwingfield@che-llp.com