My guess is that before running the migration, you visited the control panel
and changed some property that's new with 3.1.5 (possibly inline editing?).
That caused a property to get created in one of the property sheets. When
the migration tried to create it, it failed.

If you can, revert to the original database, and make sure you run the
migration before changing anything else.

On Fri, Sep 4, 2009 at 8:10 AM, Marc Cerisier <marc.ceris...@ic.cdom.org>wrote:

>
> I just tried to upgrade to 3.3 today.  Buildout went fine, but the Upgrade
> did not go through in dry run mode.  Here's the output.  Any thoughts?
>
>    *   Dry run selected.
>    * Starting the migration from version: 3.1.4
>    * Attempting to upgrade from: 3.1.4
>    * Upgrade aborted
>    * Error type: zExceptions.BadRequest
>    * Error value: Invalid or duplicate property id
>    * File
>
> "/usr/local/Plone3.2.3/buildout-cache/eggs/Plone-3.3-py2.4.egg/Products/CMFPlone/MigrationTool.py",
> line 210, in upgrade newv, msgs = self._upgrade(newv)
>    * File
>
> "/usr/local/Plone3.2.3/buildout-cache/eggs/Plone-3.3-py2.4.egg/Products/CMFPlone/MigrationTool.py",
> line 321, in _upgrade res = function(self.aq_parent)
>    * File
>
> "/usr/local/Plone3.2.3/buildout-cache/eggs/Plone-3.3-py2.4.egg/Products/CMFPlone/migrations/v3_1/final_three1x.py",
> line 15, in three14_three15 loadMigrationProfile(portal,
> 'profile-Products.CMFPlone.migrations:3.1.3-3.1.4')
>    * File
>
> "/usr/local/Plone3.2.3/buildout-cache/eggs/Plone-3.3-py2.4.egg/Products/CMFPlone/migrations/migration_util.py",
> line 107, in loadMigrationProfile
> tool.runAllImportStepsFromProfile(profile,
> purge_old=False)
>    * File
>
> "/usr/local/Plone3.2.3/buildout-cache/eggs/Products.GenericSetup-1.4.5-py2.4.egg/Products/GenericSetup/tool.py",
> line 390, in runAllImportStepsFromProfile
> ignore_dependencies=ignore_dependencies)
>    * File
>
> "/usr/local/Plone3.2.3/buildout-cache/eggs/Products.GenericSetup-1.4.5-py2.4.egg/Products/GenericSetup/tool.py",
> line 1179, in _runImportStepsFromContext message =
> self._doRunImportStep(step, context)
>    * File
>
> "/usr/local/Plone3.2.3/buildout-cache/eggs/Products.GenericSetup-1.4.5-py2.4.egg/Products/GenericSetup/tool.py",
> line 1090, in _doRunImportStep return handler(context)
>    * File
>
> "/usr/local/Plone3.2.3/buildout-cache/eggs/Plone-3.3-py2.4.egg/Products/CMFPlone/exportimport/propertiestool.py",
> line 37, in importPloneProperties importer.body = body
>    * File
>
> "/usr/local/Plone3.2.3/buildout-cache/eggs/Products.GenericSetup-1.4.5-py2.4.egg/Products/GenericSetup/utils.py",
> line 544, in _importBody self._importNode(dom.documentElement)
>    * File
>
> "/usr/local/Plone3.2.3/buildout-cache/eggs/Plone-3.3-py2.4.egg/Products/CMFPlone/exportimport/propertiestool.py",
> line 103, in _importNode self._initObjects(node)
>    * File
>
> "/usr/local/Plone3.2.3/buildout-cache/eggs/Plone-3.3-py2.4.egg/Products/CMFPlone/exportimport/propertiestool.py",
> line 154, in _initObjects importer.node = child
>    * File
>
> "/usr/local/Plone3.2.3/buildout-cache/eggs/Plone-3.3-py2.4.egg/Products/CMFPlone/exportimport/propertiestool.py",
> line 77, in _importNode self._initProperties(node)
>    * File
>
> "/usr/local/Plone3.2.3/buildout-cache/eggs/Products.GenericSetup-1.4.5-py2.4.egg/Products/GenericSetup/utils.py",
> line 724, in _initProperties obj._setProperty(prop_id, val, prop_type)
>    * File
>
> "/usr/local/Plone3.2.3/Zope-2.10.7-final-py2.4/lib/python/OFS/PropertyManager.py",
> line 186, in _setProperty raise BadRequest, 'Invalid or duplicate property
> id'
>    * End of upgrade path, migration has finished
>    * The upgrade path did NOT reach current version
>    * Migration has failed
>    * Dry run selected, transaction aborted
>
> --
> View this message in context:
> http://n2.nabble.com/Upgrade-to-3-3-Failed-tp3580554p3580554.html
> Sent from the Installation, Setup, Upgrades mailing list archive at
> Nabble.com.
>
> _______________________________________________
> Setup mailing list
> Setup@lists.plone.org
> http://lists.plone.org/mailman/listinfo/setup
>
_______________________________________________
Setup mailing list
Setup@lists.plone.org
http://lists.plone.org/mailman/listinfo/setup

Reply via email to