[Zope] Xron problems
Chris Muldrow
muldrow@mac.com
Tue, 13 Mar 2001 14:18:43 -0500
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
------
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
------
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
------
2001-03-13T19:11:49 PROBLEM(100) Products.Xron.Loggerr Dispatcher thread is
terminating.
Content-type: text/plain
<dtml-try>
<dtml-let thisyear=3D"_.str(ZopeTime().year())"
thismonth=3D"ZopeTime().mm()"
thisday=3D"ZopeTime().dd()">
<dtml-with Test>
<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>=20
<dtml-call expr=3D"manage_addFolder(thisyear, thisyear)">
<dtml-except>
Can't add year
</dtml-try>
<dtml-else>
Year exists
</dtml-if>
<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>=20
<dtml-call expr=3D"manage_addFolder(thismonth+thisyear, thismonth+thisyear)">
<dtml-except>
Can't add monthyear
</dtml-try>
<dtml-else>
Month exists
</dtml-if>
<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>=20
<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>
</dtml-with>
</dtml-with>
</dtml-with>
</dtml-let>
<dtml-except>
Can't add folder
</dtml-try>