[ZODB-Dev] new user questions

richrad miller rmiller at nextg.com
Tue Nov 25 15:28:57 EST 2008


Two questions from a new user

I am running UBUNTU 8.04

1. If I open a zodb file and (Ctrl)c the process, I receive the
following message on trying to reopen the file.  Is there a way to 
recover ?

Traceback (most recent call last):
  File "show_rate.py", line 298, in <module>
    zdb = zodbmod.WorkZodb('/work/tmp/zdb/rates.fs','old')
  File "/work/python/modules/zodbmod.py", line 12, in __init__
    self.storage = FileStorage.FileStorage(self.path)
  File
"/usr/lib/python2.5/site-packages/ZODB3-3.8.1b7-py2.5-linux-i686.egg/ZODB/FileStorage/FileStorage.py", line 115, in __init__
    self._lock_file = LockFile(file_name + '.lock')
  File
"/usr/lib/python2.5/site-packages/ZODB3-3.8.1b7-py2.5-linux-i686.egg/ZODB/lock_file.py", line 86, in __init__
    raise
  File
"/usr/lib/python2.5/site-packages/ZODB3-3.8.1b7-py2.5-linux-i686.egg/ZODB/lock_file.py", line 80, in __init__
    _lock_file(fp)
  File
"/usr/lib/python2.5/site-packages/ZODB3-3.8.1b7-py2.5-linux-i686.egg/ZODB/lock_file.py", line 59, in _lock_file
    raise LockError("Couldn't lock %r" % file.name)
LockError: Couldn't lock '/work/tmp/zdb/rates.fs.lock'

2.  Is there a way to open a zodb file in "read only" mode.

Thanks for you kind attention,

Richard




More information about the ZODB-Dev mailing list