fastcgi 'broken pipe' tracebacks

Bug #142654 reported by anthony baxter
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zope 2
Invalid
Low
Unassigned

Bug Description

Using FastCGI, I see a lot of these errors in the logs:
2003-07-31T05:50:56 ERROR(200) ZServer uncaptured python exception, closing channel <ZServer.FCGIServer.FCGIChannel connected 192.168.41.2:44683 at 0x2b78b7c> (socket.error:(32, 'Broken pipe') [/opt/local/lib/python2.1/asynchat.py|initiate_send|213] [/app/zope/dev_ekit_code/ZServer/medusa/asyncore.py|send|338])

The following patch makes asyncore catch the EPIPE and close the connection.

Revision history for this message
anthony baxter (anthony) wrote :
Revision history for this message
amaxi (amaxi) wrote :

so this is my problem to ?
How can I solve this ?
asyncore.diff it's wokring good ?

The problem is that:
I can see in the http error.log:
[Wed Mar 17 16:27:31 2010] [error] [client 62.77.209.29] FastCGI: incomplete headers (0 bytes) received from server "/srv/www/zope/zope.fcgi"
[Wed Mar 17 16:27:31 2010] [error] [client 62.77.209.29] FastCGI: comm with server "/srv/www/zope/zope.fcgi" aborted: idle timeout (100 sec)

And one phyton program cause a drastical slowdown.
16508 zope 15 0 645m 608m 3868 S 99.9 10.2 75:32.29 python
This process busies down one core and the website tell us: "zope internal error" or teh site is very very work slowly after 2-3 minutes later the zope is running contiune.

I don't know why ?

event.log: does it work normaly?
2010-03-17T16:31:56 ERROR ZServer uncaptured python exception, closing channel <ZServer.FCGIServer.FCGIChannel connected '' at 0xba3662c> (socket.error:(32, 'Broken pipe') [/opt/zope/lib/python2.3/asynchat.py|initiate_send|218] [/opt/zope/lib/python2.3/asyncore.py|send|337])
2010-03-17T16:32:16 INFO ZODB.Conflict database conflict error (oid 0x08, class Products.Transience.Transience.Length2, serial this txn started with 0x0384d95bb6cc7500 2010-03-17 15:23:42.843436, serial currently committed 0x0384d9618d0130cc 2010-03-17 15:29:33.047965) at /dealernet_eles/VirtualHostRoot/dealernet//dealernet/ui/marketing (163 conflicts, of which 10 were unresolved, since startup at Wed Mar 17 14:46:49 2010)

Parameters:
Suse Linux Ent. 9.4
Zope-2.8.6-final
egenix-mx-base-2.0.6
psycopg-1.1.21
Python-2.3.5
threadframe-0.2

Apache: 1.3.29

postgresql: psql (PostgreSQL) 7.4.17

Thank you for your time and help.

amaxi
<email address hidden>

Revision history for this message
amaxi (amaxi) wrote :

from top:

16508 zope 15 0 645m 608m 3868 S 99.9 10.2 75:32.29 python

ps -ef
zope 16508 16507 79 14:46 ? 01:35:10 /opt/zope/bin/python /opt/zope/lib/python/Zope2/Startup/run.py -C /opt/zope/etc/zope.conf
root 20468 14591 0 16:45 pts/7 00:00:00 grep 16508

Revision history for this message
Tres Seaver (tseaver) wrote : Re: [zope2-tracker] [Bug 142654] Re: fastcgi 'broken pipe' tracebacks

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

amaxi wrote:
> from top:
>
> 16508 zope 15 0 645m 608m 3868 S 99.9 10.2 75:32.29 python
>
> ps -ef
> zope 16508 16507 79 14:46 ? 01:35:10 /opt/zope/bin/python /opt/zope/lib/python/Zope2/Startup/run.py -C /opt/zope/etc/zope.conf
> root 20468 14591 0 16:45 pts/7 00:00:00 grep 16508

 status invalid

This tracker is for reporting bugs in Zope2, rather than for asking
questions about administering a Zope server. Please ask for help on the
<email address hidden> mailing list.

Tres.
- --
===================================================================
Tres Seaver +1 540-429-0999 <email address hidden>
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkug/KQACgkQ+gerLs4ltQ5WRACghDFY26gC59rrDV2VtVkQ5TsA
Cf4An2/noFSRs1m/l2gaaqIG4c8UKKC6
=DjY0
-----END PGP SIGNATURE-----

Changed in zope2:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.