Mount in Debug-Modus, verschachtelte Data.fs
"Andreas Goesele" <[email protected]>
| Newsgroups | gmane.comp.web.zope.german |
|---|---|
| Message-ID | <[email protected]> |
Hallo,
hier kommt eine wohl etwas schwierigere Frage.
Wir haben ein ernstes Problem (POSKeyError) mit unserer data.fs und
sollten deshalb die data.fs im Debug-Modus mounten. Wir haben drei
data.fs ineinander verschachtelt und es gelingt uns nicht, die
relevante data.fs im Debug-Modus zu mounten.
Die mount points der drei data.fs sind folgendermaße konfiguriert:
zope_db our.plone.site.main:
mount-point /
filestorage /path/to/our.plone.site.main.fs
zope_db our.plone.site:
mount-point /second.plone.site:/our.plone.site/second.plone.site
filestorage /path/to/second.plone.site.fs
zope_db our.plone.site.stuff
mount-point /second.plone.site/path/to/stuff
filestorage /path/to/our.plone.site.stuff.fs
Für den normalen Betrieb funktioniert das ohne Probleme.
Eine Debug-Sitzung (das Problem liegt in second.plone.site.fs) läuft
aber so:
./zopectl
zopectl> debug
Starting debugger (the name "app" is bound to the top-level Zope object)
[some deprecation warnings]
>>> from Zope.Startup.run import configure
-c:1: DeprecationWarning: The Zope package has been renamed to Zope2. Import of a package named 'Zope' is deprecated and will be disabled starting in Zope 2.11.
>>> configure('/path/to/zope.conf')
<Zope2.Startup.UnixZopeStarter instance at 0x2b3155823c68>
obj=root.unrestrictedTraverse('/second.plone.site/')
2009-02-18 18:38:06 ERROR Zope.ZODBMountPoint Failed to mount database. exceptions.KeyError ('our.plone.site')
Traceback (most recent call last):
File "/path/to/Plone-3.1.4/zeocluster/parts/zope2/lib/python/Products/ZODBMountPoint/MountedObject.py", line 257, in _getOrOpenObject
conn = self._getMountedConnection(anyjar)
File "/path/to/Plone-3.1.4/zeocluster/parts/zope2/lib/python/Products/ZODBMountPoint/MountedObject.py", line 149, in _getMountedConnection
return anyjar.get_connection(self._getDBName())
File "/path/to/Plone-3.1.4/zeocluster/parts/zope2/lib/python/ZODB/Connection.py", line 328, in get_connection
new_con = self._db.databases[database_name].open(
KeyError: 'our.plone.site'
2009-02-18 18:38:06 ERROR Zope.ZODBMountPoint Failed to mount database. exceptions.KeyError ('our.plone.site')
Traceback (most recent call last):
File "/path/to/Plone-3.1.4/zeocluster/parts/zope2/lib/python/Products/ZODBMountPoint/MountedObject.py", line 257, in _getOrOpenObject
conn = self._getMountedConnection(anyjar)
File "/path/to/Plone-3.1.4/zeocluster/parts/zope2/lib/python/Products/ZODBMountPoint/MountedObject.py", line 149, in _getMountedConnection
return anyjar.get_connection(self._getDBName())
File "/path/to/Plone-3.1.4/zeocluster/parts/zope2/lib/python/ZODB/Connection.py", line 328, in get_connection
new_con = self._db.databases[database_name].open(
KeyError: 'our.plone.site'
Was machen wir falsch und wie können wir die data.fs so im debug mode
mounten, daß wir an unseren "Container" mit dem Problem rankommen?
Vielen Dank im Voraus!
Andreas Gösele
--
Omnis enim res, quae dando non deficit, dum habetur et non datur,
nondum habetur, quomodo habenda est.
Augustinus, De doctrina christiana
_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope