Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Users

read-only-database

 

 

Zope users RSS feed   Index | Next | Previous | View Threaded


u.theiss at eurodata

Mar 16, 2006, 8:00 AM

Post #1 of 7 (1728 views)
Permalink
read-only-database

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.




_______________________________________________
Zope maillist - Zope [at] zope
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 )


dieter at handshake

Mar 16, 2006, 11:36 AM

Post #2 of 7 (1629 views)
Permalink
Re: read-only-database [In reply to]

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 [at] zope
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 )


jean.jordaan at gmail

Mar 12, 2009, 4:11 AM

Post #3 of 7 (1431 views)
Permalink
Re: re ad-only-database [In reply to]

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 [at] zope
> 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.

_______________________________________________
Zope maillist - Zope [at] zope
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 )


dieter at handshake

Mar 13, 2009, 1:19 PM

Post #4 of 7 (1435 views)
Permalink
Re: re ad-only-database [In reply to]

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
_______________________________________________
Zope maillist - Zope [at] zope
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 )


jean.jordaan at gmail

Mar 16, 2009, 3:26 AM

Post #5 of 7 (1398 views)
Permalink
Re: re ad-only-database [In reply to]

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///\\
_______________________________________________
Zope maillist - Zope [at] zope
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 )


tseaver at palladion

Mar 16, 2009, 9:36 AM

Post #6 of 7 (1394 views)
Permalink
Re: re ad-only-database [In reply to]

-----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 [at] palladion
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-----

_______________________________________________
Zope maillist - Zope [at] zope
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 )


jean.jordaan at gmail

Mar 17, 2009, 12:40 AM

Post #7 of 7 (1393 views)
Permalink
Re: re ad-only-database [In reply to]

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.

_______________________________________________
Zope maillist - Zope [at] zope
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 )

Zope users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.