[Zope] read-only-database

Ulla Theiss u.theiss at eurodata.de
Thu Mar 16 11:00:58 EST 2006


Hello list,

I want to run the database in read-only mode from CD and configured it 
accordingly in the zope.conf:

read-only-database on
enable-product-installation off
zserver-read-only-mode on

Starting Zope, I get the following error:

Traceback (most recent call last):
  File "\Programme\Zope\lib\python\Zope2\Startup\run.py", line 56, in ? 
run()
  File "\Programme\Zope\lib\python\Zope2\Startup\run.py", line 21, in run
    starter.prepare()
  File "E:\Programme\Zope\lib\python\Zope2\Startup\__init__.py", line 
98, in pre
pare
    self.startZope()
  File "E:\Programme\Zope\lib\python\Zope2\Startup\__init__.py", line 
257, in st
artZope
    Zope2.startup()
  File "E:\Programme\Zope\lib\python\Zope2\Startup\__init__.py", line 
47, in sta
rtup
    starter.setConfiguration(cfg)
  File "D:\Programme\Zope\lib\python\Zope2\App\startup.py", line 56, in 
startup
  File "D:\Programme\Zope\lib\python\DBTab\DBTab.py", line 96, in 
getDatabase
  File "D:\Programme\Zope\lib\python\DBTab\DBTab.py", line 113, in 
_createDataba
se
  File "E:\Programme\Zope\lib\python\Zope2\Startup\datatypes.py", line 
163, in o
pen
    DB = self.createDB()
  File "E:\Programme\Zope\lib\python\Zope2\Startup\datatypes.py", line 
160, in c
reateDB
    return ZODBDatabase.open(self)
  File "D:\Programme\Zope\lib\python\ZODB\config.py", line 97, in open
  File "D:\Programme\Zope\lib\python\ZODB\config.py", line 133, in open
  File "D:\Programme\Zope\lib\python\ZODB\FileStorage\FileStorage.py", 
line 112,
 in __init__
  File "D:\Programme\Zope\lib\python\ZODB\lock_file.py", line 57, in 
__init__
IOError: [Errno 13] Permission denied: '\\Zope-Instance/var/Data.fs.lock'

r+ means opening the file for updating. This has not to do anything with 
read-only.

Does anybody know what I have to configure additionaly, that read-only 
works?

I run Zope 2.8.4 on windows.

Many thanks in advance,
Ulla.






More information about the Zope mailing list