Reindex of catalog - keep getting ConflictErrors ?
Hello, I have a ZCatalog (in the shape of a portal_catalog in CMF). Everytime I go to the Advanced tab and tries to reindex the catalog, I get this error and traceback: ZODB.POSException.ConflictError Sorry, a site error occurred. Traceback (innermost last): * Module ZPublisher.Publish, line 150, in publish_module * Module Products.Localizer, line 58, in new_publish * Module ZPublisher.Publish, line 127, in publish * Module Products.Localizer, line 58, in new_publish * Module ZPublisher.Publish, line 127, in publish * Module Products.Localizer, line 58, in new_publish * Module ZPublisher.Publish, line 127, in publish * Module Products.Localizer, line 58, in new_publish * Module ZPublisher.Publish, line 122, in publish * Module Zope.App.startup, line 142, in zpublisher_exception_hook * Module ZPublisher.Publish, line 102, in publish * Module Zope.App.startup, line 200, in commit * Module ZODB.Transaction, line 235, in commit * Module ZODB.Transaction, line 349, in _commit_objects * Module ZODB.Connection, line 391, in commit __traceback_info__: (('Products.Transience.Transience', 'Increaser'), '\x00\x00\x00\x00\x00\x00\x00\x06', '') * Module Products.TemporaryFolder.TemporaryStorage, line 134, in store ConflictError: database conflict error (oid 0000000000000006, serial was 0350b50baca92b4c, now 0350b50a6e739abb) Why is that ? -- Gitte Wange Technical Manager Email: gitte@mmmanager.org Web: http://www.mmmanager.org Tlf: +45 36 46 20 02 It starts as a benign web server with online content management... and turns into an insidious learning curve that will destroy your every waking hour. That is, until you uncover the secret that lets you do what you wanted it to in the first place. -- somebody describing the Zope experience to Jon Udell
Gitte Wange wrote at 2003-10-31 15:37 +0100:
I have a ZCatalog (in the shape of a portal_catalog in CMF). Everytime I go to the Advanced tab and tries to reindex the catalog, I get this error and traceback: ZODB.POSException.ConflictError Sorry, a site error occurred.
Traceback (innermost last):
... * Module ZODB.Transaction, line 235, in commit * Module ZODB.Transaction, line 349, in _commit_objects * Module ZODB.Connection, line 391, in commit __traceback_info__: (('Products.Transience.Transience', 'Increaser'), '\x00\x00\x00\x00\x00\x00\x00\x06', '') * Module Products.TemporaryFolder.TemporaryStorage, line 134, in store
ConflictError: database conflict error (oid 0000000000000006, serial was 0350b50baca92b4c, now 0350b50a6e739abb)
Why is that ?
Indeed: why does your "reindex catalog" write to a session? Someone else does, too. This gives you a ConflictError. -- Dieter
At 22:55 31-10-2003, you wrote:
Gitte Wange wrote at 2003-10-31 15:37 +0100:
I have a ZCatalog (in the shape of a portal_catalog in CMF). Everytime I go to the Advanced tab and tries to reindex the catalog, I get this error and traceback: ZODB.POSException.ConflictError
[SNIP error traceback]
ConflictError: database conflict error (oid 0000000000000006, serial was 0350b50baca92b4c, now 0350b50a6e739abb)
Why is that ?
Indeed: why does your "reindex catalog" write to a session?
Someone else does, too. This gives you a ConflictError.
Thanks Dieter - at least I know what's causing the error. Now I only need to find out why :-) The error has been introduced after I switched to use PluggableUserFolder with my own SessionLogin plugin - maybe I should start to look for the cause there. Why the reindexing tries to write to a session is a very good question - I actually have no idea. Hmmm ... any good hints on how to debug this? (Would be nice to know *what* it's trying to write to the session) Greetings, Gitte Wange
Gitte Wange wrote at 2003-11-1 00:01 +0100:
At 22:55 31-10-2003, you wrote:
Gitte Wange wrote at 2003-10-31 15:37 +0100:
I have a ZCatalog (in the shape of a portal_catalog in CMF). Everytime I go to the Advanced tab and tries to reindex the catalog, I get this error and traceback: ZODB.POSException.ConflictError
[SNIP error traceback]
ConflictError: database conflict error (oid 0000000000000006, serial was 0350b50baca92b4c, now 0350b50a6e739abb)
Why is that ?
Indeed: why does your "reindex catalog" write to a session?
Someone else does, too. This gives you a ConflictError.
Thanks Dieter - at least I know what's causing the error. Now I only need to find out why :-)
The error has been introduced after I switched to use PluggableUserFolder with my own SessionLogin plugin - maybe I should start to look for the cause there.
Do you write into the session? Even if you only read it, it may cause the problem. Reading a session resets its timeout and therefore entails writing. -- Dieter
Onsdag 05 november 2003 10:16 skrev du:
Gitte Wange wrote at 2003-11-1 00:01 +0100:
At 22:55 31-10-2003, you wrote:
Gitte Wange wrote at 2003-10-31 15:37 +0100:
I have a ZCatalog (in the shape of a portal_catalog in CMF). Everytime I go to the Advanced tab and tries to reindex the catalog, I
get
this error and traceback: ZODB.POSException.ConflictError
[SNIP error traceback]
ConflictError: database conflict error (oid 0000000000000006, serial was 0350b50baca92b4c, now 0350b50a6e739abb)
Why is that ?
Indeed: why does your "reindex catalog" write to a session?
Someone else does, too. This gives you a ConflictError.
Thanks Dieter - at least I know what's causing the error. Now I only need to find out why :-)
The error has been introduced after I switched to use PluggableUserFolder with my own SessionLogin plugin - maybe I should start to look for the cause there.
Do you write into the session?
Even if you only read it, it may cause the problem. Reading a session resets its timeout and therefore entails writing.
Thanks for clearing that out :-) I guess something in my identification mechanism went wrong - I had made it create a user object even if the username didn't exists. Fixing that bug also fixed the catalog bug :-) -- Gitte Wange Technical Manager Email: gitte@mmmanager.org Web: http://www.mmmanager.org Tlf: +45 36 46 20 02
We'll tell you when we try out the code you've written ;-) Ahha, the classic open-source sanity pill/ thorn in my side.... What You Want Is What You Should Code Yourself ( WYWIWYSCY )
-- Tom Smith: Zope Mailing List, About using ZODB as ODBC data source.
participants (2)
-
Dieter Maurer -
Gitte Wange