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 -- David Huttleston Jr 7941 Tree Lane Suite 200 Madison WI 53717
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
Many thanks to Jim and Sean at Zope.com for saving our bacon! Prior to this emergency, we had no contact with Zope.com, we just knew they provided commercial support for Zope. Monday morning we called hoping they could help-- within four hours of our initial contact, we received a 55MB zexp file with all our rescued sites. Boy, were we happy to see two folders called "dev" and "prod". Lessons learned-- 1) DO NOT export the root directory from the ZMI. Since it includes the controlpanel and such, it can NOT be imported into a running Zope. i.e. It's useless! 2) DO have serveral backups of Data.fs and Data.fs.index One backup recent backup is not enough-- it might fail. 3) DO have backups of your Extensions and Products directories saved with your Data.fs. Without these, versioning problems can make restoring a nightmare. 4) Contact Zope.com if you're outa tricks or outa time. Happy (and Safe) Zoping to all, Dave On Monday 29 July 2002 02:18 am, 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 about 300MB), which has everything we need. But, it will not load into our new Zope.
-- David Huttleston Jr 7941 Tree Lane Suite 200 Madison WI 53717
On Tue, Jul 30, 2002 at 10:25:50AM -0500, David Huttleston Jr wrote:
Many thanks to Jim and Sean at Zope.com for saving our bacon! Prior to this emergency, we had no contact with Zope.com, we just knew they provided commercial support for Zope. Monday morning we called hoping they could help-- within four hours of our initial contact, we received a 55MB zexp file with all our rescued sites. Boy, were we happy to see two folders called "dev" and "prod".
Lessons learned-- 1) DO NOT export the root directory from the ZMI. Since it includes the controlpanel and such, it can NOT be imported into a running Zope. i.e. It's useless! 2) DO have serveral backups of Data.fs and Data.fs.index One backup recent backup is not enough-- it might fail. 3) DO have backups of your Extensions and Products directories saved with your Data.fs. Without these, versioning problems can make restoring a nightmare. 4) Contact Zope.com if you're outa tricks or outa time.
Happy (and Safe) Zoping to all, Dave
On Monday 29 July 2002 02:18 am, 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 about 300MB), which has everything we need. But, it will not load into our new Zope.
5) NEVER rely on a single backup tape. ";-) -- __________________________________________________ "Nothing is as subjective as reality" Reinoud van Leeuwen reinoud.v@n.leeuwen.net http://www.xs4all.nl/~reinoud __________________________________________________
participants (3)
-
Chris Meyers -
David Huttleston Jr -
Reinoud van Leeuwen