RE: [Zope-dev] Xron error!!!

2001-05-24 Thread Loren Stafford

1. If you can use the management interface, you can disable a Xron Scheduled
Method by deleting it from the Schedule catalog or setting its reschedule
interval to null.

2. If you delete (or just rename __init__.py to something else in) the Xron
Product. And restart Zope, there will be no Dispatcher to execute Xron
Scheduled Methods; so looping will stop.

3. The messages in the log file should indicate what kind of error the Xron
Dispatcher is encountering. If this is some kind of environmental condition,
perhaps you can fix it external to Zope and the Dispatcher will stop
looping.

4. The Dispatcher is designed to cancel erring Xron Scheduled Method,
precisely so that it will not go into a loop. The fact that it seems to be
looping indicated some very unusual condition. Please let us know what the
log file says.

5. You can truncate the bloated tail end of a Data.fs file using standard
system tools. I don't remember how right at the moment, but a search in the
mail archives on trucate and data.fs might be fruitful. Don't throw away the
original file, because you might truncate other transactions that you wanted
to save. IOW, finding the right spot to truncate is the trick.

-- HTH
-- Loren


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
 Of Espen Sorbye Frederiksen
 Sent: Thursday, May 24, 2001 13:06
 To: [EMAIL PROTECTED]
 Subject: [Zope-dev] Xron error!!!


 My Xron file has gone crazy and does not stop running. I have stopped my
 server and started it again, but the xron file is still running. This
 causes the Z2.log file and Data.fs files to
 grow to enormous files and I struggle to be able to log into the system.

 First: Can I delete the overloaded Data.fs file in the var/ directory, or
 will this cause serious trouble?

 Secondly: Is there a cure against that void Xron file of mine or must I
 manually delete it from were my own files are stored?

 Thanks for any kind of help,

 Espen


 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



RE: [Zope-dev] Xron error!!!

2001-05-24 Thread Michel Pelletier

On Thu, 24 May 2001, Loren Stafford wrote:

 5. You can truncate the bloated tail end of a Data.fs file using standard
 system tools. I don't remember how right at the moment, but a search in the
 mail archives on trucate and data.fs might be fruitful. 

Use the unix command 'split'.  I immagine cygwin ports this simple program
to windows.

Of course, you can also do the truncation in a couple lines of python, but
I'll leave that as an exercise to the reader. ;)

-Michel


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )