Re: [Zope] database conflict error on startup - disabling Five

2008-12-01 Thread Dieter Maurer
Dylan Jay wrote at 2008-12-1 10:22 +1100:
 ...
 You are right. Almost surely, you see a Five bug: Five, too, should
 respect enable-product-installation.
 
 You can see the right transaction handling in
 OFS.Application.install_product' -- somewhere near the buttom of this
 function.
 Maybe, you correct Five accordingly.

I applied this guys patch which seems to have fixed the problem
http://archives.free.net.ph/message/20080516.100305.16f90017.en.html

He's asking if that is the right way to patch it. Is it? 

It looks not bad.

And if so what is the right way to get it into the Five 1.4 branch? 

Write a bug report, attach the patch and for a quicker response
inform a Five maintainer about the bug+solution.

I am not sure however, that this will be sufficient: Zope 2.9
is no longer an actively maintained version; maybe the maintainers
think there are more important tasks that to fix problems with
older versions.



-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] database conflict error on startup - disabling Five

2008-12-01 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dieter Maurer wrote:
 Dylan Jay wrote at 2008-12-1 10:22 +1100:
 ...
 You are right. Almost surely, you see a Five bug: Five, too, should
 respect enable-product-installation.

 You can see the right transaction handling in
 OFS.Application.install_product' -- somewhere near the buttom of this
 function.
 Maybe, you correct Five accordingly.
 I applied this guys patch which seems to have fixed the problem
 http://archives.free.net.ph/message/20080516.100305.16f90017.en.html

 He's asking if that is the right way to patch it. Is it? 
 
 It looks not bad.
 
 And if so what is the right way to get it into the Five 1.4 branch? 
 
 Write a bug report, attach the patch and for a quicker response
 inform a Five maintainer about the bug+solution.
 
 I am not sure however, that this will be sufficient: Zope 2.9
 is no longer an actively maintained version; maybe the maintainers
 think there are more important tasks that to fix problems with
 older versions.

It is true that we are unlikely to make another 2.9.x release, absent a
 serious security bug.  However, in Zope 2.9, the Five product was
maintained as an SVN external:  the branch currently points to:
svn://svn.zope.org/repos/main/Products.Five/tags/1.3.11

I could certainly see shipping a 1.3.12 version of the product (or a
1.4.5), which people could then install in their $INSTANCE_HOME,
overriding the one in $SOFTWARE_HOME.  In fact, the changelog on the 1.4
branch seems to indicate that there is fix for the same problem already
checked in.


Tres.
- --
===
Tres Seaver  +1 540-429-0999  [EMAIL PROTECTED]
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJNDRq+gerLs4ltQ4RAjW7AJ0ccCbDcR4Qu0OA1U4ysYOh5Xzn9gCcDCl6
IsBWY1Rfod6g01zZDSoPfmk=
=0JmR
-END PGP SIGNATURE-

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] database conflict error on startup - disabling Five

2008-11-30 Thread Dieter Maurer
Dylan Jay wrote at 2008-11-30 08:46 +1100:
 ...
 When you have a multi ZEO client setup, you should have a single
 client distinguished responsible to keep Control_Panel/products
 up to date. There is a configuration option for this (*enable*product*).
 Set it to on in this distinguished client and to off in all others.
 This avoids ConflictErrors during startup.

Thanks for the tip but it didn't solve the problem. 
The conflict error is coming from Five zcml registration steps so I guess
enable-product-installation off doesn't help with that.

You are right. Almost surely, you see a Five bug: Five, too, should
respect enable-product-installation.

You can see the right transaction handling in
OFS.Application.install_product' -- somewhere near the buttom of this
function.
Maybe, you correct Five accordingly.


Any idea why this is happening to me
and doesn't seem to be a common problem
others come across?

ConflictErrors are apparently nondeterministic errors -- they
only occur when concurrent transactions conflict with one another.

Apparently, in your setup, the conflict probability is especially
high (maybe because it is especially expensive to register your
package).

In principle, others are threatened as well if the are using
registerPackage.


I do not have Zope 2.9 with its Five. In Zope 2.11, the Five code
appears to have been cleaned up. This means, upgrading to Zope 2.11
may be another option for you.



-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] database conflict error on startup - disabling Five

2008-11-29 Thread Dieter Maurer
djay75 wrote at 2008-11-26 15:38 -0800:

Hi, I'm getting the following error during startup of a zeo with 3 instances.
It doesn't happen with one instance. It's zope2.9.8, plone 2.5 and the Five
1.4 svn branch.

I thought the Five svn branch might help based on this thread
http://archives.free.net.ph/message/20080520.172500.38ab3445.en.html 
but no luck. 

2008-11-25T00:37:49 ERROR Zope Couldn't install Five
Traceback (most recent call last):
  File c:\zope\2.9.8\Zope\lib\python\OFS\Application.py, line 783, in
install_product
initmethod(context)
 ...
self._commit(transaction)
  File c:\zope\2.9.8\Zope\lib\python\ZODB\Connection.py, line 518, in
_commit
raise ConflictError(object=obj)
ConfigurationExecutionError: ZODB.POSException.ConflictError: database
conflict error (oid 0x1338, class App.Product.Product)

The Zope startup process is very sensible for exceptions of all
kinds (at least in debug mode, in production mode they are ignored),
including ConflictError. Unlike during normal operation, there
is no retry after a ConflictError.

When you have a multi ZEO client setup, you should have a single
client distinguished responsible to keep Control_Panel/products
up to date. There is a configuration option for this (*enable*product*).
Set it to on in this distinguished client and to off in all others.
This avoids ConflictErrors during startup.



-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] database conflict error on startup - disabling Five

2008-11-26 Thread djay75

Hi, I'm getting the following error during startup of a zeo with 3 instances.
It doesn't happen with one instance. It's zope2.9.8, plone 2.5 and the Five
1.4 svn branch.

I thought the Five svn branch might help based on this thread
http://archives.free.net.ph/message/20080520.172500.38ab3445.en.html 
but no luck. 

2008-11-25T00:37:49 ERROR Zope Couldn't install Five
Traceback (most recent call last):
  File c:\zope\2.9.8\Zope\lib\python\OFS\Application.py, line 783, in
install_product
initmethod(context)
  File c:\zope\Plone\parts\productsvn\Five\__init__.py, line 31, in
initialize
zcml.load_site()
  File c:\zope\Plone\parts\productsvn\Five\zcml.py, line 41, in load_site
_context = xmlconfig.file(file)
  File c:\zope\2.9.8\Zope\lib\python\zope\configuration\xmlconfig.py, line
560, in file
context.execute_actions()
  File c:\zope\2.9.8\Zope\lib\python\zope\configuration\config.py, line
612, in execute_actions
callable(*args, **kw)
  File c:\zope\Plone\parts\productsvn\Five\fiveconfigure.py, line 289, in
_registerPackage
transaction.commit()
  File c:\zope\2.9.8\Zope\lib\python\transaction\_manager.py, line 96, in
commit
return self.get().commit(sub, deprecation_wng=False)
  File c:\zope\2.9.8\Zope\lib\python\transaction\_transaction.py, line
380, in commit
self._saveCommitishError() # This raises!
  File c:\zope\2.9.8\Zope\lib\python\transaction\_transaction.py, line
378, in commit
self._commitResources()
  File c:\zope\2.9.8\Zope\lib\python\transaction\_transaction.py, line
433, in _commitResources
rm.commit(self)
  File c:\zope\2.9.8\Zope\lib\python\ZODB\Connection.py, line 484, in
commit
self._commit(transaction)
  File c:\zope\2.9.8\Zope\lib\python\ZODB\Connection.py, line 518, in
_commit
raise ConflictError(object=obj)
ConfigurationExecutionError: ZODB.POSException.ConflictError: database
conflict error (oid 0x1338, class App.Product.Product)
  in:
  File
c:\zope\plone\src\pretaweb.obrien_theme\pretaweb\obrien_theme\configure.zcml,
line 8.2-8.63
five:registerPackage package=. initialize=.initialize /
-- 
View this message in context: 
http://www.nabble.com/database-conflict-error-on-startup---disabling-Five-tp20662464p20662464.html
Sent from the Zope - General mailing list archive at Nabble.com.

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )