Re: [Zope] Re: Trouble migrating from Zope 2.5.x to Zope 2.9.x

2007-08-09 Thread Doug Morse
Hi Maurits,

Thanks for the speedy reply!

Hmmm... you make a good point about the ZODB file size.  At
installation, though, there was a notable difference.  The new,
default Data.fs was 2.9MB, whereas the mounted, older Data.fs
(renamed, of course) was/is 4.4MB.

I like your suggestion re: just upgrading though each minor release
number.  If someone doesn't suggest an alternative, speedier route,
then I'll do as you suggest.

Thanks!
Doug


On Thu, Aug 09, 2007 at 08:49:07AM +, Maurits van Rees wrote:
 Doug Morse, on 2007-08-09:
  Hello Fellow Zopers,
 
  I'm trying to migrate an older Zope installation (2.5.x) to Zope 2.9 and I'm
  having some trouble.  I can mount the old ZODB in the new installation -- it
  shows up under the database control panel with the correct size (4.4M) --
  but it appears to be empty.  By empty, I mean there are no folders or
  objects present when I view the mount point using the ZMI, and I get
  Resource Not Found errors when trying to view object I know to be there.
  I'm not getting any error messages within the ZMI or in the events.log file
  regarding problems with the older Data.fs file or mounting it.
 
 A 4.4 MB Data.fs *is* rather empty.  That is only marginally bigger
 than the size you get when you start with a fresh zope instance.  Are
 you sure the objects you expect are actually there when you start a
 2.5 Zope with this database?
 
  I'm wondering if there's some sort of upgrading of the ZODB file I need to
  perform?  Any help with this would be MOST appreciated, as I'm not turning
  up anything in the docs, with google, or any other means I can think of, and
  I need to get this site migrated.
 
 Not sure, but you might need to first upgrade to 2.6, then 2.7, then
 2.8, then 2.9.  At least I would not be surprised if that is the case.
 
  Just for completeness: The only thing different about the new Zope
  installation is that the old Data.fs file is being mounted within Zope under
  a subdirectory (e.g., /sitename) instead of the root directory (i.e.,
  /). There's a new ZODB mounted at the root directory, and several other
  new ZODBs mounted in other subdirectories for new sites -- they all
  work fine but also were created using Zope 2.9, not Zope 2.5.
 
 I would first migrate the 2.5 database to 2.9 in a separate zope
 instance with only this database, not any others.  After that you can
 try mounting that migrated database together with the others.  This is
 just a guess though: I have never tried anything like this.
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: Trouble migrating from Zope 2.5.x to Zope 2.9.x

2007-08-09 Thread Jonathan


- Original Message - 
From: Doug Morse [EMAIL PROTECTED]

To: Maurits van Rees [EMAIL PROTECTED]
Cc: zope@zope.org
Sent: Thursday, August 09, 2007 9:18 AM
Subject: Re: [Zope] Re: Trouble migrating from Zope 2.5.x to Zope 2.9.x



Hi Maurits,

Thanks for the speedy reply!

Hmmm... you make a good point about the ZODB file size.  At
installation, though, there was a notable difference.  The new,
default Data.fs was 2.9MB, whereas the mounted, older Data.fs
(renamed, of course) was/is 4.4MB.

I like your suggestion re: just upgrading though each minor release
number.  If someone doesn't suggest an alternative, speedier route,
then I'll do as you suggest.


I would try the following:

1) Create a new, clean 2.9.x installation
2) Copy the Data.fs file (your 2.5.x version)

And see if it works. It could be that your non-root installation is messing 
things up.  If you have any ZCatalogs you will need to fix up the indexes 
(see the READMEs, there was some change in 2.6? 2.8? that requires a utility 
to update the indexes).


Jonathan


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: Trouble migrating from Zope 2.5.x to Zope 2.9.x

2007-08-09 Thread Doug Morse
Hi Jonathan,

Ah, great point -- I hadn't thought about that re: mounting the old Data.fs
root vs. non-root.  I'll give that a try right away -- that could be a
quick and simple fix.  Great thinking!

One thing I can say right off is that this difference (i.e., root-mounted
vs. non-root-mounted) did *not* matter when migrating from one Zope 2.9
installation to another Zope 2.9 installation.  That was something I've had
to do along the way here and worked without a hitch.  Let's see what happen,
though.  I'll try it later today and report back.

Thanks again!
Doug


On Thu, Aug 09, 2007 at 09:25:35AM -0400, Jonathan wrote:
 
 - Original Message - 
 From: Doug Morse [EMAIL PROTECTED]
 To: Maurits van Rees [EMAIL PROTECTED]
 Cc: zope@zope.org
 Sent: Thursday, August 09, 2007 9:18 AM
 Subject: Re: [Zope] Re: Trouble migrating from Zope 2.5.x to Zope 2.9.x
 
 
 Hi Maurits,
 
 Thanks for the speedy reply!
 
 Hmmm... you make a good point about the ZODB file size.  At
 installation, though, there was a notable difference.  The new,
 default Data.fs was 2.9MB, whereas the mounted, older Data.fs
 (renamed, of course) was/is 4.4MB.
 
 I like your suggestion re: just upgrading though each minor release
 number.  If someone doesn't suggest an alternative, speedier route,
 then I'll do as you suggest.
 
 I would try the following:
 
 1) Create a new, clean 2.9.x installation
 2) Copy the Data.fs file (your 2.5.x version)
 
 And see if it works. It could be that your non-root installation is messing 
 things up.  If you have any ZCatalogs you will need to fix up the indexes 
 (see the READMEs, there was some change in 2.6? 2.8? that requires a 
 utility to update the indexes).
 
 Jonathan
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )