[Zope] Zope DB pack error
Norman Khine
khine@btinternet.com
Thu, 16 Nov 2000 05:19:53 -0000
Perhaps you could use a command line script to pack your db....as:
#simple script to pack your database from the command line. put in crontab
#no error checking done.
import os
myzope="/your/zope/dir"
os.chdir(myzope+"/lib/python")
myday = 0
try:
import Zope
app = Zope.app()
#a lot more interesting stuff can be done here. e.g
#for i in app.objectItems():
# print i.id()
#
app.Control_Panel.Database.manage_pack(days=myday)
get_transaction().commit()
app._p_jar.close()
except:
#do interesting stuff here, mail , sms, etc
print "cant pack"
Or maybe change your clocktime to a future time and see if you can pack it
then?
regards
Norman
-----Original Message-----
From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Terry
Kerr
Sent: 16 November 2001 01:57
To: zope@zope.org
Subject: [Zope] Zope DB pack error
Hi,
I get this error when trying to pack my database. It is zope 2.4.1,
python2.1.1, running on linux RH7.1
Error Type: FileStorageError
Error Value: The database has already been packed to a later time or no
changes have been
made since the last pack
The system time is correct. I have tried the pack several times in the
last few days, and on each occasion have gotten this error.
terry
--
Terry Kerr (terry@adroit.net)
Chief Technical Officer
Adroit Internet Solutions (www.adroit.net)
Phone: +61 3 9563 4461
Fax: +61 3 9563 3856
ICQ: 79303381
_______________________________________________
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 )