Re: [Zope] ZServer uncaptured python exception
- Original Message - From: "Allen Schmidt Sr." <[EMAIL PROTECTED]> To: "Zope Users" Sent: Tuesday, April 01, 2008 10:11 AM Subject: [Zope] ZServer uncaptured python exception Running logtail on a ZEO client, I am seeing lots of these. And our two public clients are pegging the server at 99% almost continuously. Not sure why. 2008-04-01T09:54:09 ERROR(200) ZServer uncaptured python exception, closing channel 8.7.96.136:56350 at 0xb63d7a6c channel#: 800 requests:4> (socket.error:(104, 'Connection reset by peer') [/usr/local/lib/python2.3/asynchat.py|initiate_send|218] [/var/www/zope/zope275c2/lib/python/ZServer/medusa/http_server.py|send|417] [/usr/local/lib/python2.3/asyncore.py|send|337]) -- 2008-04-01T09:54:17 ERROR(200) ZServer uncaptured python exception, closing channel 8.7.96.136:56590 at 0xb26898ac channel#: 890 requests:> (socket.error:(104, 'Connection reset by peer') [/usr/local/lib/python2.3/asynchat.py|initiate_send|218] [/var/www/zope/zope275c2/lib/python/ZServer/medusa/http_server.py|send|417] [/usr/local/lib/python2.3/asyncore.py|send|337]) I am not sure that the error messages you are seeing are related to your high cpu utilization. There is a discussion thread on your error here: http://aspn.activestate.com/ASPN/Mail/Message/zope-list/3492748 If you google 'debug spinning zope' you will find links on how to track down cpu consumption. HTH Jonathan ___ 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] ZServer uncaptured python exception
Running logtail on a ZEO client, I am seeing lots of these. And our two public clients are pegging the server at 99% almost continuously. Not sure why. 2008-04-01T09:54:09 ERROR(200) ZServer uncaptured python exception, closing channel 8.7.96.136:56350 at 0xb63d7a6c channel#: 800 requests:4> (socket.error:(104, 'Connection reset by peer') [/usr/local/lib/python2.3/asynchat.py|initiate_send|218] [/var/www/zope/zope275c2/lib/python/ZServer/medusa/http_server.py|send|417] [/usr/local/lib/python2.3/asyncore.py|send|337]) -- 2008-04-01T09:54:17 ERROR(200) ZServer uncaptured python exception, closing channel 8.7.96.136:56590 at 0xb26898ac channel#: 890 requests:> (socket.error:(104, 'Connection reset by peer') [/usr/local/lib/python2.3/asynchat.py|initiate_send|218] [/var/www/zope/zope275c2/lib/python/ZServer/medusa/http_server.py|send|417] [/usr/local/lib/python2.3/asyncore.py|send|337]) -- Allen ___ 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] worldcookery.com five tutorial ploneconf05 - AttributeError: DateTime instance has no __call__ method...
Hi Been following this turorial at: http://worldcookery.com/files/ploneconf05-five/index.html Using Plone 3.0.6. and Zope 2.10.5 and trying to view http://localhost:8080/portal/news/atom.xml leads me to the below error. Plone 3 thing? Module zope.tales.tales, line 696, in evaluate - URL: index - Line 22, Column 3 - Expression: - Names: {'container': , 'context': , 'default': , 'here': , 'loop': {u'obj': }, 'nothing': None, 'options': {'args': (,)}, 'repeat': , 'request': http://localhost:8080/portal/news/atom.xml>, 'root': , 'template': , 'traverse_subpath': [], 'user': , 'view': , 'views': } Module zope.tales.pythonexpr, line 59, in __call__ - __traceback_info__: (obj.modified().HTML4()) Module , line 0, in ? AttributeError: DateTime instance has no __call__ method -- michael ___ 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] ZSyncer & Zope 2.10
On Mon, Mar 31, 2008 at 09:41:11AM -0400, Craig Chasseur wrote: > Hello All, > > We've recently completed an upgrade to Zope 2.10.5 on one of our servers and > we've begun to encounter problems with ZSyncer. We use ZSyncer to synchronize > objects between this server and another running Zope 2.9.8 (both have ZSyncer > 0.7.1 installed). When attempting to "put" folders from the 2.10 server to > the 2.9 server, the process hangs and nothing is transferred. However, when > we attempt to put individual objects, we are successful. > > Does anyone know what might be the cause of this issue? ZSyncer 0.7.1, which > is the latest release, claims that it may not be compatible with Zope 2.9 and > up, but we were able to use it successfully before this most recent upgrade > to 2.10. If anyone is aware of a fix or a workaround, or simply has an > insight into why this breaks for us, I would greatly appreciate the help. I've never tried ZSyncer with Zope 2.10; I don't have any guesses what your problem is. Have you tried syncing between two 2.10 instances? In general, you move data from 2.X to 2.X-1 at your own risk, whether using ZSyncer or the import/export tab in the ZMI. I've been the "official" ZSyncer maintainer for about 5 years now, but honestly I've barely touched it since 2005, since in its current state it works well enough on the rare occasions that I need it. If somebody else cares enough about ZSyncer to maintain it, please contact me. Otherwise, to be crassly honest, I'm unlikely to do any ZSyncer-related work unless somebody pays me to do so. -- Paul Winkler http://www.slinkp.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 )
Re: [Zope] ZServer uncaptured python exception
That makes sense...but I think they are still related, sort of. The thread you offered says the error comes from clients disconnecting...hitting the stop button or loading a different page...effectively doing the same thing. But they are hitting the stop button BECAUSE the site is slow and spinning. I have Deadlockdebugger and that shows a variety of things. Mostly that all 4 threads are always full. I will keep looking. Allen Jonathan wrote: - Original Message - From: "Allen Schmidt Sr." <[EMAIL PROTECTED]> To: "Zope Users" Sent: Tuesday, April 01, 2008 10:11 AM Subject: [Zope] ZServer uncaptured python exception Running logtail on a ZEO client, I am seeing lots of these. And our two public clients are pegging the server at 99% almost continuously. Not sure why. 2008-04-01T09:54:09 ERROR(200) ZServer uncaptured python exception, closing channel 8.7.96.136:56350 at 0xb63d7a6c channel#: 800 requests:4> (socket.error:(104, 'Connection reset by peer') [/usr/local/lib/python2.3/asynchat.py|initiate_send|218] [/var/www/zope/zope275c2/lib/python/ZServer/medusa/http_server.py|send|417] [/usr/local/lib/python2.3/asyncore.py|send|337]) -- 2008-04-01T09:54:17 ERROR(200) ZServer uncaptured python exception, closing channel 8.7.96.136:56590 at 0xb26898ac channel#: 890 requests:> (socket.error:(104, 'Connection reset by peer') [/usr/local/lib/python2.3/asynchat.py|initiate_send|218] [/var/www/zope/zope275c2/lib/python/ZServer/medusa/http_server.py|send|417] [/usr/local/lib/python2.3/asyncore.py|send|337]) I am not sure that the error messages you are seeing are related to your high cpu utilization. There is a discussion thread on your error here: http://aspn.activestate.com/ASPN/Mail/Message/zope-list/3492748 If you google 'debug spinning zope' you will find links on how to track down cpu consumption. HTH Jonathan ___ 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 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] Re: Problem with WebDAV and non-ascii titles
Dieter Maurer wrote: Pawel Lewicki wrote at 2008-3-28 15:52 +0100: I have a problem with accessing files with non-ascii titles via Enfold Desktop (WebDAV)- Zope 2.10.4). Traceback (innermost last): Module ZPublisher.Publish, line 119, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 42, in call_object Module webdav.Resource, line 286, in PROPFIND Module webdav.davcmds, line 124, in apply Module OFS.PropertySheets, line 344, in dav__allprop UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 47: ordinal not in range(128) WebDAV is XML technology, therefore essentially unicode. Apparently, your "title"s are plain strings. Therefore, Python needs to convert them to unicode at the WebDAV boundary. Obviously, an encoding is necessary to do this -- and as no explicit encoding is given, Python's defaultencoding is used (which defaults to "ascii"). The most proper solution would be to make your "title"s unicode. If all your plain strings use a common encoding, then you can set Python's defaultencoding to this encoding. You must do that at startup (e.g. in "sitecustomize.py"), as "setdefaultencoding" is removed from "sys" after startup. Thanks a lot. --- ZOPE_INSTANCE/lib/python/sitecustomize.py : import sys sys.setdefaultencoding('utf-8') --- works like a charm. Pawel Lewicki ___ 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] worldcookery.com five tutorial ploneconf05 - AttributeError: DateTime instance has no __call__ method...
What if you change : 2000-01-01T12:00+00:00 to : 2000-01-01T12:00+00:00 ? (just a guess, because it says that obj.modified already is a DateTime instance) Hi Been following this turorial at: http://worldcookery.com/files/ploneconf05-five/index.html Using Plone 3.0.6. and Zope 2.10.5 and trying to view http://localhost:8080/portal/news/atom.xml leads me to the below error. Plone 3 thing? Module zope.tales.tales, line 696, in evaluate - URL: index - Line 22, Column 3 - Expression: - Names: {'container': , 'context': , 'default': , 'here': , 'loop': {u'obj': }, 'nothing': None, 'options': {'args': (,)}, 'repeat': , 'request': http://localhost:8080/portal/news/atom.xml>, 'root': , 'template': , 'traverse_subpath': [], 'user': , 'view': , 'views': } Module zope.tales.pythonexpr, line 59, in __call__ - __traceback_info__: (obj.modified().HTML4()) Module , line 0, in ? AttributeError: DateTime instance has no __call__ method -- Martijn Jacobs Four Digits, Internet Solutions a: Willemsplein 15-1 6811 KB Arnhem NL kvk: 09162137 | btw: 8161.22.234.B01 e-mail: [EMAIL PROTECTED] | web: http://www.fourdigits.nl tel: +31 (0)26 44 22 700 | fax: +31 (0)84 22 06 117 ___ 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] http://www.benjiyork.com/quick_start/ - tutorial - problems with...
Hi Seems to be a couple of problems with this tutorial: http://www.benjiyork.com/quick_start/ 1. Adding this to your configure.zcml doesn't add anything to the add item drop-down in Zope 2. When following all the steps exactly and going to http://localhost:8080/hello You get a resource not found. By the way the ...shouldn't that be ? Thanks -- michael ___ 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] merging zodb's
I have a zodb from a dead zope instance that I wanted to merge in to another running zope. I thought I could use a mount point to do this and just specify the old zodb for the storage in my mount point. alas, this did not work as expect. After making the modification in my zope.conf like this: # ssw file store path $INSTANCE/var/srvx-Data.fs mount-point /support And then restarting zope and adding the mount point -- I see nothing underneath it. So, I assume this is NOT a valid way to merge to zodb's together? Does anyone have an suggestions on a way I might combine 2 zodb's? -- David Bear College of Public Programs/ASU 411 N Central, Phoenix, AZ 85004 ___ 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] merging zodb's
On Apr 1, 2008, at 3:29 PM, David Bear wrote: I have a zodb from a dead zope instance that I wanted to merge in to another running zope. I thought I could use a mount point to do this and just specify the old zodb for the storage in my mount point. alas, this did not work as expect. After making the modification in my zope.conf like this: # ssw file store path $INSTANCE/var/srvx-Data.fs mount-point /support And then restarting zope and adding the mount point -- I see nothing underneath it. So, I assume this is NOT a valid way to merge to zodb's together? Does anyone have an suggestions on a way I might combine 2 zodb's? This is not well documented but I believe you can only mount a subitem from the database, not the root of the database. So rename the mount point to the name of the subitem you want to mount and I think it should work. Ric ___ 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] merging zodb's
- Original Message - From: "David Bear" <[EMAIL PROTECTED]> To: Sent: Tuesday, April 01, 2008 6:29 PM Subject: [Zope] merging zodb's I have a zodb from a dead zope instance that I wanted to merge in to another running zope. I thought I could use a mount point to do this and just specify the old zodb for the storage in my mount point. alas, this did not work as expect. After making the modification in my zope.conf like this: # ssw file store path $INSTANCE/var/srvx-Data.fs mount-point /support And then restarting zope and adding the mount point -- I see nothing underneath it. So, I assume this is NOT a valid way to merge to zodb's together? Does anyone have an suggestions on a way I might combine 2 zodb's? A shot in the dark, because I am not sure what you mean by "a dead zope instance"... Create an external method that you can access from the 'non-dead zope instance', which directly accesses the Data.fs file from the "dead zope instance" (using the usual db.open/root=connection.root...) and then loops thru all of the objects from the root down and copies them into the 'live' zope instance. hth Jonathan ___ 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] step by step going from single zope to zeo
Are there any step by step guidelines for how to modify a current single instance zope into a zeo configuration? I have a single zope instance. That zope.conf define two mount points for multiple zodb's. I would like to take that single instance and turn it in to a zeo server, with to zeo clients. Are they any recent howto's on this? -- David Bear College of Public Programs/ASU 411 N Central, Phoenix, AZ 85004 ___ 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 )