[Zope] zodb lock
Garrett G. Hodgson
garry@sage.att.com
Wed, 23 Feb 2000 15:58:53 -0500
i've been trying, with minor success, to figure out
how to use ZODB. i've now got a little app that uses
a FileStorage db to store Person objects, where a Person
has just a name and an age. it works the first time
i run it, but subsequent times i get:
Traceback (innermost last):
File "./TestPersistence.py", line 29, in ?
print GetPeople()
File "./TestPersistence.py", line 16, in GetPeople
app = TryPersistence.App()
File "./TryPersistence.py", line 27, in __init__
self.db = ZODB.DB( ZODB.FileStorage.FileStorage( file ) )
File "/usr/local/src/Zope-2.1.3-src/lib/python/ZODB/FileStorage.py",
line 262, in __init__
lock_file(f)
File "/usr/local/src/Zope-2.1.3-src/lib/python/ZODB/lock_file.py",
line 101, in lock_file
raise error, (
ZODB.POSException.StorageSystemError: Could not lock the database file.
There must be
another process that has opened the file.
i assume i'm missing some cleanup or finalization, beyond
get_transaction().commit()
any ideas?
(i didn't post the code because it seemed overly lengthy for this
question.
i can post it if that'd help.)
thanks
--
Garry Hodgson Every night
garry@sage.att.com a child is born
Software Innovation Services is a Holy Night.
AT&T Labs - Sophia Lyon Fahs