Plone升级2.1.3> 3.0.6失败并出现目录错误

时间:2017-09-06 12:22:15

标签: plone plone-3.x

我正在将几乎普通的Plone从2.1.3升级到3.0.6(这是旧的东西,我知道)。 portal_migration成功执行迁移,但随后报告重建目录时的错误

End of upgrade path, migration has finished
Your ZODB and Filesystem Plone instances are now up-to-date.
Exception was thrown while cataloging
File "/home/applinet/local/intranet/plone/intranet/Products/CMFPlone/MigrationTool.py", line 262, in upgrade catalog.refreshCatalog(clear=1)
File "/home/applinet/local/intranet/plone/installation/lib/python/Products/ZCatalog/ZCatalog.py", line 281, in refreshCatalog cat.clear()
File "/home/applinet/local/intranet/plone/installation/lib/python/Products/ZCatalog/Catalog.py", line 108, in clear self.getIndex(index).clear() 

查看网站失败,event.log中的例外似乎与目录相关:

2017-09-05T17:33:27 ERROR Zope.SiteErrorLog 

http://stretch.fritz.box:49171/intranet/folder_listing
Traceback (innermost last):
  Module ZPublisher.Publish, line 119, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 42, in call_object
  Module Shared.DC.Scripts.Bindings, line 313, in __call__
  Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
  Module Products.CMFCore.FSPageTemplate, line 216, in _exec
  Module Products.CMFCore.FSPageTemplate, line 155, in pt_render
  Module Products.PageTemplates.PageTemplate, line 89, in pt_render
  Module zope.pagetemplate.pagetemplate, line 117, in pt_render
   - Warning: Macro expansion failed
   - Warning: exceptions.KeyError: 'kss_generic_macros'
  Module zope.tal.talinterpreter, line 271, in __call__
  Module zope.tal.talinterpreter, line 346, in interpret
  Module zope.tal.talinterpreter, line 891, in do_useMacro
  Module zope.tal.talinterpreter, line 346, in interpret
  Module zope.tal.talinterpreter, line 536, in do_optTag_tal
  Module zope.tal.talinterpreter, line 521, in do_optTag
  Module zope.tal.talinterpreter, line 516, in no_tag
  Module zope.tal.talinterpreter, line 346, in interpret
  Module zope.tal.talinterpreter, line 891, in do_useMacro
  Module zope.tal.talinterpreter, line 346, in interpret
  Module zope.tal.talinterpreter, line 586, in do_setLocal_tal
  Module zope.tales.tales, line 696, in evaluate
   - URL: file:/home/applinet/local/intranet/plone/intranet/Products/CMFPlone/skins/plone_templates/global_defines.pt
   - Line 8, Column 0
   - Expression: <PathExpr standard:u'plone_view/globalize'>
   - Names:
      {'container': <PloneSite at /intranet>,
       'context': <PloneSite at /intranet>,
       'default': <object object at 0x7ff78a528200>,
       'here': <PloneSite at /intranet>,
       'loop': {},
       'nothing': None,
       'options': {'args': ()},
       'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x7ff76027e758>,
       'request': <HTTPRequest, URL=http://stretch.fritz.box:49171/intranet/folder_listing>,
       'root': <Application at >,
       'template': <FSPageTemplate at /intranet/folder_listing>,
       'traverse_subpath': [],
       'user': <PropertiedUser 'admin'>}
  Module zope.tales.expressions, line 217, in __call__
  Module Products.PageTemplates.Expressions, line 161, in _eval
  Module Products.PageTemplates.Expressions, line 123, in render
  Module Products.CMFPlone.browser.ploneview, line 68, in globalize
  Module Products.CMFPlone.browser.ploneview, line 125, in _initializeData
  Module Products.CMFPlone.browser.navigation, line 182, in topLevelTabs
  Module Products.ZCatalog.Lazy, line 158, in __getitem__
  Module Products.ZCatalog.Catalog, line 127, in __getitem__
KeyError: 403495479

尝试更新ZMI中的目录&gt;网站&gt; portal_catalog&gt;高级也失败了:

2017-09-05T18:05:03 ERROR Zope.SiteErrorLog http://stretch.fritz.box:49171/intranet/portal_catalog/manage_catalogReindex
Traceback (innermost last):
  Module ZPublisher.Publish, line 119, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 42, in call_object
  Module Products.ZCatalog.ZCatalog, line 260, in manage_catalogReindex
  Module Products.ZCatalog.ZCatalog, line 281, in refreshCatalog
  Module Products.ZCatalog.Catalog, line 108, in clear
AttributeError: clear

关于可能导致此问题的任何提示或想法?

1 个答案:

答案 0 :(得分:3)

我发现了问题。 Plone Catalog Tool中的索引列表显示处于损坏状态的三个索引,因为未安装产品TextIndexNG3。

我安装了TextIndexNG3 3.2.5并解决了它。