Error when install / uninstall any addon or upgrade step

Hi everyone, i got an error when trying to install or uninstall any addon or upgrade step on plone 6.

The error log:

Traceback (innermost last):
  Module ZPublisher.WSGIPublisher, line 181, in transaction_pubevents
  Module ZPublisher.WSGIPublisher, line 390, in publish_module
  Module ZPublisher.WSGIPublisher, line 285, in publish
  Module ZPublisher.mapply, line 85, in mapply
  Module ZPublisher.WSGIPublisher, line 68, in call_object
  Module Products.CMFPlone.controlpanel.browser.quickinstaller, line 544, in __call__
  Module Products.CMFPlone.controlpanel.browser.quickinstaller, line 310, in install_product
  Module Products.GenericSetup.tool, line 393, in runAllImportStepsFromProfile
   - __traceback_info__: profile-plone.app.multilingual:default
  Module Products.GenericSetup.tool, line 1504, in _runImportStepsFromContext
  Module Products.GenericSetup.tool, line 1316, in _doRunImportStep
   - __traceback_info__: catalog
  Module Products.CMFCore.exportimport.catalog, line 34, in importCatalogTool
  Module Products.GenericSetup.utils, line 913, in importObjects
   - __traceback_info__: portal_catalog
  Module Products.GenericSetup.utils, line 516, in _importBody
  Module Products.GenericSetup.ZCatalog.exportimport, line 69, in _importNode
  Module Products.GenericSetup.ZCatalog.exportimport, line 146, in _initColumns
  Module Products.ZCatalog.ZCatalog, line 888, in addColumn
  Module Products.ZCatalog.Catalog, line 184, in addColumn
  Module Products.ZCatalog.ProgressHandler, line 55, in report
  Module transaction._manager, line 272, in savepoint
  Module transaction._manager, line 150, in savepoint
  Module transaction._transaction, line 229, in savepoint
  Module transaction._transaction, line 317, in _saveAndRaiseCommitishError
  Module transaction._compat, line 50, in reraise
  Module transaction._transaction, line 226, in savepoint
  Module transaction._transaction, line 627, in __init__
  Module ZODB.Connection, line 994, in savepoint
  Module ZODB.Connection, line 545, in _commit
  Module ZODB.Connection, line 576, in _store_objects
  Module ZODB.serialize, line 434, in serialize
  Module ZODB.serialize, line 443, in _dump
_pickle.PicklingError: Can't pickle <class 'pas.plugins.authomatic.interfaces.IPasPluginsAuthomaticLayer'>: import of module 'pas.plugins.authomatic.interfaces' fail

Plone version: 6.0.5(6016)

Someone can help me or suggest a tip?

Fabricio C. Guedes via Plone Community wrote at 2024-8-14 16:45 +0000:

The error log:

Traceback (innermost last):
...
 Module ZODB.serialize, line 443, in _dump
_pickle.PicklingError: Can't pickle <class 'pas.plugins.authomatic.interfaces.IPasPluginsAuthomaticLayer'>: import of module 'pas.plugins.authomatic.interfaces' fail

Your ZODB contains an object referencing a interface for which
you have removed the code (-->
"pas.plugins.authomatic.interfaces.IPasPluginsAuthomaticLayer").

You can get rid of the problem by reproviding the code
(the easiest solution).
You could try the extension product wildcard.fixpersistentregistries
(or similarly named) to work around (and maybe fix) the problem.
You can use low level API to remove the problematic objects
(usually very expensive).

Always remove objects from the ZODB before you remove code
used by those objects.

I forget to uninstall the pas.plugins.authomatic from plone interface, i just added to project again and uninstall them.

Thanks for helping.