升级失败-从Plone 4.3.7升级到Plone 5.0

升级失败-从Plone 4.3.7升级到Plone 5.0,plone,Plone,我试图通过portal_迁移工具将Plone 4.3.7升级到Plone 5.0,但遇到以下错误。有什么想法吗?这是一个简单的站点(没有附加组件),但它可以追溯到Plone 2.x,所以可能还有一些我已经忘记的旧积垢 升级工具的输出: Dry run selected. Starting the migration from version: 4311 Ran upgrade step: Miscellaneous Role / permission map imported. Archetyp

我试图通过portal_迁移工具将Plone 4.3.7升级到Plone 5.0,但遇到以下错误。有什么想法吗?这是一个简单的站点(没有附加组件),但它可以追溯到Plone 2.x,所以可能还有一些我已经忘记的旧积垢

升级工具的输出:

Dry run selected.
Starting the migration from version: 4311
Ran upgrade step: Miscellaneous
Role / permission map imported.
Archetype tool imported.
Step languagetool has an invalid import handler
Step kupu-setup has an invalid import handler
Ran upgrade step: Run to50alpha3 upgrade profile
Ran upgrade step: Upgrade editing control panel settings
Ran upgrade step: Upgrade maintenance control panel settings
Ran upgrade step: Upgrade navigation control panel settings
Ran upgrade step: Upgrade search control panel settings
Ran upgrade step: Upgrade site control panel settings
Role / permission map imported.
Skins tool imported.
Archetype tool imported.
Step languagetool has an invalid import handler
Step kupu-setup has an invalid import handler
Ran upgrade step: Run to50beta1 upgrade profile
Ran upgrade step: Upgrade markup control panel settings
Ran upgrade step: Upgrade mail control panel settings
Ran upgrade step: Upgrade security control panel settings
Upgrade aborted. Error:
Traceback (most recent call last):
  File "/usr/local/Plone/buildout-cache/eggs/Products.CMFPlone-5.0-py2.7.egg/Products/CMFPlone/MigrationTool.py", line 257, in upgrade
    step['step'].doStep(setup)
  File "/usr/local/Plone/buildout-cache/eggs/Products.GenericSetup-1.8.0-py2.7.egg/Products/GenericSetup/upgrade.py", line 166, in doStep
    self.handler(tool)
  File "/usr/local/Plone/buildout-cache/eggs/plone.app.upgrade-1.3.18-py2.7.egg/plone/app/upgrade/v50/betas.py", line 63, in upgrade_portal_language
    lang_settings.use_content_negotiation = portal_languages.use_content_negotiation
AttributeError: use_content_negotiation
Starting upgrade of core addons.
Done upgrading core addons.
End of upgrade path, migration has finished
The upgrade path did NOT reach current version
Migration has failed
Dry run selected, transaction aborted
如果我只是尝试查看网站本身,我会看到一个空白页面,其中显示以下错误消息:

    KeyError('Interface `Products.CMFPlone.interfaces.controlpanel.ILanguageSchema` 
defines a field `available_languages`, for which there is no record.',)
 (Also, the following error occurred while attempting to render the 
standard error message, please see the event log for full details: 
Interface `Products.CMFPlone.interfaces.controlpanel.ILanguageSchema`
 defines a field `available_languages`, for which there is no record.)
在调试模式控制台,我看到重复的错误消息如下:

2015-10-09 13:52:28 INFO plone.app.upgrade Dry run selected.
2015-10-09 13:52:28 INFO plone.app.upgrade Starting the migration from version: 4311
2015-10-09 13:52:28 INFO plone.app.upgrade Ran upgrade step: Miscellaneous
2015-10-09 13:52:28 INFO Products.GenericSetup.tool Importing profile profile-plone.app.upgrade.v50:to50alpha3 with dependency strategy upgrade.
2015-10-09 13:52:28 INFO Products.GenericSetup.tool Applying main profile profile-plone.app.upgrade.v50:to50alpha3
2015-10-09 13:52:29 INFO GenericSetup.rolemap Role / permission map imported.
/usr/local/Plone/buildout-cache/eggs/Products.CMFCore-2.2.10-py2.7.egg/Products/CMFCore/DirectoryView.py:493: UserWarning: DirectoryView plone_deprecated refers to a non-existing path 'Products.CMFPlone:skins/plone_deprecated'
  (self.id, reg_key), UserWarning)
/usr/local/Plone/buildout-cache/eggs/Products.CMFCore-2.2.10-py2.7.egg/Products/CMFCore/DirectoryView.py:493: UserWarning: DirectoryView plone_styles refers to a non-existing path 'Products.CMFPlone:skins/plone_styles'
  (self.id, reg_key), UserWarning)
/usr/local/Plone/buildout-cache/eggs/Products.CMFCore-2.2.10-py2.7.egg/Products/CMFCore/DirectoryView.py:493: UserWarning: DirectoryView classic_ecmascript refers to a non-existing path 'plonetheme.classic:skins/classic_ecmascript'
  (self.id, reg_key), UserWarning)
2015-10-09 13:52:29 INFO GenericSetup.archetypetool Archetype tool imported.
2015-10-09 13:52:29 ERROR GenericSetup Step languagetool has an invalid import handler
2015-10-09 13:52:29 ERROR GenericSetup Step kupu-setup has an invalid import handler
2015-10-09 13:52:29 INFO plone.app.upgrade Ran upgrade step: Run to50alpha3 upgrade profile
2015-10-09 13:52:29 INFO plone.app.upgrade Ran upgrade step: Upgrade editing control panel settings
2015-10-09 13:52:29 INFO plone.app.upgrade Ran upgrade step: Upgrade maintenance control panel settings
2015-10-09 13:52:29 INFO plone.app.upgrade Ran upgrade step: Upgrade navigation control panel settings
2015-10-09 13:52:29 INFO plone.app.upgrade Ran upgrade step: Upgrade search control panel settings
2015-10-09 13:52:29 INFO plone.app.upgrade Ran upgrade step: Upgrade site control panel settings
2015-10-09 13:52:29 INFO Products.GenericSetup.tool Importing profile profile-plone.app.upgrade.v50:to50beta1 with dependency strategy upgrade.
2015-10-09 13:52:29 INFO Products.GenericSetup.tool Applying main profile profile-plone.app.upgrade.v50:to50beta1
2015-10-09 13:52:29 INFO GenericSetup.rolemap Role / permission map imported.
2015-10-09 13:52:29 INFO GenericSetup.skins Skins tool imported.
2015-10-09 13:52:29 INFO GenericSetup.archetypetool Archetype tool imported.
2015-10-09 13:52:29 ERROR GenericSetup Step languagetool has an invalid import handler
2015-10-09 13:52:29 ERROR GenericSetup Step kupu-setup has an invalid import handler
2015-10-09 13:52:29 INFO plone.app.upgrade Ran upgrade step: Run to50beta1 upgrade profile
2015-10-09 13:52:29 ERROR PortalTransforms Cannot register transform html-to-captioned (ImportError), using BrokenTransform: Error
 No module named html2captioned
2015-10-09 13:52:29 INFO plone.app.upgrade Ran upgrade step: Upgrade markup control panel settings
2015-10-09 13:52:29 INFO plone.app.upgrade Ran upgrade step: Upgrade mail control panel settings
2015-10-09 13:52:29 INFO plone.app.upgrade Ran upgrade step: Upgrade security control panel settings
2015-10-09 13:52:29 ERROR plone.app.upgrade Upgrade aborted. Error:
Traceback (most recent call last):
  File "/usr/local/Plone/buildout-cache/eggs/Products.CMFPlone-5.0-py2.7.egg/Products/CMFPlone/MigrationTool.py", line 257, in upgrade
    step['step'].doStep(setup)
  File "/usr/local/Plone/buildout-cache/eggs/Products.GenericSetup-1.8.0-py2.7.egg/Products/GenericSetup/upgrade.py", line 166, in doStep
    self.handler(tool)
  File "/usr/local/Plone/buildout-cache/eggs/plone.app.upgrade-1.3.18-py2.7.egg/plone/app/upgrade/v50/betas.py", line 63, in upgrade_portal_language
    lang_settings.use_content_negotiation = portal_languages.use_content_negotiation
AttributeError: use_content_negotiation
2015-10-09 13:52:29 INFO plone.app.upgrade Starting upgrade of core addons.
2015-10-09 13:52:29 INFO Products.GenericSetup.tool No upgrades available for profile Products.CMFEditions:CMFEditions. Profile stays at version ('4',).
2015-10-09 13:52:29 WARNING Products.GenericSetup.tool Version of profile Products.CMFPlacefulWorkflow:CMFPlacefulWorkflow is unknown, refusing to upgrade.
2015-10-09 13:52:29 WARNING Products.GenericSetup.tool Version of profile plone.app.contenttypes:default is unknown, refusing to upgrade.
2015-10-09 13:52:29 WARNING Products.GenericSetup.tool Version of profile plone.app.dexterity:default is unknown, refusing to upgrade.
2015-10-09 13:52:29 INFO Products.GenericSetup.tool No upgrades available for profile plone.app.discussion:default. Profile stays at version ('102',).
2015-10-09 13:52:29 WARNING Products.GenericSetup.tool Version of profile plone.app.event:default is unknown, refusing to upgrade.
2015-10-09 13:52:29 WARNING Products.GenericSetup.tool Version of profile plone.app.iterate:plone.app.iterate is unknown, refusing to upgrade.
2015-10-09 13:52:29 WARNING Products.GenericSetup.tool Version of profile plone.app.multilingual:default is unknown, refusing to upgrade.
2015-10-09 13:52:29 INFO Products.GenericSetup.tool No upgrades available for profile plone.app.querystring:default. Profile stays at version ('11',).
2015-10-09 13:52:29 WARNING Products.GenericSetup.tool Version of profile plone.app.theming:default is unknown, refusing to upgrade.
2015-10-09 13:52:29 WARNING Products.GenericSetup.tool Version of profile plone.app.users:default is unknown, refusing to upgrade.
2015-10-09 13:52:29 INFO plone.app.upgrade Done upgrading core addons.
2015-10-09 13:52:29 INFO plone.app.upgrade End of upgrade path, migration has finished
2015-10-09 13:52:29 ERROR plone.app.upgrade The upgrade path did NOT reach current version
2015-10-09 13:52:29 ERROR plone.app.upgrade Migration has failed
2015-10-09 13:52:29 INFO plone.app.upgrade Dry run selected, transaction aborted

是否安装了任何第三方产品?也许是林加普隆?这里的重要部分是
AttributeError:use\u content\u negotiation
,因此您的迁移似乎卡在了Products.PloneLanguageTool的某个地方


您可以尝试从同一实例中创建的新Plone站点“更新”ZMI中的
portal\u语言对象。或者在迁移之前卸载LinguaPlone(如果可能的话)(即:没有太多内容使用它)。

谢谢,这是我需要的提示。现在没有安装第三方产品,但也许我在几年前尝试过一些东西,但留下了一些积垢?在ZMI中,我创建了一个新的虚拟Plone站点,将
portal\u languages
导出到本地磁盘,返回到我的主Plone站点,删除那里的
portal\u languages
,从磁盘导入文件,然后能够继续我的Plone 4->Plone 5迁移并成功运行导入工具。谢谢,杰夫,感谢分享你是如何解决问题的。我刚刚遇到了完全相同的问题,你的解决方案也帮助了我。