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.
Ulla Theiss wrote at 2006-3-16 17:00 +0100:
I want to run the database in read-only mode from CD and configured it accordingly in the zope.conf:
read-only-database on
This is a relict from earlier times. It is no longer working... Nowadays, you specify the "read-only" property on the storage object. -- Dieter
Hi there The only place I find a clue about 'read-only' is in .../zope2/lib/python/ZODB/component.xml after grepping (after reading Dieter's message) .. and in the same Zope instance .../zope2/skel/etc/zope.conf.in still pushes the 'read-only-database' "relic". Doesn't look like many people use this .. Dieter Maurer wrote:
Ulla Theiss wrote at 2006-3-16 17:00 +0100:
I want to run the database in read-only mode from CD and configured it accordingly in the zope.conf:
read-only-database on
This is a relict from earlier times. It is no longer working...
Nowadays, you specify the "read-only" property on the storage object.
-- Dieter _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
-- View this message in context: http://www.nabble.com/read-only-database-tp3438824p22473030.html Sent from the Zope - General mailing list archive at Nabble.com.
Jean Jordaan wrote at 2009-3-12 04:11 -0700:
The only place I find a clue about 'read-only' is in .../zope2/lib/python/ZODB/component.xml after grepping (after reading Dieter's message)
That's what you should use for your "read-only" databases. It describes a configuration option for your "storage" subsections of the "zodb_db" sections in your Zope configuration file. -- Dieter
Hi Dieter
It describes a configuration option for your "storage" subsections of the "zodb_db" sections in your Zope configuration file.
Yes, that's what I understood -- thank you! What I meant was that few people seem to use this functionality, as the outdated howtos stand uncorrected, and the new option seems largely unknown. I'll post comments on the howtos when I find time .. -- jean . .. .... //\\\oo///\\
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jean Jordaan wrote:
Hi there
The only place I find a clue about 'read-only' is in .../zope2/lib/python/ZODB/component.xml after grepping (after reading Dieter's message) .. and in the same Zope instance .../zope2/skel/etc/zope.conf.in still pushes the 'read-only-database' "relic".
Doesn't look like many people use this ..
Can you please file a bug suggesting changing the '.in' file? Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJvn/++gerLs4ltQ4RAtAvAJ9h0vO/zHbTnENH68TOm7Dzd46D4wCgtuTO v1A3KIzcy9SUm6VcsbayAz0= =v133 -----END PGP SIGNATURE-----
Hi Tres Tres Seaver wrote:
Can you please file a bug suggesting changing the '.in' file?
Certainly: https://bugs.launchpad.net/zope2/+bug/344098 -- View this message in context: http://www.nabble.com/read-only-database-tp3438824p22553862.html Sent from the Zope - General mailing list archive at Nabble.com.
participants (4)
-
Dieter Maurer -
Jean Jordaan -
Tres Seaver -
Ulla Theiss