[Zope-dev] Re: strange zope.conf problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Miles wrote: > I have a site running Zope 2.9.6 which thinks it is running in debug mode. > > I've tried putting debug-mode off in the zope.conf, and also leaving out > the line about debug-mode completely, but neither work - the site still > believes it is running in debug mode! > > As far as I can see, it appears that it is using the > DefaultConfiguration from App.config - certainly changing debug mode > there from True to False solved the problem. However, I could not find > where in the code the configuration was explicitly loaded on startup in > order to verify what was going on. Any ideas where this might be? And > what might be the root cause of it (it is fine on other machines that > have been built using the same script). > > Also, I was finding it hard to debug the problem as to get any > output/use pdb, I have to start the site in debug mode anyway! Any > ideas for how I can trace through the startup code much appreciated...! How are you starting Zope? The 'fg' command of 'zopectl' forces debug mode to be on; you need 'start' to run without that. Tres. - -- === Tres Seaver +1 540-429-0999 [EMAIL PROTECTED] Palladion Software "Excellence by Design"http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGXcKg+gerLs4ltQ4RAlBxAKDSEAbxZZ3AbKNVIDeLZEO4asJTJQCeNl0C s5vPe7JIMAky1ABC/F2NWN0= =mjrh -END PGP SIGNATURE- ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] strange zope.conf problem
Miles wrote at 2007-5-30 16:45 +0100: > ... >As far as I can see, it appears that it is using the >DefaultConfiguration from App.config - certainly changing debug mode >there from True to False solved the problem. However, I could not find >where in the code the configuration was explicitly loaded on startup in >order to verify what was going on. Strange. Usually, the "DefaultConfiguration" is used only when no configuration file is read (e.g. during the test suite). When the configuration file is read, is uses "App.config.setConfiguration" to update the used configuration away from "DefaultConfiguration" to the read in configuration. This happens in "Zope2.Startup.run._setconfig". -- Dieter ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] strange zope.conf problem
Hi, I have a site running Zope 2.9.6 which thinks it is running in debug mode. I've tried putting debug-mode off in the zope.conf, and also leaving out the line about debug-mode completely, but neither work - the site still believes it is running in debug mode! As far as I can see, it appears that it is using the DefaultConfiguration from App.config - certainly changing debug mode there from True to False solved the problem. However, I could not find where in the code the configuration was explicitly loaded on startup in order to verify what was going on. Any ideas where this might be? And what might be the root cause of it (it is fine on other machines that have been built using the same script). Also, I was finding it hard to debug the problem as to get any output/use pdb, I have to start the site in debug mode anyway! Any ideas for how I can trace through the startup code much appreciated...! Thanks, Miles ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Zope Tests: 5 OK
Summary of messages to the zope-tests list. Period Tue May 29 12:00:00 2007 UTC to Wed May 30 12:00:00 2007 UTC. There were 5 messages: 5 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2.7 Python-2.3.6 : Linux From: Zope Unit Tests Date: Tue May 29 20:51:40 EDT 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-May/007804.html Subject: OK : Zope-2.8 Python-2.3.6 : Linux From: Zope Unit Tests Date: Tue May 29 20:53:10 EDT 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-May/007805.html Subject: OK : Zope-2.9 Python-2.4.4 : Linux From: Zope Unit Tests Date: Tue May 29 20:54:41 EDT 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-May/007806.html Subject: OK : Zope-2.10 Python-2.4.4 : Linux From: Zope Unit Tests Date: Tue May 29 20:56:12 EDT 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-May/007807.html Subject: OK : Zope-trunk Python-2.4.4 : Linux From: Zope Unit Tests Date: Tue May 29 20:57:45 EDT 2007 URL: http://mail.zope.org/pipermail/zope-tests/2007-May/007808.html ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Re: [ZODB-Dev] Re: [Bug] ZODB invalidation processing
Andreas Jung schrieb: --On 28. Mai 2007 21:12:13 +0200 Andreas Jung <[EMAIL PROTECTED]> wrote: --On 28. Mai 2007 20:03:47 +0200 Joachim Schmitz <[EMAIL PROTECTED]> wrote: Joachim Schmitz schrieb: ConflictError: database conflict error (oid 0x7fd771, class BTrees._IOBTree.IOBucket, serial this txn started with 0x036deefe18489244 2007-05-28 17:34:05.691441, serial currently committed 0x036def009207e011 2007-05-28 17:36:34.225960) -- How can I find out, which objects are really involved in the conflict. from ZODB.utils import p64 print app._p_jar[p64(some_oid)] The oid is available from the traceback. If you are running ZEO it might be necessary to replace 'app' with the top-level (or some other object) of the related storage (might be tricky to figure out if you have multiple storages). Another trick that helped me lately to identify the reason for conflict errors was to implement the _p_resolveConflict() hook as method of the related class having the conflict. How would I do that for the Class _IOBTree, which is in a c-module ? -- Gruß Joachim ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )