[Zope] FastCGI server crashing
I am experiencing seemingly random crashes of the Zope FastCgi server that are really annoying users. Any help most appreciated. Apache errors: FastCGI: comm with server /space/apache2/fcgi-bin/zope.cgi aborted: idle timeout (30 sec) FastCGI: incomplete headers (0 bytes) received from server /space/apache2/fcgi-bin/zope.cgi Zope error: 2006-08-07T11:17:36 ERROR(200) ZServer uncaptured python exception, closing channel ZServer.FCGIServer.FCGIChannel connected 127.0.0.1:43792 at 0x43c13e2c (socket.error:(32, 'Broken pipe') [/usr/local/python235/lib/python2.3/asynchat.py|initiate_send|218] [/usr/local/python235/lib/python2.3/asyncore.py|send|337]) System: Redhat 7.3 Apache 2.0.52 mod_fastcgi 2.4.4 Python 2.3.5 Zope 2.7.8 Thanks! ___ 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: FastCGI server crashing
Looks like the problem was an inbound RSS feed from a server that was down. The FastCGI process was timing out before the RSS request from CMFSin timed out. David Chandek-Stark wrote: I am experiencing seemingly random crashes of the Zope FastCgi server that are really annoying users. Any help most appreciated. Apache errors: FastCGI: comm with server /space/apache2/fcgi-bin/zope.cgi aborted: idle timeout (30 sec) FastCGI: incomplete headers (0 bytes) received from server /space/apache2/fcgi-bin/zope.cgi Zope error: 2006-08-07T11:17:36 ERROR(200) ZServer uncaptured python exception, closing channel ZServer.FCGIServer.FCGIChannel connected 127.0.0.1:43792 at 0x43c13e2c (socket.error:(32, 'Broken pipe') [/usr/local/python235/lib/python2.3/asynchat.py|initiate_send|218] [/usr/local/python235/lib/python2.3/asyncore.py|send|337]) System: Redhat 7.3 Apache 2.0.52 mod_fastcgi 2.4.4 Python 2.3.5 Zope 2.7.8 Thanks! ___ 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: FastCGI server crashing
Jens Vagelpohl wrote: You're probably aware of the fact that FastCGI is no longer a supported configuration. Is there any specific reason you're using it instead of RewriteRules for example? jens Actually, I wasn't aware. I'm using FastCGI b/c I am doing external authentication with an Apache module that sets REMOTE_USER. I have to use FastCGI to pass this variable to Zope and am using RemoteUserFolder for the Zope authentication. I am hoping that I will be able to move to PAS with Shibboleth, but haven't had time ... Major app is a Plone 2.0.5 site. Thanks, David ___ 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] ZODB caching issue
Setup: Zope 2.7.0 Python 2.3.3 Linux2 CMF 1.4.4 Problem Area: ZPT which contains a call to a ZPT macro The ZPT macro gets data from a parsed RSS feed Now using CMFSin 0.6.1 Previously used RDFSummary 2.4 Symptom: When a new item is added to the RSS feed (b/c a news item was published), my ZPT displays the RSS data inconsistently with each browser refresh -- sometimes the new item appears, sometimes not. At first I thought this was a problem with the RDFSummary product, but I have the same issue with CMFSin. Finally, I at least discovered something that fixes the problem: flushing the ZODB cache. Obviously, I don't want to flush the ZODB cache every time my news feed is updated. Is this a known problem that has been resolved in later versions of Zope 2.7/CMF? Since it's not technically an error, I don't have a traceback. Thanks for any help, David ___ 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: ZODB caching issue
Dieter Maurer wrote: Symptom: When a new item is added to the RSS feed (b/c a news item was published), my ZPT displays the RSS data inconsistently with each browser refresh -- sometimes the new item appears, sometimes not. A bug in RDFSummary which uses a ZODB cache to maintain the fetched items. Unfortunately, each connection has its own independent ZODB cache Using a ZODB cache for this use case is both inefficient and error prone. You should contact the RDFSummary authors. As mentioned in the original post, I am now using CMFSin and having the smae problem. Are you saying that this is an issue with the design of the product? Thanks, David ___ 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] Convert Photos to ExtImage store
I have a few PhotoFolders containing Photos that are stored in the ZODB which I would like to convert to ExtImage storage. Since the number is large enough to make a manual process painful, I'd like to write a conversion script. Seems simple enough in principle, but I'm having trouble getting started. First, how do you use manage_addPhoto()? I assumed that photo_folder.manage_addPhoto() would work, but I get AttributeError: manage_addPhoto Ideally, the script would operate on a PhotoFolder object, say, making a new PhotoFolder, then creating all the new Photos based on the old ones. I can manually delete the old folder and rename the new one. Thanks, David Zope 2.7.0/Python 2.3.2 Photo 1.2.3 ___ 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: Convert Photos to ExtImage store
OK, my problem now is how to feed the image data from the ZODB photos to the factory method. If 'photo' is the original image object, I've tried photo.file (attribute error: file), photo.data (attribute error: read - line 658 of Photo.py), and other things. There must be a simple way to get the file object that manage_addPhoto() wants. Thanks, David ___ 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 )