Re: [ZODB-Dev] Versions aren't supported message in Plone 4 upgrade

2010-09-09 Thread Jim Fulton
On Wed, Sep 8, 2010 at 5:28 PM, Mike Hammill m...@kth.se wrote:
 Just wondering if anyone could point me in the right direction.

 I'm getting the error:

 ValueError: Non-zero version length. Versions aren't supported.

 when trying to bring up a Data.fs from Plone 3.3.1 in Plone 4.0.0.  The
 Data.fs file was made by doing a snapshotbackup of a production Plone
 3.3.1 and then snapshotrestore under Plone 4.0.0.  The full error is at
 http://pastie.org/1146604.  #plone folks suggested I ask here.

That's annoying. :)

  Is
 this a corrupt database?  Do I have to upgrade 3.3.1 to some newer 3.3.x
 before 4.0.0?  Any ideas?

Your database contains versions. Versions haven't been supported in Zope
(and thus Plone) in years as far as I know. ZODB 3.9 no-longer supports
versions. You can't use a database containing versions with ZODB 3.9
(and presumably Plone 4).

Have you tried packing your database?

Jim

-- 
Jim Fulton
___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev


Re: [ZODB-Dev] Versions aren't supported message in Plone 4 upgrade

2010-09-09 Thread David Glick
 On 9/9/10 3:28 PM, Mike Hammill wrote:
 David,

 I seem to recall from somewhere that using Data.fs was in some sense
 more complete, or more supported, or more something from some old
 migration guide, so I was shying away from doing an export/import.  Also
 there is the time involved in exporting/importing each site in the instance.

 However, I gave it a try.  When I did, I notice this text in 3.3.5:

 
 Note: Zope can export/import objects in two dfferent formats: a binary
 format (called ZEXP) and as XML. The ZEXP format is the officially
 supported export/import format for moving data between identicial Zope
 installations (it is not a migration tool). The XML export/import is
 unsupported (and possibly broken under certain circumstances) - use it
 at your own risk.
 

 It is the it is not a migration tool part plus that identical is
 underlined that worries me a bit.  In any case, the import into an empty
 4.0.0 failed in my case with:

 
 Site Error

 An error was encountered while publishing this resource.

 Error Type: ImportError
 Error Value: No module named LargePloneFolder
 

 which I guess means (1) I have been using Plone too long :-) and (2) I
 have to find and somehow try to get rid of LargePloneFolder objects
 somehow before migrating??

 Thanks for the tip, though, maybe it will work if I can figure out how
 to proceed.  Perhaps I will be able to get to Plone 4 one of these days
 ;-)  I have be extremely strict about using any third-party add-ons,
 just so migration would go smoothly.  Looks like this time it is old
 Plone stuff itself that it getting in the way.  (BTW, we only use only
 one add-on: PloneFormGen.)
I meant that we exported the database under Plone 3.x and reimported to
a new database in the same Zope instance (still Plone 3.x with the same
versions of all software).  *Then* proceeded with a normal upgrade to
4.0 using the normal method and the new Data.fs.

David
--  
David Glick
 Web Developer
 davidgl...@groundwire.org
 206.286.1235x32

Groundwire: You Are Connected   
 http://groundwire.org  
___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev