you could try this: Migration to 5.0.5 fails if persistent_directory is None · Issue #1701 · plone/Products.CMFPlone · GitHub
Thank you for the link. Somehow I missed seeing that post. I read it, added the two lines of code from posting to buildout-cache/eggs/Products.CMFPlone-5.0.5-py2.7.egg/Products/CMFPlone/resources/browser/combine.py
, ran sudo -u plone_buildout bin/buildout
, and made it past the combine.py problem. Nice to make some progress. Thanks for this!
My database has two sites in it names Main
and SchuhTest
. I try things in the second one and the first is my production site. After changing combine.py, the Main
site failed to migrate with the error message
Step kupu-setup has an invalid import handler
Upgrade aborted. Error:
Traceback (most recent call last):
File "/opt/plone5.0.5/buildout-cache/eggs/Products.CMFPlone-5.0.5-py2.7.egg/Products/CMFPlone/MigrationTool.py", line 268, in upgrade
step['step'].doStep(setup)
File "/opt/plone5.0.5/buildout-cache/eggs/Products.GenericSetup-1.8.3-py2.7.egg/Products/GenericSetup/upgrade.py", line 166, in doStep
self.handler(tool)
File "/opt/plone5.0.5/buildout-cache/eggs/plone.app.upgrade-1.3.25-py2.7.egg/plone/app/upgrade/v50/betas.py", line 353, in to50rc1
migrate_linkintegrity_relations(portal)
File "/opt/plone5.0.5/buildout-cache/eggs/plone.app.linkintegrity-3.0.5-py2.7.egg/plone/app/linkintegrity/upgrades.py", line 21, in migrate_linkintegrity_relations
source_obj, target_obj, relationship=referencedRelationship)
File "/opt/plone5.0.5/buildout-cache/eggs/Products.Archetypes-1.10.15-py2.7.egg/Products/Archetypes/ReferenceEngine.py", line 345, in deleteReference
tID, tobj = self._uidFor(target)
File "/opt/plone5.0.5/buildout-cache/eggs/Products.Archetypes-1.10.15-py2.7.egg/Products/Archetypes/ReferenceEngine.py", line 538, in _uidFor
raise ReferenceException, "%r not referenceable" % uobject
ReferenceException: None not referenceable
End of upgrade path, main migration has finished.
The upgrade path did NOT reach current version.
Migration has failed
I found a Dec 7, 2015 post by fulv that had this same error. He fixed it by clearing the reference_catalog
in Plone 4 before doing the upgrade. I tried to do the same by going to my 4.3.11 instance, going into the Zope interface, selecting the Main site, sorting on name, clicking on reference_catalog
(/Main/reference_catalog/manage_main
), clicking on the "Advanced" tab, clicking on "Clear Catalog" on the right side of the window, shutting down 4.3.11, copying the filesstorage and blobstorage directories to the 5.0.6 instance, restarting it, and trying the migration again. I was then able to migrate the Main
site but it does not look right. I don't know if it helps or not with figuring this out, but from looking at /Main/prefs_install_products_form
, the Main
site is using Plone Classic Theme 1.3.3
.
After migrating to 5.0.6 from 4.3.11, my Main site has a much different view than before. It is supposed to look like
and now it looks like
How can I get my 4.3.11 view back in 5.0.6? I would really appreciate some help with this.
I looked through my upgrade report and think there might be some output that will help people help me fix this. Does anyone see something in the upgrade report that they can use to help me?
Starting the migration from version: 4314
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
Ran upgrade step: Remove Language Tool and migrate settings
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 to50beta2 upgrade profile
Role / permission map imported.
Actions tool imported.
Control panel imported.
Archetype tool imported.
Step languagetool has an invalid import handler
Removed record plone.resources/mockup-patterns-accessibility.init.
Removed record plone.resources/mockup-patterns-accessibility.export.
Removed record plone.resources/mockup-patterns-accessibility.deps.
Removed record plone.resources/mockup-patterns-accessibility.conf.
Removed record plone.resources/mockup-patterns-accessibility.url.
Removed record plone.resources/mockup-patterns-accessibility.css.
Removed record plone.resources/mockup-patterns-accessibility.js.
Step kupu-setup has an invalid import handler
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 to50beta3 upgrade profile
Role / permission map imported.
Actions tool imported.
Archetype tool imported.
Step languagetool has an invalid import handler
Removed record plone.resources/mockup-patterns-tablesorter.init.
Removed record plone.resources/mockup-patterns-tablesorter.export.
Removed record plone.resources/mockup-patterns-tablesorter.deps.
Removed record plone.resources/mockup-patterns-tablesorter.conf.
Removed record plone.resources/mockup-patterns-tablesorter.url.
Removed record plone.resources/mockup-patterns-tablesorter.css.
Removed record plone.resources/mockup-patterns-tablesorter.js.
Removed record plone.resources/resource-collection-css.init.
Removed record plone.resources/resource-collection-css.export.
Removed record plone.resources/resource-collection-css.deps.
Removed record plone.resources/resource-collection-css.conf.
Removed record plone.resources/resource-collection-css.url.
Removed record plone.resources/resource-collection-css.css.
Removed record plone.resources/resource-collection-css.js.
Step kupu-setup has an invalid import handler
Ran upgrade step: Run to50beta4 upgrade profile
Role / permission map imported.
Archetype tool imported.
Step languagetool has an invalid import handler
Step kupu-setup has an invalid import handler
Role / permission map imported.
Archetype tool imported.
Step languagetool has an invalid import handler
Step kupu-setup has an invalid import handler
Role / permission map imported.
Archetype tool imported.
Step languagetool has an invalid import handler
Step kupu-setup has an invalid import handler
Role / permission map imported.
Archetype tool imported.
Step languagetool has an invalid import handler
Step kupu-setup has an invalid import handler
Role / permission map imported.
Archetype tool imported.
Step languagetool has an invalid import handler
Step kupu-setup has an invalid import handler
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 to50beta4 upgrade profile
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
Role / permission map imported.
Archetype tool imported.
Step languagetool has an invalid import handler
Step kupu-setup has an invalid import handler
Role / permission map imported.
Archetype tool imported.
Step languagetool has an invalid import handler
Step kupu-setup has an invalid import handler
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 to50rc1 upgrade profile
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 to50rc2 upgrade profile
Role / permission map imported.
Archetype tool imported.
Step languagetool has an invalid import handler
Removed record plone.resources/resource-plone-app-discussion-stylesheets.init.
Removed record plone.resources/resource-plone-app-discussion-stylesheets.export.
Removed record plone.resources/resource-plone-app-discussion-stylesheets.deps.
Removed record plone.resources/resource-plone-app-discussion-stylesheets.conf.
Removed record plone.resources/resource-plone-app-discussion-stylesheets.url.
Removed record plone.resources/resource-plone-app-discussion-stylesheets.css.
Removed record plone.resources/resource-plone-app-discussion-stylesheets.js.
Step kupu-setup has an invalid import handler
could not upgrade calendar_starting_year property
could not upgrade calendar_future_years_available property
Ran upgrade step: Run to50rc3 upgrade profile
Setting installed version of profile Products.PloneLanguageTool:PloneLanguageTool as unknown.
Setting installed version of profile plone.app.jquerytools:default as unknown.
Setting installed version of profile Products.TinyMCE:upgrade_12_to_13 as unknown.
Setting installed version of profile plone.app.jquery:default as unknown.
Setting installed version of profile Products.TinyMCE:TinyMCE as unknown.
Setting installed version of profile archetypes.referencebrowserwidget:default as unknown.
Setting installed version of profile plonetheme.classic:default as unknown.
Setting installed version of profile plone.app.search:default as unknown.
Setting installed version of profile plonetheme.sunburst:default as unknown.
Ran upgrade step: Unmark installed profiles that are no longer available.
Ran upgrade step: Mark products as installed for installed uninstallable profiles
Ran upgrade step: Cleanup uninstalled products
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 to500 upgrade profile
Ran upgrade step: Unmark installed profiles that are no longer available.
Ran upgrade step: Mark products as installed for installed uninstallable profiles
Ran upgrade step: Cleanup uninstalled products
Ran upgrade step: Cleanup the skins tool.
Ran upgrade step: Remove fake kupu tool and related settings and resources.
Role / permission map imported.
Actions tool imported.
Archetype tool imported.
Step languagetool has an invalid import handler
Step kupu-setup has an invalid import handler
Reindexed `getIcon` for 641 items
Ran upgrade step: Run to501 upgrade profile.
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 to502 upgrade profile.
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 to503 upgrade profile.
Ran upgrade step: Miscellaneous
Ran upgrade step: Miscellaneous
End of upgrade path, main migration has finished.
Starting upgrade of core addons.
Role / permission map imported.
Done upgrading core addons.
Your Plone instance is now up-to-date.
Again, I would appreciate any help people can give me with fixing my Main site.
I was unable to migrate my SchuhTest
site. The SchuhTest
site failed to migrate with the error messages. I would like to fix it but this is a lower level priority than fixing my Main site. Here is the upgrade report.
Dry run selected.
Starting the migration from version: 4314
Ran upgrade step: Miscellaneous
There are unresolved or circular dependencies. Graphviz diagram:: digraph dependencies {"plone.app.versioningbehavior";"typeinfo" -> "toolset"; "portal-transforms-various" -> "componentregistry"; "atcttool" -> "catalog"; "atcttool" -> "componentregistry"; "atcttool" -> "toolset"; "actions" -> "componentregistry"; "skins" -> "componentregistry"; "languagetool" -> "toolset"; "import-intid-util" -> "toolset"; "factorytool" -> "componentregistry"; "factorytool" -> "typeinfo"; "factorytool" -> "toolset"; "placeful_workflow" -> "typeinfo"; "placeful_workflow" -> "workflow"; "componentregistry" -> "toolset"; "plone.app.caching";"controlpanel" -> "actions"; "controlpanel" -> "componentregistry"; "placeful_marker" -> "workflow"; "jsregistry" -> "skins"; "jsregistry" -> "componentregistry"; "jsregistry" -> "plone.app.registry"; "jsregistry" -> "toolset"; "plone.app.event-catalog" -> "plone.app.registry"; "content" -> "typeinfo"; "mimetypes-registry-various" -> "componentregistry"; "cmfeditions_various" -> "toolset"; "cmfeditions_various" -> "typeinfo"; "reference_catalog" -> "toolset"; "viewlets" -> "componentregistry"; "plone.app.registry" -> "componentregistry"; "plone.app.registry" -> "toolset"; "plone.app.registry" -> "typeinfo"; "propertiestool" -> "componentregistry"; "portlets" -> "componentregistry"; "portlets" -> "content"; "toolset";"plone-final" -> "portlets"; "plone-final" -> "rolemap"; "plone-final" -> "catalog"; "plone-final" -> "cssregistry"; "plone-final" -> "jsregistry"; "plone-final" -> "viewlets"; "plone-final" -> "controlpanel"; "plone-final" -> "propertiestool"; "plone-final" -> "workflow"; "ploneopenid-various";"update-workflow-rolemap" -> "workflow"; "sharing" -> "rolemap"; "uid_catalog" -> "toolset"; "workflow" -> "toolset"; "atct_content";"cssregistry" -> "skins"; "cssregistry" -> "componentregistry"; "cssregistry" -> "plone.app.registry"; "cssregistry" -> "toolset"; "contentrules" -> "componentregistry"; "contentrules" -> "content"; "contentrules" -> "workflow"; "cookie_authentication" -> "toolset"; "import-relations-utils" -> "toolset"; "catalog" -> "toolset"; "mailhost" -> "componentregistry"; "content_type_registry" -> "componentregistry"; "plone.app.multilingual_default";"properties";"plone.app.multilingual_uninstall";"plonepas" -> "componentregistry"; "plonepas" -> "controlpanel"; "plonepas" -> "memberdata-properties"; "plonepas" -> "rolemap"; "combine-bundles" -> "plone.app.registry"; "browserlayer" -> "componentregistry"; "plone-difftool";"plone_outputfilters_various" -> "componentregistry"; "memberdata-properties" -> "componentregistry"; "kupu-setup" -> "plone_various"; "caching_policy_mgr" -> "toolset"; "archetypetool" -> "archetypes-various"; "usersschema";"difftool" -> "toolset"; "difftool" -> "componentregistry"; "repositorytool" -> "toolset"; "repositorytool" -> "typeinfo"; "repositorytool" -> "cmfeditions_various"; "rolemap";"archetypes-various" -> "componentregistry"; "intid-register-content" -> "catalog"; "intid-register-content" -> "import-intid-util"; "plone.app.theming" -> "toolset"; "kupu-setup" [color=red,style=filled]; }
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
There are unresolved or circular dependencies. Graphviz diagram:: digraph dependencies {"plone.app.versioningbehavior";"typeinfo" -> "toolset"; "portal-transforms-various" -> "componentregistry"; "atcttool" -> "catalog"; "atcttool" -> "componentregistry"; "atcttool" -> "toolset"; "actions" -> "componentregistry"; "skins" -> "componentregistry"; "languagetool" -> "toolset"; "import-intid-util" -> "toolset"; "factorytool" -> "componentregistry"; "factorytool" -> "typeinfo"; "factorytool" -> "toolset"; "placeful_workflow" -> "typeinfo"; "placeful_workflow" -> "workflow"; "componentregistry" -> "toolset"; "plone.app.caching";"controlpanel" -> "actions"; "controlpanel" -> "componentregistry"; "placeful_marker" -> "workflow"; "jsregistry" -> "skins"; "jsregistry" -> "componentregistry"; "jsregistry" -> "plone.app.registry"; "jsregistry" -> "toolset"; "plone.app.event-catalog" -> "plone.app.registry"; "content" -> "typeinfo"; "mimetypes-registry-various" -> "componentregistry"; "cmfeditions_various" -> "toolset"; "cmfeditions_various" -> "typeinfo"; "reference_catalog" -> "toolset"; "viewlets" -> "componentregistry"; "plone.app.registry" -> "componentregistry"; "plone.app.registry" -> "toolset"; "plone.app.registry" -> "typeinfo"; "propertiestool" -> "componentregistry"; "portlets" -> "componentregistry"; "portlets" -> "content"; "toolset";"plone-final" -> "portlets"; "plone-final" -> "rolemap"; "plone-final" -> "catalog"; "plone-final" -> "cssregistry"; "plone-final" -> "jsregistry"; "plone-final" -> "viewlets"; "plone-final" -> "controlpanel"; "plone-final" -> "propertiestool"; "plone-final" -> "workflow"; "ploneopenid-various";"update-workflow-rolemap" -> "workflow"; "sharing" -> "rolemap"; "uid_catalog" -> "toolset"; "workflow" -> "toolset"; "atct_content";"cssregistry" -> "skins"; "cssregistry" -> "componentregistry"; "cssregistry" -> "plone.app.registry"; "cssregistry" -> "toolset"; "contentrules" -> "componentregistry"; "contentrules" -> "content"; "contentrules" -> "workflow"; "cookie_authentication" -> "toolset"; "import-relations-utils" -> "toolset"; "catalog" -> "toolset"; "mailhost" -> "componentregistry"; "content_type_registry" -> "componentregistry"; "plone.app.multilingual_default";"properties";"plone.app.multilingual_uninstall";"plonepas" -> "componentregistry"; "plonepas" -> "controlpanel"; "plonepas" -> "memberdata-properties"; "plonepas" -> "rolemap"; "combine-bundles" -> "plone.app.registry"; "browserlayer" -> "componentregistry"; "plone-difftool";"plone_outputfilters_various" -> "componentregistry"; "memberdata-properties" -> "componentregistry"; "kupu-setup" -> "plone_various"; "caching_policy_mgr" -> "toolset"; "archetypetool" -> "archetypes-various"; "usersschema";"difftool" -> "toolset"; "difftool" -> "componentregistry"; "repositorytool" -> "toolset"; "repositorytool" -> "typeinfo"; "repositorytool" -> "cmfeditions_various"; "rolemap";"archetypes-various" -> "componentregistry"; "intid-register-content" -> "catalog"; "intid-register-content" -> "import-intid-util"; "plone.app.theming" -> "toolset"; "kupu-setup" [color=red,style=filled]; }
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 "/opt/plone/buildout-cache/eggs/Products.CMFPlone-5.0.6rc1-py2.7.egg/Products/CMFPlone/MigrationTool.py", line 268, in upgrade
step['step'].doStep(setup)
File "/opt/plone/buildout-cache/eggs/Products.GenericSetup-1.8.3-py2.7.egg/Products/GenericSetup/upgrade.py", line 166, in doStep
self.handler(tool)
File "/opt/plone/buildout-cache/eggs/plone.app.upgrade-1.3.27-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 # noqa
AttributeError: use_content_negotiation
End of upgrade path, main migration has finished.
The upgrade path did NOT reach current version.
Migration has failed
Dry run selected, transaction aborted
I found a posting that talks about the AttributeError: use_content_negotiation message but could not figure out what I should do to my site to fix it. Any help with this would be appreciated.