[ZCM] [ZC] 1261/ 3 Comment "global name 'oid_repr' is not defined error at ZODB packing"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Wed May 12 11:24:49 EDT 2004


Issue #1261 Update (Comment) "global name 'oid_repr' is not defined error at ZODB packing"
 Status Accepted, Database/bug medium
To followup, visit:
  http://zope.org/Collectors/Zope/1261

==============================================================
= Comment - Entry #3 by ajung on May 12, 2004 11:24 am

You could please check if we can fix this bug for 2.7.1 beta?
________________________________________
= Accept - Entry #2 by tim_one on Mar 18, 2004 10:44 am

 Status: Pending => Accepted

 Supporters added: tim_one

fspack is trying to raise an exception, because timestamps in the database don't make sense.  So there are (at least) two problems here:

1. The database assumes time doesn't go backwards, and uses current time to build transaction ids.  Your clock going back 4 years for a while has created problems for you this way.  Probably easiest if you can revert to a backup of the database from before the system time glitch.

2. It looks like oid_repr is indeed not imported by 2.7's fspack, and that's a bug in Zope 2.7's ZODB.  You didn't see the problem before because oid_repr is only used by fspack when fspack wants to raise an exception.
________________________________________
= Request - Entry #1 by kaixo on Mar 18, 2004 7:56 am

When I attempt to pack the database, it raises an error:

2004-03-18T13:41:55 ERROR(200) ZODB packing
Traceback (most recent call last):
  File "/usr/local/Zope-2.7.0/lib/python/ZODB/DB.py", line 528, in pack
    try: self._storage.pack(t,referencesf)
  File "/usr/local/Zope-2.7.0/lib/python/ZODB/FileStorage.py", line 1557, in pack
    opos = p.pack()
  File "/usr/local/Zope-2.7.0/lib/python/ZODB/fspack.py", line 698, in pack
    self.gc.findReachable()
  File "/usr/local/Zope-2.7.0/lib/python/ZODB/fspack.py", line 455, in findReachable
    self.findReachableFromFuture()
  File "/usr/local/Zope-2.7.0/lib/python/ZODB/fspack.py", line 555, in findReachableFromFuture
    self.checkTxn(th, pos)
  File "/usr/local/Zope-2.7.0/lib/python/ZODB/fspack.py", line 164, in checkTxn
    oid_repr(th.tid), oid_repr(self.ltid))
NameError: global name 'oid_repr' is not defined

It worked well for months, but we upgraded the bios and after restarting zope I noticed that the date was 2000, and I set it forth to 2004. Maybe this can cause the problem?
==============================================================




More information about the Zope-Collector-Monitor mailing list