[plonegov-br] RES: Erro na atualização da versão 1.0.3-1.5.3

Valdir Nascimento dos Santos valdirdpg em hotmail.com
Sexta Novembro 30 17:32:25 BRST 2018


Boa tarde, eu tive este problema, removi de eggs o brasil.gov.facetada e rodei novamente o bin/buildout. Isto resolveu o problema .

Valdir Nascimento dos Santos
 Contato: (71)3655-1920/991876875
http://lattes.cnpq.br/5335058652339052<https://wwws.cnpq.br/cvlattesweb/PKG_MENU.menu?f_cod=2D39828C45A1E98F0013B6F7314BBB9C#>
 Analista  de Tecnologia da Informa????o


Call
Send SMS
Call from mobile
Add to Skype
You'll need Skype CreditFree via Skype
________________________________
De: plonegov-br-bounces em listas.interlegis.gov.br <plonegov-br-bounces em listas.interlegis.gov.br> em nome de Denis Francis Assunçao da Silva <denis.silva em cgu.gov.br>
Enviado: sexta-feira, 30 de novembro de 2018 15:58
Para: Comunidade Plone no Governo
Assunto: [plonegov-br] RES: Erro na atualização da versão 1.0.3-1.5.3

Obrigado pela resposta, Héctor.

Consegui avançar com esse problema e a atualização inicial do Plone foi realizada, porém, apareceu outro erro relacionado com a busca facetada (ver a última linha do erro abaixo) quando tento executar o upgrade step do plone.app.contenttypes.
Você tem alguma ideia de como resolver isso? O estranho é que se eu adicionar o egg brasil.gov.facetada no buildout.cfg, a instância entra em loop e não consegue inicializar.

Mensagem de erro:
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 Products.GenericSetup.tool, line 1053, in manage_doUpgrades
Module Products.GenericSetup.upgrade, line 166, in doStep
Module plone.app.contenttypes.migration.dxmigration, line 47, in migrate_to_pa_event
Module plone.app.contenttypes.migration.dxmigration, line 26, in migrate
Module Products.contentmigration.basemigrator.walker, line 146, in go
Module Products.contentmigration.basemigrator.walker, line 225, in migrate
MigrationError: MigrationError for obj at /dados_portalcgu/PortalCGU/eventos/evento-1
(Event -> Event): Traceback (most recent call last): File "/backup/portalcgu.buildout/eggs/Products.contentmigration-2.1.19-py2.7.egg/Products/contentmigration/basemigrator/walker.py", line 194, in migrate migrator.migrate() File "/backup/portalcgu.buildout/eggs/plone.app.contenttypes-1.1.6-py2.7.egg/plone/app/contenttypes/migration/dxmigration.py", line 61, in migrate ContentMigrator.migrate(self) File "/backup/portalcgu.buildout/eggs/Products.contentmigration-2.1.19-py2.7.egg/Products/contentmigration/basemigrator/migrator.py", line 214, in migrate self.renameOld() File "/backup/portalcgu.buildout/eggs/Products.contentmigration-2.1.19-py2.7.egg/Products/contentmigration/basemigrator/migrator.py", line 481, in renameOld unrestricted_rename(self.parent, self.orig_id, self.old_id) File "/backup/portalcgu.buildout/eggs/Products.contentmigration-2.1.19-py2.7.egg/Products/contentmigration/common.py", line 119, in unrestricted_rename self._setObject(new_id, ob, set_owner=0) File "/backup/portalcgu.buildout/eggs/Products.BTreeFolder2-2.13.3-py2.7.egg/Products/BTreeFolder2/BTreeFolder2.py", line 455, in _setObject notify(ObjectAddedEvent(ob, self, id)) File "/backup/portalcgu.buildout/eggs/zope.event-3.5.2-py2.7.egg/zope/event/__init__.py", line 31, in notify subscriber(event) File "/backup/portalcgu.buildout/eggs/zope.component-3.9.5-py2.7.egg/zope/component/event.py", line 24, in dispatch zope.component.subscribers(event, None) File "/backup/portalcgu.buildout/eggs/zope.component-3.9.5-py2.7.egg/zope/component/_api.py", line 136, in subscribers return sitemanager.subscribers(objects, interface) File "/backup/portalcgu.buildout/eggs/zope.component-3.9.5-py2.7.egg/zope/component/registry.py", line 321, in subscribers return self.adapters.subscribers(objects, provided) File "/backup/portalcgu.buildout/eggs/zope.interface-3.6.7-py2.7-linux-x86_64.egg/zope/interface/adapter.py", line 585, in subscribers subscription(*objects) File "/backup/portalcgu.buildout/eggs/zope.component-3.9.5-py2.7.egg/zope/component/event.py", line 32, in objectEventNotify zope.component.subscribers((event.object, event), None) File "/backup/portalcgu.buildout/eggs/zope.component-3.9.5-py2.7.egg/zope/component/_api.py", line 136, in subscribers return sitemanager.subscribers(objects, interface) File "/backup/portalcgu.buildout/eggs/zope.component-3.9.5-py2.7.egg/zope/component/registry.py", line 321, in subscribers return self.adapters.subscribers(objects, provided) File "/backup/portalcgu.buildout/eggs/zope.interface-3.6.7-py2.7-linux-x86_64.egg/zope/interface/adapter.py", line 585, in subscribers subscription(*objects) File "/backup/portalcgu.buildout/eggs/plone.app.versioningbehavior-1.2.10-py2.7.egg/plone/app/versioningbehavior/subscribers.py", line 62, in create_version_on_save pr.save(obj=context, comment=changeNote) File "/backup/portalcgu.buildout/eggs/Products.CMFEditions-2.2.23-py2.7.egg/Products/CMFEditions/CopyModifyMergeRepositoryTool.py", line 299, in save sp = transaction.savepoint(optimistic=True) File "/backup/portalcgu.buildout/eggs/transaction-1.1.1-py2.7.egg/transaction/_manager.py", line 101, in savepoint return self.get().savepoint(optimistic) File "/backup/portalcgu.buildout/eggs/transaction-1.1.1-py2.7.egg/transaction/_transaction.py", line 260, in savepoint self._saveAndRaiseCommitishError() # reraises! File "/backup/portalcgu.buildout/eggs/transaction-1.1.1-py2.7.egg/transaction/_transaction.py", line 257, in savepoint savepoint = Savepoint(self, optimistic, *self._resources) File "/backup/portalcgu.buildout/eggs/transaction-1.1.1-py2.7.egg/transaction/_transaction.py", line 690, in __init__ savepoint = savepoint() File "/backup/portalcgu.buildout/eggs/ZODB3-3.10.7-py2.7-linux-x86_64.egg/ZODB/Connection.py", line 1125, in savepoint self._commit(None) File "/backup/portalcgu.buildout/eggs/ZODB3-3.10.7-py2.7-linux-x86_64.egg/ZODB/Connection.py", line 623, in _commit self._store_objects(ObjectWriter(obj), transaction) File "/backup/portalcgu.buildout/eggs/ZODB3-3.10.7-py2.7-linux-x86_64.egg/ZODB/Connection.py", line 658, in _store_objects p = writer.serialize(obj) # This calls __getstate__ of obj File "/backup/portalcgu.buildout/eggs/ZODB3-3.10.7-py2.7-linux-x86_64.egg/ZODB/serialize.py", line 422, in serialize return self._dump(meta, obj.__getstate__()) File "/backup/portalcgu.buildout/eggs/ZODB3-3.10.7-py2.7-linux-x86_64.egg/ZODB/serialize.py", line 431, in _dump self._p.dump(state)
PicklingError: Can't pickle <class 'brasil.gov.facetada.interfaces.IBrowserLayer'>: import of module brasil.gov.facetada.interfaces failed

-----Mensagem original-----
De: plonegov-br-bounces em listas.interlegis.gov.br [mailto:plonegov-br-bounces em listas.interlegis.gov.br] Em nome de Héctor Velarde
Enviada em: sexta-feira, 30 de novembro de 2018 11:52
Para: plonegov-br em listas.interlegis.gov.br
Assunto: Re: [plonegov-br] Erro na atualização da versão 1.0.3-1.5.3

bom dia, Denis; o erro acontece neste código:

https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fplone%2Fplone.app.vocabularies%2Fblob%2F2.1.25%2Fplone%2Fapp%2Fvocabularies%2Fsyndication.py%23L45-L65&data=02%7C01%7C%7C5d00f84d7cf9430d739908d656ed8a08%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636791975563631403&sdata=xhm93qrAbvHbZ95GfGBX0UbzLbOnDxtO8wUpHWP9%2Bfw%3D&reserved=0

da para ver que tem uma busca de Folder e Collection e isso indica que tem um item com UUID duplicado.

a melhor opção nesse caso é rodar o collective.catalogcleanup; adiciona o seguinte no teu buildout:

[buildout]
eggs +=
     collective.catalogcleanup

roda o buildout e reinicia as instancias; uma view chamada de @@collective-catalogcleanup vai ficar disponível na raiz do site.

isso ai roda vários processos de limpeza que são bem mais rápidos que fazer um Clear and Rebuild do catálogo; tem mais informação sobre seu uso aqui:

https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpypi.org%2Fproject%2Fcollective.catalogcleanup%2F&data=02%7C01%7C%7C5d00f84d7cf9430d739908d656ed8a08%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636791975563631403&sdata=DEqHnRxafFJBeGzxIXnmOSuk9JSx%2FcdNZkQfWBFjiow%3D&reserved=0

caso de dúvidas, não hesites em perguntar por aqui.

atenciosamente,

Héctor Velarde



--
Comunidade Plone no Governo
Site: https://eur04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.softwarelivre.gov.br%2Fplone&data=02%7C01%7C%7C5d00f84d7cf9430d739908d656ed8a08%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636791975563631403&sdata=StRW4jhhqyOJO5blg6QKTOZ7a9hcnF%2Fts2xRJtNec1o%3D&reserved=0
Wiki: https://eur04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcolab.interlegis.leg.br%2Fwiki%2FPloneGovBr&data=02%7C01%7C%7C5d00f84d7cf9430d739908d656ed8a08%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636791975563631403&sdata=vMYCV5%2FU56E07uHHv2PXSQQXLw5TVXD%2BwiEIibwjTzc%3D&reserved=0
Histórico: https://eur04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcolab.interlegis.leg.br%2Fsearch%2F%3Ftype%3Dthread%26order%3Dlatest%26list%3Dplonegov-br&data=02%7C01%7C%7C5d00f84d7cf9430d739908d656ed8a08%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636791975563631403&sdata=Mik6LiyN0YharZK4KkrJ7aNM2oKDFk9r1ALiCj%2BiqaQ%3D&reserved=0
Lista: https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistas.interlegis.gov.br%2Fmailman%2Flistinfo%2Fplonegov-br&data=02%7C01%7C%7C5d00f84d7cf9430d739908d656ed8a08%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636791975563631403&sdata=byr2LVa%2FUmVN1WeSp9D1lDzHX7SDyGtKPjHKf6QCo%2Bo%3D&reserved=0
Esta mensagem, incluindo quaisquer anexos, é de acesso restrito e destina-se, exclusivamente, à pessoa ou entidade para a qual foi endereçada. Se você a recebeu indevidamente, por favor, elimine-a e informe o equívoco ao emitente imediatamente. O uso não autorizado do conteúdo da mensagem ou anexos é proibido e sujeita o infrator às penalidades cabíveis.

--
Comunidade Plone no Governo
Site: https://eur04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.softwarelivre.gov.br%2Fplone&data=02%7C01%7C%7C5d00f84d7cf9430d739908d656ed8a08%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636791975563631403&sdata=StRW4jhhqyOJO5blg6QKTOZ7a9hcnF%2Fts2xRJtNec1o%3D&reserved=0
Wiki: https://eur04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcolab.interlegis.leg.br%2Fwiki%2FPloneGovBr&data=02%7C01%7C%7C5d00f84d7cf9430d739908d656ed8a08%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636791975563631403&sdata=vMYCV5%2FU56E07uHHv2PXSQQXLw5TVXD%2BwiEIibwjTzc%3D&reserved=0
Histórico: https://eur04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcolab.interlegis.leg.br%2Fsearch%2F%3Ftype%3Dthread%26order%3Dlatest%26list%3Dplonegov-br&data=02%7C01%7C%7C5d00f84d7cf9430d739908d656ed8a08%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636791975563631403&sdata=Mik6LiyN0YharZK4KkrJ7aNM2oKDFk9r1ALiCj%2BiqaQ%3D&reserved=0
Lista: https://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistas.interlegis.gov.br%2Fmailman%2Flistinfo%2Fplonegov-br&data=02%7C01%7C%7C5d00f84d7cf9430d739908d656ed8a08%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636791975563631403&sdata=byr2LVa%2FUmVN1WeSp9D1lDzHX7SDyGtKPjHKf6QCo%2Bo%3D&reserved=0
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: <http://listas.interlegis.gov.br/pipermail/plonegov-br/attachments/20181130/47ef5ded/attachment.html>


Mais detalhes sobre a lista de discussão PloneGov-BR