Migrating python2.7, plone5.2.12 to python3, plone 6.0.11

I am getting this error while migrating python2.7 , plone 5.2.12 version database on to 6.0.11 version. Here is the command, I used to verify the migration is possible.

> bin/zodbupdate -f var/filestorage/Data.fs --convert-py3 --encoding utf-8

It is showing the below errors.

Updating magic marker for var/filestorage/Data.fs
Loaded 1 rename rules from OFS:renames
Loaded 13 decode rules from OFS:decodes
Loaded 2 decode rules from AccessControl:decodes
Loaded 3 decode rules from Products.PythonScripts:decodes
Loaded 1 decode rules from Products.ZopeVersionControl:decodes
Warning: Missing factory for Products.ZODBMountPoint.MountedObject MountedObject
Warning: Missing factory for Products.CMFPlone.QuickInstallerTool QuickInstallerTool
Warning: Missing factory for Products.CMFFormController.FormController FormController
Warning: Missing factory for Products.CMFQuickInstallerTool.InstalledProduct InstalledProduct
Warning: Missing factory for Products.CMFFormController.FormAction FormActionContainer
Warning: Missing factory for Products.CMFFormController.FormValidator FormValidatorContainer
New implicit rule detected Products.CMFPlone.interfaces.siteroot IPloneSiteRoot to plone.base.interfaces.siteroot IPloneSiteRoot
New implicit rule detected Products.CMFPlone.interfaces.migration IMigrationTool to plone.base.interfaces.migration IMigrationTool
An error occured
Traceback (most recent call last):
  File "/home/webadmin/classicui/eggs/zodbupdate-2.0-py3.8.egg/zodbupdate/main.py", line 220, in main
    updater()
  File "/home/webadmin/classicui/eggs/zodbupdate-2.0-py3.8.egg/zodbupdate/update.py", line 87, in __call__
    new = self.processor.rename(current)
  File "/home/webadmin/classicui/eggs/zodbupdate-2.0-py3.8.egg/zodbupdate/serialize.py", line 335, in rename
    data = unpickler.load()
  File "/home/webadmin/classicui/eggs/ZODB-5.8.1-py3.8.egg/ZODB/broken.py", line 261, in rebuild
    return class_.__new__(class_, *args)
TypeError: function.__new__(X): X is not a type object (function)
Stopped processing, due to: function.__new__(X): X is not a type object (function)
Traceback (most recent call last):
  File "/home/webadmin/classicui/eggs/zodbupdate-2.0-py3.8.egg/zodbupdate/main.py", line 220, in main
    updater()
  File "/home/webadmin/classicui/eggs/zodbupdate-2.0-py3.8.egg/zodbupdate/update.py", line 87, in __call__
    new = self.processor.rename(current)
  File "/home/webadmin/classicui/eggs/zodbupdate-2.0-py3.8.egg/zodbupdate/serialize.py", line 335, in rename
    data = unpickler.load()
  File "/home/webadmin/classicui/eggs/ZODB-5.8.1-py3.8.egg/ZODB/broken.py", line 261, in rebuild
    return class_.__new__(class_, *args)
TypeError: function.__new__(X): X is not a type object (function)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "bin/zodbupdate", line 250, in <module>
    sys.exit(zodbupdate.main.main())
  File "/home/webadmin/classicui/eggs/zodbupdate-2.0-py3.8.egg/zodbupdate/main.py", line 224, in main
    raise AssertionError()
AssertionError

So how to rectify this error. Please help. I installed plone 6.0.11 using this buildout.cfg

[buildout]
extends =
     https://dist.plone.org/release/6.0.11/versions.cfg
parts +=
    instance
    zodbupdate
[instance]
recipe = plone.recipe.zope2instance
user = admin:admin
http-address = 9001
eggs =
    Plone
    plone.volto
    Products.CMFPlone
    plone.app.caching
    plone.app.upgrade
    collective.easyform
[zodbupdate]
recipe = zc.recipe.egg
eggs =
    zodbupdate
    Zope
    Products.Sessions
    Products.SiteErrorLog
    Products.CMFPlone
    plone.keyring
    plone.cachepurging
    plone.app.caching
    collective.easyform

So need some help regarding where I got wrong

You've to upgrade to python3 in Plone 5.2. Then you can migrate to 6. Another option is to migrate the data using:

I initially migrated from python2.7 to python3 in plone 5.2 and then I tried to upgrade plone to plone6. After some errors I successfully upgraded it.

After this. I opened my site but got another error. The site is not working properly.

error while rendering plone.resourceregistries.styles

We’re sorry, but there seems to be an error…
Here is the full error message:
Traceback (innermost last):
Module ZPublisher.WSGIPublisher, line 181, in transaction_pubevents
Module ZPublisher.WSGIPublisher, line 391, in publish_module
Module ZPublisher.WSGIPublisher, line 285, in publish
Module ZPublisher.mapply, line 98, in mapply
Module ZPublisher.WSGIPublisher, line 68, in call_object
Module zope.browserpage.simpleviewclass, line 44, in call
Module Products.Five.browser.pagetemplatefile, line 126, in call
Module Products.Five.browser.pagetemplatefile, line 58, in call
Module zope.pagetemplate.pagetemplate, line 134, in pt_render
Module Products.PageTemplates.engine, line 365, in call
Module z3c.pt.pagetemplate, line 174, in render
Module chameleon.zpt.template, line 331, in render
Module chameleon.template, line 217, in render
Module chameleon.utils, line 20, in raise_with_traceback
Module chameleon.template, line 193, in render
Module e76bf2a260e55e66c0b0177753df8384, line 319, in render
Module c62bd94964c8706ac6a755144b020f8b, line 513, in render_master
Module zope.contentprovider.tales, line 76, in call
Module zope.viewlet.manager, line 157, in update
Module zope.viewlet.manager, line 163, in _updateViewlets
Module Products.CMFPlone.resources.browser.resource, line 257, in update
Module webresource._api, line 718, in render
Module webresource._api, line 719, in
Module webresource._api, line 382, in render
Module webresource._api, line 215, in resource_url
Module webresource._api, line 200, in unique_key
Module webresource._api, line 187, in file_hash
Module Products.CMFPlone.resources.webresource, line 22, in file_data
Module Products.CMFPlone.resources.utils, line 74, in get_resource
AttributeError: call

  • Expression: "provider:plone.scripts"
  • Filename: ... egg/Products/CMFPlone/browser/templates/main_template.pt
  • Location: (line 38: col 32)
  • Source: ... al:replace="structure provider:plone.scripts" />
    ^^^^^^^^^^^^^^^^^^^^^^
  • Expression: "context/@@main_template/macros/master"
  • Filename: ... egg/plone/app/contenttypes/browser/templates/document.pt
  • Location: (line 6: col 23)
  • Source: ... tal:use-macro="context/@@main_template/macros/master"
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  • Arguments: template: <Products.Five.browser.pagetemplatefile.ViewPageTemplateFile object at 0x7f401b0cff70>
    options: {}
    args: ()
    nothing: None
    modules: <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter object at 0x7f401f40c8e0>
    request: <WSGIRequest, URL=http://ipaddress/aptransco/internal-apps/internal-apps/document_view>
    view: <Products.Five.browser.metaconfigure.SimpleViewClass from /home/webadmin/classicui/eggs/plone.app.contenttypes-3.0.7-py3.8.egg/plone/app/contenttypes/browser/templates/document.pt object at 0x7f4011068ee0>
    context: <Document at /aptransco/internal-apps/internal-apps>
    views: <Products.Five.browser.pagetemplatefile.ViewMapper object at 0x7f401106bd60>
    here: <Document at /aptransco/internal-apps/internal-apps>
    container: <Document at /aptransco/internal-apps/internal-apps>
    root:
    traverse_subpath:
    user: <PropertiedUser 'admin'>
    default:
    repeat: <Products.PageTemplates.engine.RepeatDictWrapper object at 0x7f40110eb7c0>
    loop: {}
    target_language: None
    translate: <function BaseTemplate.render..translate at 0x7f4010d73a60>
    macroname: 'master'
    attrs: {}

I got the header and footer html content without css. But I cannot access any content from any webpage