[Setup] 2 of 5 sites don't work after upgrading Plone 3.2.3 instance to 4.0.7

dgroos djgroos at gmail.com
Tue Jul 26 16:59:41 UTC 2011


Hi,
I successfully upgraded the sites from my previous Plone 3.2.3 instance to
the new server running Plone 4.0.7.  I did this in 2 ways.  While the
upgrading succeeded, not all sites would come up.   

The first upgrade method involved simply replacing the Data.fs file (moved
from old instance to new instance).  To deal with the pickling errors in
this process I added the products from the old buildout to the new buildout,
reran the new buildout and in the end was able to successfully upgrade all
sites.  Interestingly, 2 of the 5 sites worked.  The sites that didn't come
up had the error: KeyError: 'language'.

The next upgrade method (the superior one I believe and the one I'm
currently working with) involved going to the original 3.2.3 sites,
Uninstalling all of the products in each site with the
portal_quickinstaller, packing the database and then finally moving the
Data.fs file from the old instance to the new instance.  There were no
pickling errors during the upgrade process.  All 5 sites upgraded
successfully and now 3 of the 5 sites come up when visited.  On the two
non-functioning sites I did try going to the portal_catalog, advanced tab,
clear and rebuild and that didn't help.  Here are the tracebacks for the
misbehaving sites:

--Traceback for the gcos site--
Traceback (innermost last):
  Module ZPublisher.Publish, line 127, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 47, in call_object
  Module Shared.DC.Scripts.Bindings, line 324, in __call__
  Module Shared.DC.Scripts.Bindings, line 361, in _bindAndExec
  Module Products.CMFCore.FSPageTemplate, line 240, in _exec
  Module Products.CMFCore.FSPageTemplate, line 180, in pt_render
  Module Products.PageTemplates.PageTemplate, line 80, in pt_render
  Module zope.pagetemplate.pagetemplate, line 113, in pt_render
  Module zope.tal.talinterpreter, line 271, in __call__
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 888, in do_useMacro
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 533, in do_optTag_tal
  Module zope.tal.talinterpreter, line 518, in do_optTag
  Module zope.tal.talinterpreter, line 513, in no_tag
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 583, in do_setLocal_tal
  Module zope.tales.tales, line 696, in evaluate
   - URL: main_template
   - Line 9, Column 0
   - Expression: <PathExpr standard:u'language'>
   - Names:
      {'container': <PloneSite at /gcos>,
       'context': <ATDocument at /gcos/front-page>,
       'default': ,
       'here': <ATDocument at /gcos/front-page>,
       'loop': {},
       'nothing': None,
       'options': {'args': ()},
       'repeat': <Products.PageTemplates.Expressions.SafeMapping object at
0x7fe9984c5e10>,
       'request': <HTTPRequest,
URL=http://10.99.1.16:8080/gcos/front-page/document_view>,
       'root': <Application at >,
       'template': <FSPageTemplate at /gcos/document_view used for
/gcos/front-page>,
       'traverse_subpath': [],
       'user': <PropertiedUser 'ploneadmin'>}
  Module zope.tales.expressions, line 217, in __call__
  Module Products.PageTemplates.Expressions, line 149, in _eval
  Module zope.tales.expressions, line 118, in _eval
KeyError: 'language'


--Traceback for the gcos10 site--
Traceback (innermost last):
  Module ZPublisher.Publish, line 127, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 47, in call_object
  Module Shared.DC.Scripts.Bindings, line 324, in __call__
  Module Shared.DC.Scripts.Bindings, line 361, in _bindAndExec
  Module Products.CMFCore.FSPageTemplate, line 240, in _exec
  Module Products.CMFCore.FSPageTemplate, line 180, in pt_render
  Module Products.PageTemplates.PageTemplate, line 80, in pt_render
  Module zope.pagetemplate.pagetemplate, line 113, in pt_render
  Module zope.tal.talinterpreter, line 271, in __call__
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 888, in do_useMacro
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 533, in do_optTag_tal
  Module zope.tal.talinterpreter, line 518, in do_optTag
  Module zope.tal.talinterpreter, line 513, in no_tag
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 583, in do_setLocal_tal
  Module zope.tales.tales, line 696, in evaluate
   - URL:
file:/usr/local/Plone/buildout-cache/eggs/Plone-4.0.7-py2.6.egg/Products/CMFPlone/skins/plone_templates/main_template.pt
   - Line 71, Column 2
   - Expression: <PythonExpr plone_view.have_portlets('plone.leftcolumn',
view)>
   - Names:
      {'container': <PloneSite at /gcos10>,
       'context': <ATDocument at /gcos10/front-page>,
       'default': ,
       'here': <ATDocument at /gcos10/front-page>,
       'loop': {},
       'nothing': None,
       'options': {'args': ()},
       'repeat': <Products.PageTemplates.Expressions.SafeMapping object at
0x191cf9f0>,
       'request': <HTTPRequest,
URL=http://10.99.1.16:8080/gcos10/front-page/document_view>,
       'root': <Application at >,
       'template': <FSPageTemplate at /gcos10/document_view used for
/gcos10/front-page>,
       'traverse_subpath': [],
       'user': <PropertiedUser 'ploneadmin'>}
  Module Products.PageTemplates.ZRPythonExpr, line 49, in __call__
   - __traceback_info__: plone_view.have_portlets('plone.leftcolumn', view)
  Module PythonExpr, line 1, in <expression>
  Module Products.CMFPlone.browser.ploneview, line 295, in have_portlets
  Module plone.app.layout.globals.layout, line 72, in have_portlets
  Module plone.portlets.manager, line 48, in visible
  Module plone.portlets.manager, line 67, in portletsToShow
  Module plone.portlets.manager, line 70, in allPortlets
  Module plone.memoize.view, line 47, in memogetter
  Module plone.portlets.manager, line 107, in _lazyLoadPortlets
  Module plone.portlets.retriever, line 138, in getPortlets
TypeError: ('Could not adapt', <persistent broken
heddex.tranquility.portlets.personaltools.Assignment instance
'\x00\x00\x00\x00\x00\t\xda\\'>, <InterfaceClass
plone.portlets.interfaces.IPortletAssignmentSettings>)

While I read them and note the first 15 lines are the same, and do research
on the web, I'm not sure how to continue trying to get these last 2 sites
working.  Any ideas would be greatly appreciated!

David G

--
View this message in context: http://plone.293351.n2.nabble.com/2-of-5-sites-don-t-work-after-upgrading-Plone-3-2-3-instance-to-4-0-7-tp6622957p6622957.html
Sent from the Installation, Setup, Upgrades mailing list archive at Nabble.com.


More information about the Setup mailing list