[Zope] Xron problems

Chris Muldrow muldrow@mac.com
Tue, 13 Mar 2001 23:27:14 -0500


Thanks! Cool thing number 1000 about Zope--the folks who build pieces for i=
t
write back to you when you've got questions!
It's a fairly new installation, but it's worked on some other things. I'll
try to see if I can wrangle some more test information.

> From: "Loren Stafford" <lstafford@morphics.com>
> Date: Tue, 13 Mar 2001 14:09:33 -0800
> To: "'Chris Muldrow'" <muldrow@mac.com>, <zope@zope.org>
> Subject: RE: [Zope] Xron problems
>=20
> I'm guessing you are running this on Win98. True? That shouldn't be a
> problem.
>=20
> What the second message in the log says is that, when the Dispatcher woke=
 up
> and tried to get the next scheduled event from the Schedule (which is a
> ZCatalog), it encountered a ConflictError. The third message says the
> Dispatcher terminated, something it has to do in this situation; otherwis=
e,
> it would go into a loop trying to access the Schedule.
>=20
> I can't see why there is a conflict error -- perhaps it has to do with th=
e
> first message in the log. It probably has nothing to do with the content =
of
> the scheduled method, because that method wasn't executed yet. IIUC, a
> conflict error occurrs when it looks to Zope that two transactions are
> trying to update the same ZODB resource. This may be a transient occurren=
ce,
> or may be caused by a stalled transaction hogging the resource.
>=20
> If you were running on Unix you could kill off a thread or two and see if
> the other ones proceed. But I don't think you can do that on Win.
>=20
> I don't think I can pinpoint your problem, but here are a few questions t=
o
> ask:
>=20
> Does this situation occur only after a fresh install of Xron? ...or have =
you
> successfully run other Xron methods?
>=20
> Is this situation repeatable, even after restarting Zope?
>=20
> Are there any recent transactions that you can undo to eliminate the caus=
e
> of the first message in the log?
>=20
> -- HTH
> -- Loren
>=20
>=20
>> -----Original Message-----
>> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On
>> Behalf Of Chris
>> Muldrow
>> Sent: Tuesday, March 13, 2001 11:19
>> To: zope@zope.org
>> Subject: [Zope] Xron problems
>>=20
>>=20
>> I'm getting the following errors when I try to run a Xron as
>> scheduled task.
>> I can trigger the Xron method manually and it will work. The
>> method is at
>> the bottom of this message. Any ideas what is happening?
>> Thanks-- Chris
>>=20
>> ------
>> 2001-03-13T19:11:49 ERROR(200) ZODB Couldn't load state for
>> '\000\000\000\000\000\012\220r'
>> Traceback (innermost last):
>> File F:\CONNEC~1\lib\python\ZODB\Connection.py, line 490,
>> in setstate
>> ConflictError: =EAr
>>=20
>>=20
>> ------
>> 2001-03-13T19:11:49 (302) Products.Xron.Loggerr Cannot access catalog.
>> Suspending operation.
>> Traceback (innermost last):
>> File "F:\CONNEC~1\lib\python\Products\Xron\Dispatcher.py",
>> line 123, in
>> Timer
>> (atime, aurl)=3DSchedule.armed_event() # Get next armed event
>> File "F:\CONNEC~1\lib\python\Products\Xron\Schedule.py",
>> line 215, in
>> armed_event
>> for event in self._catalog.searchResults(
>> File "F:\CONNEC~1\lib\python\ZODB\Connection.py", line 490,
>> in setstate
>> if invalid(oid) or invalid(None): raise ConflictError, oid
>> ConflictError: =EAr
>> Traceback (innermost last):
>> File F:\CONNEC~1\lib\python\Products\Xron\Dispatcher.py,
>> line 123, in
>> Timer
>> File F:\CONNEC~1\lib\python\Products\Xron\Schedule.py, line 215, in
>> armed_event
>> (Object: Traversable)
>> File F:\CONNEC~1\lib\python\ZODB\Connection.py, line 490,
>> in setstate
>> ConflictError: =EAr
>>=20
>>=20
>> ------
>> 2001-03-13T19:11:49 PROBLEM(100) Products.Xron.Loggerr
>> Dispatcher thread is
>> terminating.
>>=20
>>=20
>> Content-type: text/plain
>>=20
>> <dtml-try>
>> <dtml-let thisyear=3D"_.str(ZopeTime().year())"
>> thismonth=3D"ZopeTime().mm()"
>> thisday=3D"ZopeTime().dd()">
>> <dtml-with Test>
>>=20
>> <dtml-in expr=3D"objectIds('Folder')">
>> <dtml-var sequence-item> is item
>> </dtml-in>
>> <dtml-comment>See if the folder for the year exists. If not, make
>> it</dtml-comment>
>> <dtml-if expr=3D"thisyear not in objectIds('Folder')">
>> Can't find <dtml-var thisyear><br>
>> <dtml-try>
>> <dtml-call expr=3D"manage_addFolder(thisyear, thisyear)">
>> <dtml-except>
>> Can't add year
>> </dtml-try>
>> <dtml-else>
>> Year exists
>> </dtml-if>
>>=20
>> <dtml-with expr=3D"_.getitem(thisyear)">
>> <dtml-if expr=3D"thismonth+thisyear not in objectIds('Folder')">
>> Can't find <dtml-var "thismonth+thisyear"><br>
>> <dtml-try>
>> <dtml-call expr=3D"manage_addFolder(thismonth+thisyear,
>> thismonth+thisyear)">
>> <dtml-except>
>> Can't add monthyear
>> </dtml-try>
>> <dtml-else>
>> Month exists
>> </dtml-if>
>>=20
>> <dtml-with expr=3D"_.getitem(thismonth+thisyear)">
>> <dtml-if expr=3D"thismonth+thisday+thisyear not in objectIds('Folder')">
>> Can't find <dtml-var "thismonth+thisday+thisyear"><br>
>> <dtml-try>
>> <dtml-call expr=3D"manage_addFolder(thismonth+thisday+thisyear,
>> thismonth+thisday+thisyear)">
>> <dtml-except>
>> Can't add monthdayyear
>> </dtml-try>
>> <dtml-else>
>> Day exists
>> </dtml-if>
>>=20
>>=20
>>=20
>> </dtml-with>
>>=20
>> </dtml-with>
>>=20
>>=20
>> </dtml-with>
>>=20
>> </dtml-let>
>> <dtml-except>
>> Can't add folder
>> </dtml-try>
>>=20
>>=20
>> _______________________________________________
>> 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 )
>>=20
>=20