[Zope] Recovery Disaster :(

Chris Meyers chris@hddesign.com
Mon, 29 Jul 2002 07:47:58 -0500


On Mon, Jul 29, 2002 at 02:18:13AM -0500, David Huttleston Jr wrote:
> I'm in a big bind.  During a server upgrade our
> tape unit ate our backup tape.  :(  So our Data.fs
> file is not recoverable.  We have an XML export of
> the root folder of Zope (it's about 300MB), which
> has everything we need.  But, it will not load
> into our new Zope.
> 
> The export was made from a RedHat 7.2 system
> running Zope 2.5, were trying to import the xml
> file into the root folder on a FreeBSD 4.6 system
> running Zope 2.5.1.
> 
> Just to complicate things, in one of the
> development trees there was a single instance of a
> ZPoPy database adapter and a ZSQL referencing it.
> This product did not exist any more, but the
> object was not removed.
> 
> After about a 20 minute import, the the logfile
> created from Z2.py's stdout shows the text below
> (followed by 15 more POSKeyError's).
> 
> Thank you for any suggestions.
> Sincerely,
>   Dave
> 
> ------
> 2002-07-29T06:56:13 INFO(0) ZODB Opening database
> for mounting: '142771272_1012909665.012252'
> ------
> 2002-07-29T06:56:13 INFO(0) ZODB Mounted database
> '142771272_1012909665.012252' at /temp_folder
> ------
> 2002-07-29T06:56:13 INFO(0) Script (Python) Some
> of your Scripts have stale code cached.  Since
> Zope cannot use this code, startup will be
> slightly slower until these Scripts are edited.
> You can automatically recompile all Scripts that
> have this problem by visiting
> /manage_addProduct/PythonScripts/recompile of your
> server in a browser.
> ------
> 2002-07-29T06:56:47 PROBLEM(100) ZODB Could not
> import class 'Connection' from module
> 'Products.ZPoPyDA.DA'
> ------
> 2002-07-29T07:00:30 ERROR(200) ZODB setklassstate
> failed
> Traceback (innermost last):
>     File /usr/local/www/Zope/lib/python/ZODB/Connection.py, 
> line 510, in setklassstate
> 	(Info: ^@^@^@^@^@^@#O) 
>     File /usr/local/www/Zope/lib/python/ZODB/FileStorage.py, 
> line 582, in load
> 	(Object: /usr/local/www/Zope/var/Data.fs)
>     File /usr/local/www/Zope/lib/python/ZODB/FileStorage.py, 
> line 557, in _load
> 	(Object: /usr/local/www/Zope/var/Data.fs)
> POSKeyError: 000000000000234f
> 

Here is another set of errors that we are getting from the ZMI when importing the xml.

 The permission Add Simples is already defined.

 Powered by Zope

 Traceback (innermost last):
   File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py,
   line 150, in publish_module
   File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py,
   line 114, in publish
   File /usr/local/www/Zope/lib/python/Zope/__init__.py, line
   159, in zpublisher_exception_hook
   (Object: Zope)
   File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py,
   line 98, in publish
   File /usr/local/www/Zope/lib/python/ZPublisher/mapply.py,
   line 88, in mapply
   (Object: manage_importObject)
   File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py,
   line 39, in call_object
   (Object: manage_importObject)
   File /usr/local/www/Zope/lib/python/OFS/ObjectManager.py,
   line 526, in manage_importObject
   (Object: Zope)
   File /usr/local/www/Zope/lib/python/OFS/ObjectManager.py,
   line 547, in _importObjectFromFile
   (Object: Zope)
   File /usr/local/www/Zope/lib/python/OFS/ObjectManager.py,
   line 267, in _setObject
   (Object: Zope)
   File /usr/local/www/Zope/lib/python/OFS/ObjectManager.py,
    line 275, in manage_afterAdd
   File /usr/local/www/Zope/lib/python/OFS/ObjectManager.py,
   line 275, in manage_afterAdd
   File /usr/local/www/Zope/lib/python/OFS/ObjectManager.py,
   line 275, in manage_afterAdd
   File /usr/local/www/Zope/lib/python/OFS/ObjectManager.py,
   line 275, in manage_afterAdd
   File /usr/local/www/Zope/lib/python/App/Permission.py,
   line 52, in manage_afterAdd
   File /usr/local/www/Zope/lib/python/App/Permission.py,
   line 60, in _register
   File
   /usr/local/www/Zope/lib/python/App/ProductRegistry.py, line
   100, in _manage_add_product_permission
   Type Exists: (see above)


Any hints or suggestions will be appreciated.

Thanks
Chris
						 
> -- 
> David Huttleston Jr
> 7941 Tree Lane Suite 200
> Madison WI 53717
> 
-- 
Chris Meyers
Huttleston Data Design
7941 Tree Lane Suite 200
Madison WI 53717