[Setup] error upgrading from 2.1.2 to 2.5

David Hostetler hoss at negativesum.net
Mon Aug 21 03:05:17 UTC 2006


Any help regarding the following is appreciated.

I'm attempting to migrate from a zope2.8.6/plone2.1.2 instance to 
zope2.9.4/plone2.5.  Feeling brave, I initially tried to upgrade both 
zope and plone simultaneously.  Of course, it failed miserably, so I 
decided to try upgrading in phases.

Phase 1: upgrade zope from 2.8.6 to 2.8.7 (since it's my understanding 
that plone2.5 won't work on anything less than zope2.8.7).

Result: Success!  No problems with the zope upgrade, and all of my 
plone2.1.2 content appeared to migrate fine and function without issue.

Phase 2: upgrade plone from 2.1.2 to 2.5 (on zope2.8.7).

Result: failure.  Details below.

(note that this plan involves one final phase that I cannot yet attempt: 
upgrading zope from 2.8.7 to 2.9.4).

When I attempted the migration from plone 2.1.2 to 2.5, I get the 
following error from the portal_migration Dry run:

     * Dry run selected.
     * Starting the migration from version: 2.1.2
     * Attempting to upgrade from: 2.1.2
     * Removed vcXMLRPC.js
     * Reindexed portal_catalog.
     * Recataloged Members folder.
     * Added icons for copy, cut, paste and delete
     * Upgrade to: 2.1.3-rc1, completed
     * Attempting to upgrade from: 2.1.3-rc1
     * Upgrade to: 2.1.3, completed
     * Attempting to upgrade from: 2.1.3
     * Installed CMFPlacefulWorkflow.
     * Upgrade to: 2.5-alpha1, completed
     * Attempting to upgrade from: 2.5-alpha1
     * Upgrade aborted
     * Error type: exceptions.KeyError
     * Error value: 'tokens'
     * File 
"/var/lib/zope/zope-apache287/Products/CMFPlone/MigrationTool.py", line 
299, in upgrade newv, msgs = self._upgrade(newv)
     * File 
"/var/lib/zope/zope-apache287/Products/CMFPlone/MigrationTool.py", line 
396, in _upgrade res = function(self.aq_parent)
     * File 
"/var/lib/zope/zope-apache287/Products/CMFPlone/migrations/v2_5/alphas.py", 
line 24, in alpha1_alpha2 installPlonePAS(portal, out)
     * File 
"/var/lib/zope/zope-apache287/Products/CMFPlone/migrations/v2_5/alphas.py", 
line 43, in installPlonePAS installOrReinstallProduct(portal, 
'PlonePAS', out)
     * File 
"/var/lib/zope/zope-apache287/Products/CMFPlone/migrations/migration_util.py", 
line 82, in installOrReinstallProduct qi.installProduct(product_name)
     * File 
"/var/lib/zope/zope-apache287/Products/CMFQuickInstallerTool/QuickInstallerTool.py", 
line 322, in installProduct res=install(portal)
     * File 
"/usr/lib/zope-2.8.7/lib/python/Products/ExternalMethod/ExternalMethod.py", 
line 225, in __call__ try: return f(*args, **kw)
     * File 
"/var/lib/zope/zope-apache287/Products/PlonePAS/Extensions/Install.py", 
line 837, in install restoreUserData(portal, out, userdata)
     * File 
"/var/lib/zope/zope-apache287/Products/PlonePAS/Extensions/Install.py", 
line 320, in restoreUserData mtool.addMember(*u)
     * File 
"/var/lib/zope/zope-apache287/Products/PlonePAS/tools/membership.py", 
line 75, in addMember member.setMemberProperties(properties)
     * File 
"/var/lib/zope/zope-apache287/Products/PlonePAS/tools/memberdata.py", 
line 172, in setMemberProperties sheet.setProperty(user, k, v)
     * File "/var/lib/zope/zope-apache287/Products/PlonePAS/sheet.py", 
line 97, in setProperty provider.setPropertiesForUser(user, self)
     * File 
"/var/lib/zope/zope-apache287/Products/PlonePAS/plugins/property.py", 
line 174, in setPropertiesForUser if (name in properties and not
     * File "/var/lib/zope/zope-apache287/Products/PlonePAS/sheet.py", 
line 58, in validate inspector = self.tmap[property_type]
     * End of upgrade path, migration has finished
     * The upgrade path did NOT reach current version
     * Migration has failed
     * Dry run selected, transaction aborted


I'm using gentoo, if that matters.  Haven't had any issues prior to the 
upgrade attempt.  My zope/plone instance is pretty lightweight. Not a 
ton of content, and just some skin/template customizations.  Hardly any 
3rd party Products, either:  DocFinderTab, FileSystemStorage.

I'll glady provide any additional info that will help diagnose the problem.

Thanks again in advance for the help.

-hoss





More information about the Setup mailing list