2

我正在将一个几乎是普通的 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 > site > portal_catalog > Advanced 中更新目录也失败:

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

关于可能导致这种情况的任何提示或想法?

4

1 回答 1

3

我发现了问题。克隆目录工具中的索引列表显示三个处于损坏状态的索引,因为未安装产品 TextIndexNG3。

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

于 2017-09-06T13:26:42.450 回答