Re: Mount in Debug-Modus, verschachtelte Data.fs

"Dieter Maurer" <[email protected]>
Newsgroups gmane.comp.web.zope.german
Message-ID <[email protected]>
Andreas Goesele wrote at 2009-2-18 18:44 +0100:
> ...
>Wir haben ein ernstes Problem (POSKeyError) mit unserer data.fs und
>sollten deshalb die data.fs im Debug-Modus mounten.

Was bedeutet hier "Debug-Modus"?

>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

Diese Mount-Point Definitionen sehen merkwürdig aus.

Der Mount-Point Wert hat das Format

    local_path[:mounted_path]

Dabei ist "local_path" der Pfad zum Moint-Point-Objekt
und "mouted_path" der Pfad zu dem gemounteten Objekt innerhalb
des Storage.

Wird ":mounted_path" weggelassen, wird "mounted_path == local_path"
vorausgesetzt.
    
>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')

Dieses "configure" sollte nicht notwendig sein.

><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'

Ich bin nicht sicher, ob es Dir hilft -- aber lass mal
das obige "configure" weg und schaut, ob das Problem verschwindet.





-- 
Dieter


_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.