For those who haven't run across soft-releases before, this is the
last step before the final release. Because things haven't been
finalized yet, some packages may change between now and the release. It
is not recommended to use soft-releases in production.
Attempted an upgrade from 5.1a2 to 5.1rc1 and it failed
Upgrade aborted. Error:
Traceback (most recent call last):
File "/home/ubuntu/workspace/eggs/Products.CMFPlone-5.1rc1-py2.7.egg/Products/CMFPlone/MigrationTool.py", line 268, in upgrade
step['step'].doStep(setup)
File "/home/ubuntu/workspace/eggs/Products.GenericSetup-1.8.8-py2.7.egg/Products/GenericSetup/upgrade.py", line 166, in doStep
self.handler(tool)
File "/home/ubuntu/workspace/eggs/plone.app.upgrade-2.0.7-py2.7.egg/plone/app/upgrade/v51/betas.py", line 188, in move_safe_html_settings_to_registry
settings = registry.forInterface(IFilterSchema, prefix='plone')
File "/home/ubuntu/workspace/eggs/plone.registry-1.1.2-py2.7.egg/plone/registry/registry.py", line 82, in forInterface
name
KeyError: 'Interface `Products.CMFPlone.interfaces.controlpanel.IFilterSchema` defines a field `valid_tags`, for which there is no record.'
End of upgrade path, main migration has finished.
The upgrade path did NOT reach current version.
Migration has failed
I ended up first upgrading to 5.1b4 (configuration 5107)
Attempting an upgrade from 5107 to 5108 still failed with the same error as above.
There is another issue with plone.app.iterate: https://github.com/plone/plone.app.upgrade/pull/136
As I mention in the PR we probably need another upgrade-step for cases when the the registry holds a unicode-value and we only run migrations from 5.0.x to 5.1.x. I may have time to test that on thursday.
After fixing this the buildout runs and Zope starts but then I've a lot of exception captured by PDBDebugMode:
BadRequest: ('Empty or invalid id specified', u'temp_folder')
> /Users/keul/Library/Buildout/eggs/Zope2-2.13.26-py2.7.egg/OFS/ObjectManager.py(94)checkValidId()
-> raise BadRequest, ('Empty or invalid id specified', id)
(Pdb) !id
u'temp_folder'
(Pdb) l
89 import Globals # for data
90
91 if not id or not isinstance(id, str):
92 if isinstance(id, unicode):
93 id = escape(id)
94 -> raise BadRequest, ('Empty or invalid id specified', id)
95 if bad_id(id) is not None:
96 raise BadRequest, (
97 'The id "%s" contains characters illegal in URLs.' % escape(id))
98 if id in ('.', '..'): raise BadRequest, (
99 'The id "%s" is invalid because it is not traversable.' % id)
Here id is an unicode instead of a string, so I get the error.
Switching back to 5.1b4 fix the problem.
The upgrade now runs successfully, but when I attempt to visit a newsitem I get:
Traceback (innermost last):
Module Products.PloneFormGen.patches, line 21, in safe_render
Module Products.Five.browser.pagetemplatefile, line 125, in __call__
Module Products.Five.browser.pagetemplatefile, line 59, in __call__
Module zope.pagetemplate.pagetemplate, line 137, in pt_render
Module five.pt.engine, line 98, in __call__
Module z3c.pt.pagetemplate, line 163, in render
Module chameleon.zpt.template, line 261, in render
Module chameleon.template, line 191, in render
Module chameleon.template, line 171, in render
Module 0feff6079554efdf190e82e6877d2623.py, line 320, in render
Module five.pt.expressions, line 161, in __call__
Module plone.portlet.static.static, line 183, in transformed
Module Products.PortalTransforms.TransformEngine, line 171, in convertTo
Module Products.PortalTransforms.chain, line 45, in convert
Module Products.PortalTransforms.Transform, line 196, in convert
Module Products.PortalTransforms.transforms.safe_html, line 2390, in convert
Module plone.registry.registry, line 82, in forInterface
KeyError: 'Interface `Products.CMFPlone.interfaces.controlpanel.IFilterSchema` defines a field `valid_tags`, for which there is no record.'
- Expression: "view/transformed"
- Filename: ... et.static-3.1.1-py2.7.egg/plone/portlet/static/static.pt
- Location: (line 21: col 36)
- Source: ... v tal:replace="structure view/transformed" />
^^^^^^^^^^^^^^^^
... snip ...
TransformError: Error during transformation
- Expression: "python:context.text.output_relative_to(view.context)"
- Filename: ... egg/plone/app/contenttypes/browser/templates/newsitem.pt
- Location: (line 15: col 29)
- Source: ... ucture python:context.text.output_relative_to(view.context)"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This is similar to the error that was preventing the upgrade from running which also made reference to:
KeyError: 'Interface `Products.CMFPlone.interfaces.controlpanel.IFilterSchema` defines a field `valid_tags`, for which there is no record.'