zope.conf zodb_db/zeoclient tags can not have "storage" names with upper case
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Invalid
|
Low
|
Unassigned |
Bug Description
If the zope.conf <zeoclient> tag contains a "storage" with a mixed or upper case name, Zope/ZEO is unable to access the storage. If "storage" is lower case, or numeric, there's no problem.
zope.conf file contains:
<zodb_db CHONe>
cache-size 5000
<zeoclient>
server 11100
storage CHONe
name CHONe_zeostorage
var /home/Plone-
cache-size 30MB
</zeoclient>
mount-point /CHONemount
</zodb_db>
zeo.conf contains:
<filestorage CHONe>
path /home/Plone-
</filestorage>
An attempt to create the mount point from the ZMI results in:
2008-10-20T21:48:45 INFO ZEO.ClientStorage (9697) ClientStorage (pid=9697) created RW/normal for storage: 'CHONe'
------
2008-10-20T21:48:45 INFO ZEO.cache created temporary cache file '<fdopen>'
------
2008-10-20T21:48:45 INFO ZEO.ClientStorage (9697) Testing connection <ManagedClientC
------
2008-10-20T21:48:45 INFO ZEO.zrpc.
------
2008-10-20T21:48:45 INFO ZEO.ClientStorage (9697) Server authentication protocol None
------
2008-10-20T21:48:45 ERROR ZEO.zrpc (9697) CW: error in testConnection (('127.0.0.1', 11100))
Traceback (most recent call last):
File "/home/
self.preferred = self.client.
File "/home/
stub.
File "/home/
self.
File "/home/
raise inst # error raised by server
ValueError: unknown storage: CHONe
Changed in zope2: | |
importance: | Undecided → Low |
status: | New → Confirmed |
If you specify an invalid value in your configuration the server does not start up. Trying to automagically make things work, is not a good solution. Fix your configuration to have the names in lower-case in all places.