Giacomo Zanobini ha scritto:
dopo varie peripezie sono riuscito a montare sulla root un secondo Data.fs che contiene un Plone Site fatto con Plone 2.1.2

a questo punto, pensavo fosse sufficiente andare in portal_migrations e lanciare l'upgrade.

Il sito è un Plone di default, sul quale non è stato aggiunto nessun particolare prodotto. Soltanto 500Mb di contenuti, e quindi pensavo che sarebbe andato tutto liscio, ma....

..ovviamente si blocca (quasi subito) tentando il passaggio a Plone 2.5.


Qualche suggerimento??!?!?!!


Giacomo




Plone Migration Tool * Plone Migration Tool at / <http://10.100.21.94:8080/manage_workspace>sistemi <http://10.100.21.94:8080/sistemi/manage_workspace>/portale <http://10.100.21.94:8080/sistemi/portale/manage_workspace>/portal_migration <http://10.100.21.94:8080/sistemi/portale/portal_migration/manage_workspace> *

Result of the attempt...

    * Dry run selected.
    * Starting the migration from version: 2.1.2
    * Attempting to upgrade from: 2.1.2
    * Registered tools as utilities.
    * Removed vcXMLRPC.js
    * 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
    * Upgrade to: 2.1.4-rc1, completed
    * Attempting to upgrade from: 2.1.4-rc1
    * Upgrade to: 2.1.4, completed
    * Attempting to upgrade from: 2.1.4
    * Upgrade aborted
    * Error type: exceptions.ValueError
    * Error value: 'intranet_workflow' is not a workflow ID. chain:
      ['intranet_workflow']


Controlla anche la upgrade guide su plone.org, a volte ci possono essere dei passaggi ai quali fare attenzione.

Cmq, basta che aggiungi un workflow con questo nome, credo o lo elimini dall'upgrade.

http://article.gmane.org/gmane.comp.web.zope.plone.user/85547

1. Remove 'portal_placeful_workflow.xml' from Products.CMFPlacefulWorkflow.profiles.default
2. do the upgrade
3. readd portal_placeful_workflow.xml
4. reinstall CMFPlacefulWorkflow with the portal_quickinstaller.

It seems everything is there.
I believe the error is related to the order of steps done by GS. Maybe a reordering of these (make sure the new profiles "intranet_workflow", "one_state_workflow", ... are installed before CMFPlacefulWorkflow) obsoletes the awful hack?



Un'altro modo potrebbe essere quello di fare uno step alla volta, cioè fare la migrazione su un plone 3.0. Dopo di che ripetere con plone 3.3

   *


    * File
      
"/usr/local/Plone/buildout-cache/eggs/Plone-3.3.2-py2.4.egg/Products/CMFPlone/MigrationTool.py",
      line 210, in upgrade newv, msgs = self._upgrade(newv)
    * File
      
"/usr/local/Plone/buildout-cache/eggs/Plone-3.3.2-py2.4.egg/Products/CMFPlone/MigrationTool.py",
      line 321, in _upgrade res = function(self.aq_parent)
    * File
      
"/usr/local/Plone/buildout-cache/eggs/Plone-3.3.2-py2.4.egg/Products/CMFPlone/migrations/v2_5/alphas.py",
      line 29, in two5_alpha1 installPlacefulWorkflow(portal, out)
    * File
      
"/usr/local/Plone/buildout-cache/eggs/Plone-3.3.2-py2.4.egg/Products/CMFPlone/migrations/v2_5/alphas.py",
      line 58, in installPlacefulWorkflow
      installOrReinstallProduct(portal, 'CMFPlacefulWorkflow', out)
    * File
      
"/usr/local/Plone/buildout-cache/eggs/Plone-3.3.2-py2.4.egg/Products/CMFPlone/migrations/migration_util.py",
      line 85, in installOrReinstallProduct
      qi.installProduct(product_name, hidden=hidden)
    * File
      
"/usr/local/Plone/buildout-cache/eggs/Products.CMFQuickInstallerTool-2.1.7-py2.4.egg/Products/CMFQuickInstallerTool/QuickInstallerTool.py",
      line 526, in installProduct
      portal_setup.runAllImportStepsFromProfile('profile-%s' % profile)
    * File
      
"/usr/local/Plone/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/Plone/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/Plone/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/Plone/buildout-cache/eggs/Products.CMFPlacefulWorkflow-1.4.2-py2.4.egg/Products/CMFPlacefulWorkflow/exportimport/workflow_policies.py",
      line 143, in importWorkflowPolicies importObjects(tool, '',
      context)
    * File
      
"/usr/local/Plone/buildout-cache/eggs/Products.GenericSetup-1.4.5-py2.4.egg/Products/GenericSetup/utils.py",
      line 834, in importObjects importObjects(sub, path+'/', context)
    * File
      
"/usr/local/Plone/buildout-cache/eggs/Products.GenericSetup-1.4.5-py2.4.egg/Products/GenericSetup/utils.py",
      line 830, in importObjects importer.body = body
    * File
      
"/usr/local/Plone/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/Plone/buildout-cache/eggs/Products.CMFCore-2.1.2-py2.4.egg/Products/CMFCore/exportimport/workflow.py",
      line 64, in _importNode self._initChains(node)
    * File
      
"/usr/local/Plone/buildout-cache/eggs/Products.CMFPlacefulWorkflow-1.4.2-py2.4.egg/Products/CMFPlacefulWorkflow/exportimport/workflow_policies.py",
      line 110, in _initChains
      self.context.setDefaultChain(self._getChain(sub))
    * File "<string>", line 3, in _facade
    * File
      
"/usr/local/Plone/Zope-2.10.9-final-py2.4/lib/python/AccessControl/requestmethod.py",
      line 64, in _curried return callable(*args, **kw)
    * File
      
"/usr/local/Plone/buildout-cache/eggs/Products.CMFPlacefulWorkflow-1.4.2-py2.4.egg/Products/CMFPlacefulWorkflow/DefaultWorkflowPolicy.py",
      line 248, in setDefaultChain raise ValueError, ("'%s' is not a
      workflow ID.\nchain: %s" % (
    * End of upgrade path, migration has finished
    * The upgrade path did NOT reach current version
    * Migration has failed
    * Dry run selected, transaction aborted


------------------------------------------------------------------------

_______________________________________________
Plone-IT mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/plone-it
http://www.nabble.com/Plone---Italy-f21728.html


_______________________________________________
Plone-IT mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/plone-it
http://www.nabble.com/Plone---Italy-f21728.html

Rispondere a