So...Zope Really DOES Choke And No One Knows Why?
Wonderful, just wonderful. Ahh, the joys of being on the cutting edge. So if my installation of Zope chokes regularly-- like every few hours-- and apparently I'm not alone, then I guess the only way to take care of the problem (until someone nails it in the source code) is to write a cron script that tests, I reckon, port 8080, every 5 minutes or so. How do I test this? ping won't do it. Does anyone have a cron script written that they'd care to share? TIA, BenO
Ben Ocean wrote:
Wonderful, just wonderful. Ahh, the joys of being on the cutting edge. So if my installation of Zope chokes regularly-- like every few hours-- and apparently I'm not alone, then I guess the only way to take care of the problem (until someone nails it in the source code) is to write a cron script that tests, I reckon, port 8080, every 5 minutes or so. How do I test this? ping won't do it. Does anyone have a cron script written that they'd care to share? TIA, BenO
No, but the first thing that comes to mind is this: You say "ping" and "cron" so I'm guessing you're on some unix-like OS. OK then, read the wget man page and try this: (WARNING- UNTESTED!!) #!/bin/sh zope_is_alive="wget -q -t 3 -T 30 http://my_zope_site/index_html -O /dev/null" if zope_is_alive; then echo `date` "and all's well" else echo "Oh my god! They killed Zope! You bastards!" zope start fi Call that shell script with cron and there you go. I think. -- ................... paul winkler .................... custom calendars & printing: http://www.calendargalaxy.com A member of ARMS: http://www.reacharms.com home page: http://www.slinkp.com
Wonderful, just wonderful. Ahh, the joys of being on the cutting edge. So if my installation of Zope chokes regularly-- like every few hours-- and apparently I'm not alone, then I guess the only way to take care of the problem (until someone nails it in the source code) is to write a cron script that tests, I reckon, port 8080, every 5 minutes or so. How do I test this? ping won't do it. Does anyone have a cron script written that they'd care to share?
I personally have installed zope on a shared hosting. It is running since the first ./start, and I never got problem. To be sure everything is ok, you can use "uptime", a free hosted service which will test your server every 15 minutes. It will not only tell you that zope is running, but also the webserver itself;-) That's what I do "in case of". http://uptime.arsdigita.com/uptime/about.tcl Philippe Jadin 123piano.com
Hi Ben, the thread got a bit mixed up by another problem which does not relate to yours: hanging of zserver. Your server does not hang but restarts every time. This must be a problem of your environment, may be: c-library version mismatch, python core problems (not matching system) - did you got the source distribition ? zope core (c parts) I would recommend after checking your system (Memory, kernel, clib) Install python with threads from source (may be in an extra directory) Use this python to build zope from source Try again. Regards Tino Wildenhain --On Freitag, 11. Mai 2001 19:14 -0700 Ben Ocean <zope@thewebsons.com> wrote:
Wonderful, just wonderful. Ahh, the joys of being on the cutting edge. So if my installation of Zope chokes regularly-- like every few hours-- and apparently I'm not alone, then I guess the only way to take care of the problem (until someone nails it in the source code) is to write a cron script that tests, I reckon, port 8080, every 5 minutes or so. How do I test this? ping won't do it. Does anyone have a cron script written that they'd care to share? TIA, BenO
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (4)
-
Ben Ocean -
Paul Winkler -
Philippe Jadin -
Tino Wildenhain