Error trying to convert ds2fs for upgrade

"Green, Erik (STP)" <[email protected]> Fri, 3 Feb 2006 11:47:18 -0600
Newsgroups gmane.comp.web.zope.zodb.dirstorage
Message-ID <A05FF83D58C85A48B56626C432CFB2C10276ED46@STPEVS02.stp.guidant.com>

Hello -

I have a copy of Plone that I've been using DirectoryStorage 1.1.9 with
since install, about a year ago.  I am working on upgrading to Plone 2.1
plus a bunch of new products, and as part of this I'm moving to a new
machine and converting directorystorage to a filestorage for validation
purposes and also to test performance.

Trying to run the ds2fs tool (from 1.1.18, on the new system) on my
directorystorage (copied via tar from the running system) I get the
following error:

failed to open /export/medpad/zopedata1/config/snapshot.conf
Entered snapshot using direct access
Locked snapshot mode
Finding all DirectoryStorage Transaction Ids.....
Found 6440 Transactions.....
Unlocked snapshot mode
Traceback (most recent call last):
  File "ds2fs.py", line 80, in ?
    main()
  File "ds2fs.py", line 38, in main
    c = ds2fs(s.path, args[0], verbose)
  File "ds2fs.py", line 59, in ds2fs
    fs.copyTransactionsFrom(it,zodb_verbose)
  File "/export/zope/lib/python/ZODB/BaseStorage.py", line 425, in
copyTransactionsFrom
    self.restore(oid, r.tid, r.data, r.version,
AttributeError: ObjectRevisionRecord instance has no attribute 'tid'
[root@stpls105 DirectoryStorage]#


Is there any way to do this?  Do I need to shut down or snapshot the
existing Plone instance for the 2+ hours it takes to tar up the data?
I'm planning on doing this for the final transfer, but it's very hard to
do while I'm working on development.

Checkds runs ok, FYI.

I'm using a copy of python 2.4.2 that is installed separately from the
system's copy of python, and I'm setting PYTHONPATH and the environment
PATH so I'm running the right binary and using the zope and python 2.4
libs.


Thanks,
Erik






--
Erik Green
Unix System Administrator
Guidant Corporation
4100 Hamline Ave. North
F306
Arden Hills, MN, USA
Tel 651-582-4111
[email protected]