Plone upgrade 5.0.8 -> 5.1.6

Hello everyone,
I have several problems lately, but basically just trying to get this site up which won't go up after server unexpected shutdown (Windows server). But basically now I installed new Plone on different computer (Win 7) (newer version, I couldn't manage to install 5.0.8 anymore) 5.1.6, moved blobstorage and Data.fs and tried to upgrade data but unfortunately There is an error.
This is part of the upgrade report, but basically if I can decipher I'm missing regarding this circular dependencies is kupu-setup. :confused:

Dry run selected.
Starting the migration from version: 5018
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"; "nuplone_various" -> "skins"; "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"; "jsregistry" -> "skins"; "jsregistry" -> "componentregistry"; "jsregistry" -> "plone.app.registry"; "jsregistry" -> "toolset"; "plone.app.event-catalog" -> "plone.app.registry"; "content" -> "typeinfo"; "kupu-setup" -> "plone_various"; "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"; "kssregistry" -> "toolset"; "kssregistry" -> "componentregistry"; "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"; "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.
Step nuplone_various has an invalid import handler
Archetype tool imported.
Step languagetool has an invalid import handler
Removed record plone.resources/mockup-registry.init.
Removed record plone.resources/mockup-registry.export.
Removed record plone.resources/mockup-registry.deps.
Removed record plone.resources/mockup-registry.conf.
Removed record plone.resources/mockup-registry.url.
Removed record plone.resources/mockup-registry.css.
Removed record plone.resources/mockup-registry.js.
Removed record plone.resources/mockup-parser.init.
Removed record plone.resources/mockup-parser.export.
Removed record plone.resources/mockup-parser.deps.
Removed record plone.resources/mockup-parser.conf.
Removed record plone.resources/mockup-parser.url.
Removed record plone.resources/mockup-parser.css.
Removed record plone.resources/mockup-parser.js.
Removed record plone.resources/tinymce-layer.init.
Removed record plone.resources/tinymce-layer.export.
Removed record plone.resources/tinymce-layer.deps.
Removed record plone.resources/tinymce-layer.conf.
Removed record plone.resources/tinymce-layer.url.
Removed record plone.resources/tinymce-layer.css.
Removed record plone.resources/tinymce-layer.js.
Step kupu-setup has an invalid import handler
Ran upgrade step: Add jqTree contextual menu and JS Shortcuts to the resource registry
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"; "nuplone_various" -> "skins"; "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"; "jsregistry" -> "skins"; "jsregistry" -> "componentregistry"; "jsregistry" -> "plone.app.registry"; "jsregistry" -> "toolset"; "plone.app.event-catalog" -> "plone.app.registry"; "content" -> "typeinfo"; "kupu-setup" -> "plone_various"; "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"; "kssregistry" -> "toolset"; "kssregistry" -> "componentregistry"; "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"; "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.
Step nuplone_various has an invalid import handler
Archetype tool imported.
Step languagetool has an invalid import handler
Removed record plone.resources/mockup-registry.init.
Removed record plone.resources/mockup-registry.export.
...
...
...
Step kupu-setup has an invalid import handler
Ran upgrade step: Run to51beta4 upgrade profile.
Ran upgrade step: Fix double shared maxage
Reindexed `mime_type` for 1129 items
Ran upgrade step: Reindex mime_type
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"; "nuplone_various" -> "skins"; "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"; "jsregistry" -> "skins"; "jsregistry" -> "componentregistry"; "jsregistry" -> "plone.app.registry"; "jsregistry" -> "toolset"; "plone.app.event-catalog" -> "plone.app.registry"; "content" -> "typeinfo"; "kupu-setup" -> "plone_various"; "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"; "kssregistry" -> "toolset"; "kssregistry" -> "componentregistry"; "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"; "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.
Step nuplone_various has an invalid import handler
Actions tool imported.
Archetype tool imported.
Step languagetool has an invalid import handler
Step kupu-setup has an invalid import handler
Ran upgrade step: Run to51rc1 upgrade profile.
Ran upgrade step: Move safe_html settings from portal_transforms to Plone registry
Ran upgrade step: Cleanup duplicate settings from placefiul workflow from Plone registry
Ran upgrade step: Remove registration of p.a.c import_steps since they were transformed into post_handlers
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"; "nuplone_various" -> "skins"; "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"; "jsregistry" -> "skins"; "jsregistry" -> "componentregistry"; "jsregistry" -> "plone.app.registry"; "jsregistry" -> "toolset"; "plone.app.event-catalog" -> "plone.app.registry"; "content" -> "typeinfo"; "kupu-setup" -> "plone_various"; "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"; "kssregistry" -> "toolset"; "kssregistry" -> "componentregistry"; "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"; "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.
Step nuplone_various has an invalid import handler
Archetype tool imported.
Step languagetool has an invalid import handler
Step kupu-setup has an invalid import handler
Ran upgrade step: Run to511 upgrade profile.
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"; "nuplone_various" -> "skins"; "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"; "jsregistry" -> "skins"; "jsregistry" -> "componentregistry"; "jsregistry" -> "plone.app.registry"; "jsregistry" -> "toolset"; "plone.app.event-catalog" -> "plone.app.registry"; "content" -> "typeinfo"; "kupu-setup" -> "plone_various"; "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"; "kssregistry" -> "toolset"; "kssregistry" -> "componentregistry"; "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"; "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.
Step nuplone_various has an invalid import handler
Archetype tool imported.
Step languagetool has an invalid import handler
Step kupu-setup has an invalid import handler
Ran upgrade step: Run to512 upgrade profile.
Action object/ical_import_enable was not found
Action object/ical_import_disable was not found
Ran upgrade step: Update an action i18n domain
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"; "nuplone_various" -> "skins"; "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"; "jsregistry" -> "skins"; "jsregistry" -> "componentregistry"; "jsregistry" -> "plone.app.registry"; "jsregistry" -> "toolset"; "plone.app.event-catalog" -> "plone.app.registry"; "content" -> "typeinfo"; "kupu-setup" -> "plone_various"; "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"; "kssregistry" -> "toolset"; "kssregistry" -> "componentregistry"; "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"; "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.
Step nuplone_various has an invalid import handler
Archetype tool imported.
Step languagetool has an invalid import handler
Removed record plone.resources/resource-plone-app-event-js.init.
Removed record plone.resources/resource-plone-app-event-js.export.
Removed record plone.resources/resource-plone-app-event-js.deps.
Removed record plone.resources/resource-plone-app-event-js.conf.
Removed record plone.resources/resource-plone-app-event-js.url.
Removed record plone.resources/resource-plone-app-event-js.css.
Removed record plone.resources/resource-plone-app-event-js.js.
Removed record plone.resources/resource-plone-app-event-css.init.
Removed record plone.resources/resource-plone-app-event-css.export.
Removed record plone.resources/resource-plone-app-event-css.deps.
Removed record plone.resources/resource-plone-app-event-css.conf.
Removed record plone.resources/resource-plone-app-event-css.url.
Removed record plone.resources/resource-plone-app-event-css.css.
Removed record plone.resources/resource-plone-app-event-css.js.
Step kupu-setup has an invalid import handler
Ran upgrade step: Run to513 upgrade profile.
Ran upgrade step: Force remove old p.a.event resources
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"; "nuplone_various" -> "skins"; "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"; "jsregistry" -> "skins"; "jsregistry" -> "componentregistry"; "jsregistry" -> "plone.app.registry"; "jsregistry" -> "toolset"; "plone.app.event-catalog" -> "plone.app.registry"; "content" -> "typeinfo"; "kupu-setup" -> "plone_various"; "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"; "kssregistry" -> "toolset"; "kssregistry" -> "componentregistry"; "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"; "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.
Step nuplone_various has an invalid import handler
Archetype tool imported.
Step languagetool has an invalid import handler
Removed record plone.resources/jquery-highlightsearchterms.init.
Removed record plone.resources/jquery-highlightsearchterms.export.
Removed record plone.resources/jquery-highlightsearchterms.deps.
Removed record plone.resources/jquery-highlightsearchterms.conf.
Removed record plone.resources/jquery-highlightsearchterms.url.
Removed record plone.resources/jquery-highlightsearchterms.css.
Removed record plone.resources/jquery-highlightsearchterms.js.
Step kupu-setup has an invalid import handler
Ran upgrade step: Run to514 upgrade profile.
Ran upgrade step: Miscellaneous
Ran upgrade step: Miscellaneous
End of upgrade path, main migration has finished.
Starting upgrade of core addons.
Done upgrading core addons.
Your Plone instance is now up-to-date.
Dry run selected, transaction aborted

Here is traceback which I get when I open my site:
So still I cannot see any of the content from Data.fs
Traceback (innermost last):

* Module ZPublisher.Publish, line 138, in publish
* Module ZPublisher.mapply, line 77, in mapply
* Module ZPublisher.Publish, line 48, in call_object
* Module z3c.form.form, line 239, in __call__
* Module z3c.form.form, line 163, in 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 4a4e4eee684c5f53931308afcb942e0f.py, line 346, in render
* Module 4e8707fc74915de58631008f27feb168.py, line 1297, in render_master
* Module z3c.pt.expressions, line 71, in render_content_provider
* Module plone.portlets.manager, line 77, in update
* Module plone.app.event.portlets.portlet_calendar, line 119, in update
* Module plone.app.event.portlets.portlet_calendar, line 114, in search_base_path

    ...
    ...
    ...

Module plone.app.event.portlets.portlet_calendar, line 108, in search_base
    Module plone.app.event.portlets.portlet_calendar, line 93, in _uid
    Module plone.app.event.portlets.portlet_calendar, line 108, in search_base
    Module plone.app.event.portlets.portlet_calendar, line 93, in _uid
    Module plone.app.event.portlets.portlet_calendar, line 108, in search_base
    RuntimeError: maximum recursion depth exceeded while calling a Python object

 - Expression: "provider:plone.rightcolumn"
 - Filename:   ... egg\products\CMFPlone\browser\templates/main_template.pt
 - Location:   (line 133: col 38)
 - Source:     ... efine-slot="column_two_slot"
                                       ^
 - Arguments:  repeat: {...} (0)
               template: <ViewPageTemplateFile - at 0xc24d308L>
               views: <ViewMapper - at 0x108cd688L>
               modules: <instance - at 0x547bf88L>
               args: <tuple - at 0x2d11048L>
               here: <ImplicitAcquisitionWrapper SuB at 0xfd2c548L>
               user: <ImplicitAcquisitionWrapper - at 0x10b8af98L>
               nothing: <NoneType - at 0x71fafa98L>
               container: <ImplicitAcquisitionWrapper SuB at 0xfd2c548L>
               request: <instance - at 0x10291448L>
               wrapped_repeat: <SafeMapping - at 0x1030f958L>
               traverse_subpath: <list - at 0x102918c8L>
               default: <object - at 0x51020b0L>
               loop: {...} (2)
               context: <ImplicitAcquisitionWrapper SuB at 0xfd2c548L>
               view: <ContactForm contact-info at 0x10291f48L>
               translate: <function translate at 0xfd91ac8L>
               root: <ImplicitAcquisitionWrapper Zope at 0x1000fe58L>
               options: {...} (0)
               target_language: <NoneType - at 0x71fafa98L>

You can ignore the messages regarding "unresolved or circular dependencies": Plone site construction and upgrades depend on the component GenericSetup. It is used to create/update configuration objects inside the ZODB. Its work is controlled by a so called "profile". A profile consists of steps with dependencies on other steps (of the same profile). If you upgrade, there is a good chance that some of those steps are no longer available (you gets hints via messages of the form "step SSS has an invalid import handler") and this is harmless.

I do not have the 5.1.6 code but instead have looked at the 5.2.1 code (more precisely plone.app.event==3.2.6). This code suggests that formerly the portlet ("assignment") had an attribute search_base which is now replaced by the attribute search_base_uid. The _uid method (involved in the recursion) is called to handle an "old" portlet and let it behave like a new one. The code I look at gives no hint how it could be possible that _uid would call search_base (the other method involved in the recursion). This may mean that the code used at your site is different or that really strange things go on.

I see two possibilities:

  • you could post an extract of your code involved in the recursion (e.g. lines 70 - 120 of plone.app.event.portlets.portlet_calendar, if possible with line numbers) and I would look at this code
  • you could debug the behavior in your installation. I would approach this with a code breakpoint (i.e. import pdb; pdb.set_trace()) at the start of the _uid method. This would enter the Python debugger (--> pdb) when _uid is called and allow you to step through the code to find out where search_base is called. To use debugging, you must start Plone "in the foreground" from the "console" (not as a Windows service or via the UI).

Hello Mr. Maurer,
Thank You very much for your reply.
first to inform You that I had this error in all pages of our site, but I entered portlet settings and changed right side portlet not to show, settings saved, and page loaded and seems like it is ok. I tried to unmake this but pages are okay, loaded in browser. Not sure what is behind this.
I will attach code from portlet calendar as You suggested:

50 class ICalendarPortlet(IPortletDataProvider):
51     """A portlet displaying a calendar
52     """
53 
54     state = schema.Tuple(
55         title=_(u"Workflow state"),
56         description=_(u"Items in which workflow state to show."),
57         default=None,
58         required=False,
59         value_type=schema.Choice(
60             vocabulary="plone.app.vocabularies.WorkflowStates")
61     )
62 
63     search_base_uid = schema.Choice(
64         title=_(u'portlet_label_search_base', default=u'Search base'),
65         description=_(
66             u'portlet_help_search_base',
67             default=u'Select search base Folder or Collection to search for '
68                     u'events. The URL to to this item will also be used to '
69                     u'link to in calendar searches. If empty, the whole site '
70                     u'will be searched and the event listing view will be '
71                     u'called on the site root.'
72         ),
73         required=False,
74         source=search_base_uid_source,
75     )
76 
77 
78 @implementer(ICalendarPortlet)
79 class Assignment(base.Assignment):
80     title = _(u'Calendar')
81 
82     # reduce upgrade pain
83     state = None
84 
85     def __init__(self, state=None, search_base_uid=None):
86         self.state = state
87         self.search_base_uid = search_base_uid
88 
89     def _uid(self):
90         # This is only called if the instance doesn't have a search_base_uid
91         # attribute, which is probably because it has an old
92         # 'search_base' attribute that needs to be converted.
93         path = self.search_base
94         try:
95             search_base = getSite().unrestrictedTraverse(path.lstrip('/'))
96         except (AttributeError, KeyError, TypeError, NotFound):
97             return
98         return search_base.UID()
99     search_base_uid = ComputedAttribute(_uid, 1)
100
101
102class Renderer(base.Renderer):
103    render = ViewPageTemplateFile('portlet_calendar.pt')
104    _search_base = None
105
106    @property
107    def search_base(self):
108        if not self._search_base and self.data.search_base_uid:
109            self._search_base = uuidToObject(self.data.search_base_uid)
110        return aq_inner(self._search_base) if self._search_base else None
111
112    @property
113    def search_base_path(self):
114        return '/'.join(self.search_base.getPhysicalPath()) if self.search_base else None  # noqa
115
116    def update(self):
117        context = aq_inner(self.context)
118
119        self.calendar_url = get_calendar_url(context, self.search_base_path)
120
121        self.year, self.month = year, month = self.year_month_display()
122        self.prev_year, self.prev_month = prev_year, prev_month = (
123            self.get_previous_month(year, month))
124        self.next_year, self.next_month = next_year, next_month = (
125            self.get_next_month(year, month))
126        self.prev_query = '?month=%s&year=%s' % (prev_month, prev_year)
127        self.next_query = '?month=%s&year=%s' % (next_month, next_year)
128
129        self.cal = calendar.Calendar(first_weekday())
130        self._ts = getToolByName(context, 'translation_service')
131        self.month_name = PLMF(
132            self._ts.month_msgid(month),
133            default=self._ts.month_english(month)
134        )
135
136        # strftime %w interprets 0 as Sunday unlike the calendar.
137        strftime_wkdays = [
138            wkday_to_mon1(day) for day in self.cal.iterweekdays()
139        ]
140        self.weekdays = [
141            PLMF(self._ts.day_msgid(day, format='s'),
142                 default=self._ts.weekday_english(day, format='a'))
143            for day in strftime_wkdays
144        ]
145
146    def year_month_display(self):
147        """ Return the year and month to display in the calendar.
148        """
149        context = aq_inner(self.context)
150        request = self.request
151
152        # Try to get year and month from request
153        year = request.get('year', None)
154        month = request.get('month', None)
155
156        # Or use current date
157        today = localized_today(context)
158        if not year:
159            year = today.year
160        if not month:
161            month = today.month
162
163        # try to transform to number but fall back to current
164        # date if this is ambiguous
165        try:
166            year, month = int(year), int(month)
167        except (TypeError, ValueError):
168            year, month = today.year, today.month
169
170        return year, month
171
172    def get_previous_month(self, year, month):
173        if month == 0 or month == 1:
174            month, year = 12, year - 1
175        else:
176            month -= 1
177        return (year, month)
178
179    def get_next_month(self, year, month):
180        if month == 12:
181            month, year = 1, year + 1
182        else:
183            month += 1
184        return (year, month)
185
186    def date_events_url(self, date):
187        return '%s?mode=day&date=%s' % (self.calendar_url, date)
188
189    @property
190    def cal_data(self):
191        """Calendar iterator over weeks and days of the month to display.
192        """
193        context = aq_inner(self.context)
194        today = localized_today(context)
195        year, month = self.year_month_display()
196        monthdates = [dat for dat in self.cal.itermonthdates(year, month)]
197
198        start = monthdates[0]
199        end = monthdates[-1]
200
201        data = self.data
202        query = {}
203        if data.state:
204            query['review_state'] = data.state
205
206        events = []
207        query.update(self.request.get('contentFilter', {}))
208        if ICollection and ICollection.providedBy(self.search_base):
209            # Whatever sorting is defined, we're overriding it.
210            query = queryparser.parseFormquery(
211                self.search_base, self.search_base.query,
212                sort_on='start', sort_order=None
213            )
214
215            # restrict start/end with those from query, if given.
216            if 'start' in query and query['start'] > start:
217                start = query['start']
218            if 'end' in query and query['end'] < end:
219                end = query['end']
220
221            start, end = _prepare_range(self.search_base, start, end)
222            query.update(start_end_query(start, end))
223            events = self.search_base.results(
224                batch=False, brains=True, custom_query=query
225            )
226            events = expand_events(
227                events, ret_mode=RET_MODE_OBJECTS,
228                start=start, end=end,
229                sort='start', sort_reverse=False
230            )
231        else:
232            if self.search_base_path:
233                query['path'] = {'query': self.search_base_path}
234            events = get_events(context, start=start, end=end,
235                                ret_mode=RET_MODE_OBJECTS,
236                                expand=True, **query)
237
238        cal_dict = construct_calendar(events, start=start, end=end)
239
240        # [[day1week1, day2week1, ... day7week1], [day1week2, ...]]
241        caldata = [[]]
242        for dat in monthdates:
243            if len(caldata[-1]) == 7:
244                caldata.append([])
245            date_events = None
246            isodat = dat.isoformat()
247            if isodat in cal_dict:
248                date_events = cal_dict[isodat]
249
250            events_string_list = []
251            if date_events:
252                for occ in date_events:
253                    accessor = IEventAccessor(occ)
254                    location = accessor.location
255                    whole_day = accessor.whole_day
256                    time = accessor.start.time().strftime('%H:%M')
257                    # TODO: make 24/12 hr format configurable
258                    events_string_list.append(
259                        u'{0}{1}{2}{3}'.format(
260                            accessor.title,
261                            u' {0}'.format(time) if not whole_day else u'',
262                            u', ' if not whole_day and location else u'',
263                            u' {0}'.format(location) if location else u''
264                        )
265                    )
266
267            caldata[-1].append(
268                {'date': dat,
269                 'day': dat.day,
270                 'prev_month': dat.month < month,
271                 'next_month': dat.month > month,
272                 'today':
273                    dat.year == today.year and
274                    dat.month == today.month and
275                    dat.day == today.day,
276                 'date_string': u"%s-%s-%s" % (dat.year, dat.month, dat.day),
277                 'events_string': u' | '.join(events_string_list),
278                 'events': date_events})
279        return caldata
280
281    def nav_pattern_options(self, year, month):
282        return json.dumps({
283            'url': '%s/@@render-portlet?portlethash=%s&year=%s&month=%s' % (
284                getSite().absolute_url(),
285                self.hash,
286                year, month),
287            'target': '#portletwrapper-%s > *' % self.hash
288        })
289 ...

Edit:
I just noticed that seems that still one error remains. When I open page logged in as an administrator, in the right side portlets seems there is some error.
image

Here is what I found in instance.log file

2020-05-14T15:14:51 ERROR portlets Error while rendering <plone.app.portlets.manager.ColumnPortletManagerRenderer object at 0x000000000D301F88>
Traceback (most recent call last):
  File "...\plone\buildout-cache\eggs\plone.app.portlets-4.3.4-py2.7.egg\plone\app\portlets\manager.py", line 54, in safe_render
    return portlet_renderer.render()
  File "...\plone\buildout-cache\eggs\plone.app.portlets-4.3.4-py2.7.egg\plone\app\portlets\portlets\recent.py", line 103, in render
    return xhtml_compress(self._template())
  File "...\plone\buildout-cache\eggs\zope2-2.13.29-py2.7.egg\products\Five\browser\pagetemplatefile.py", line 125, in __call__
    return self.im_func(im_self, *args, **kw)
  File "...\plone\buildout-cache\eggs\zope2-2.13.29-py2.7.egg\products\Five\browser\pagetemplatefile.py", line 59, in __call__
    sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
  File "....\plone\buildout-cache\eggs\zope.pagetemplate-4.2.1-py2.7.egg\zope\pagetemplate\pagetemplate.py", line 137, in pt_render
    strictinsert=0, sourceAnnotations=sourceAnnotations
  File "....\plone\buildout-cache\eggs\five.pt-2.2.5-py2.7.egg\five\pt\engine.py", line 98, in __call__
    return self.template.render(**kwargs)
  File "...\plone\buildout-cache\eggs\z3c.pt-3.0.0a1-py2.7.egg\z3c\pt\pagetemplate.py", line 163, in render
    return base_renderer(**context)
  File "....\plone\buildout-cache\eggs\chameleon-2.25-py2.7.egg\chameleon\zpt\template.py", line 261, in render
    return super(PageTemplate, self).render(**vars)
  File "....\plone\buildout-cache\eggs\chameleon-2.25-py2.7.egg\chameleon\template.py", line 191, in render
    raise_with_traceback(exc, tb)
  File "....\plone\buildout-cache\eggs\chameleon-2.25-py2.7.egg\chameleon\template.py", line 171, in render
    self._render(stream, econtext, rcontext)
  File "7518b5c30d9cfc07373d8d9a331b130b.py", line 210, in render
  File "....\plone\buildout-cache\eggs\five.pt-2.2.5-py2.7.egg\five\pt\expressions.py", line 154, in __call__
    base = self.traverse(base, request, path_items)
  File "....\plone\buildout-cache\eggs\five.pt-2.2.5-py2.7.egg\five\pt\expressions.py", line 123, in traverse
    base = traverser(name)
  File "....\plone\buildout-cache\eggs\zope2-2.13.29-py2.7.egg\OFS\Traversable.py", line 300, in unrestrictedTraverse
    raise e
NotFound: no_thumbs

 - Expression: "view/data/no_thumbs"
 - Filename:   ... ts-4.3.4-py2.7.egg\plone\app\portlets\portlets\recent.pt
 - Location:   (line 20: col 30)
 - Source:     supress_thumb view/data/no_thumbs;
                             ^^^^^^^^^^^^^^^^^^^
 - Arguments:  repeat: {...} (0)
               template: <ViewPageTemplateFile - at 0xa3bfb48L>
               views: <ViewMapper - at 0xc9ed848L>
               modules: <instance - at 0x4dbce08L>
               args: <tuple - at 0x2601048L>
               here: <ImplicitAcquisitionWrapper bilder at 0xd2d0d68L>
               image_scale: <NavigationRootScaling image_scale at 0xd51e5c8L>
               supress_icon: False
               portal: <ImplicitAcquisitionWrapper SuB at 0xd2aa278L>
               user: <ImplicitAcquisitionWrapper - at 0xd2aaea8L>
               nothing: <NoneType - at 0x62c6fa98L>
               container: <ImplicitAcquisitionWrapper bilder at 0xd2d0d68L>
               request: <instance - at 0xca3de88L>
               wrapped_repeat: <SafeMapping - at 0xd2d00e8L>
               traverse_subpath: <list - at 0xd51e208L>
               default: <object - at 0x4a290b0L>
               loop: {...} (0)
               context: <ImplicitAcquisitionWrapper bilder at 0xd2d0d68L>
               view: <Renderer - at 0xebf9188L>
               plone_layout: <LayoutPolicy plone_layout at 0xd51e808L>
               translate: <function translate at 0xd3bc198L>
               root: <ImplicitAcquisitionWrapper Zope at 0xd2aa188L>
               options: {...} (0)
               target_language: <NoneType - at 0x62c6fa98L>

Your problem is understood: apparently, your portlet ("Assignment") neither has a search_base_uid nor a search_base attribute. As a consequence, line 93 accesses the "Renderer"s search_base (via "acquisition") which leads to the recursion.

I do not know why your portlet lacks both attributes. In any case, I think the code is far from optimal.

The easiest way for you to work around the problem is to delete the portlet and recreate it. The recreated portlet will have the search_base_uid and the problematic code path (leading to the recursion) will not be taken.

Ok,
I will proceed now with Your suggestion. If you have some link for me to refer on this procedure it would be of great help...
Regards

Thus, you tell me that you have hidden the portlet (naturally, the problem did no longer show) and then again unhidden it - but, the problem did not reoccur? That would be strange indeed. I have no explanation. If you really would want to analyze this, dm.historical might help (it allows you to obtain the historical state of a persistent object and its change history back until the most recent pack of your ZODB).

This seems similar to your previous problem - this time affecting the a different portlet. Unfortunately, the traceback does not tell me which one precisely. It is the one associated with the recent.pt template. When I remember right, then Plone has a portlet which shows an overview of the recently modified objects. I think this portlet is associated with recent.pt. Again, the template expects an attribute (no_thumbs) which the portlet ("assignment") does not have. After you have identified the portlet, you can delete and recreate it to fix the problem.