Broken Pipe?

52 views
Skip to first unread message

Bill Mill

unread,
Mar 10, 2007, 7:07:37 PM3/10/07
to cherrypy-users
I just deployed the new version of my blog, and it runs fine for the
first 15-30 minutes. After that, though, any page access gives this
error:

==== Traceback ====
Traceback (most recent call last):
File "/users/home/llimllib/lib/python2.4/site-packages/
CherryPy-3.0.1-py2.4.egg/cherrypy/wsgiserver/__init__.py", line 624,
in communicate
req.respond()
File "/users/home/llimllib/lib/python2.4/site-packages/
CherryPy-3.0.1-py2.4.egg/cherrypy/wsgiserver/__init__.py", line 357,
in respond
response = self.wsgi_app(self.environ, self.start_response)
File "/users/home/llimllib/lib/python2.4/site-packages/
CherryPy-3.0.1-py2.4.egg/cherrypy/_cptree.py", line 74, in __call__
return self.wsgiapp(environ, start_response)
File "/users/home/llimllib/lib/python2.4/site-packages/
CherryPy-3.0.1-py2.4.egg/cherrypy/_cpwsgi.py", line 290, in __call__
return head(environ, start_response)
File "/users/home/llimllib/lib/python2.4/site-packages/
CherryPy-3.0.1-py2.4.egg/cherrypy/_cpwsgi.py", line 42, in __call__
return IRResponse(self.nextapp, environ, start_response,
self.recursive)
File "/users/home/llimllib/lib/python2.4/site-packages/
CherryPy-3.0.1-py2.4.egg/cherrypy/_cpwsgi.py", line 55, in __init__
self.setapp()
File "/users/home/llimllib/lib/python2.4/site-packages/
CherryPy-3.0.1-py2.4.egg/cherrypy/_cpwsgi.py", line 60, in setapp
self.response = self.nextapp(self.environ, self.start_response)
File "/users/home/llimllib/lib/python2.4/site-packages/
CherryPy-3.0.1-py2.4.egg/cherrypy/_cpwsgi.py", line 278, in tail
return self.response_class(environ, start_response, self.cpapp)
File "/users/home/llimllib/lib/python2.4/site-packages/
CherryPy-3.0.1-py2.4.egg/cherrypy/_cpwsgi.py", line 138, in __init__
_cherrypy.log(tb)
File "/users/home/llimllib/lib/python2.4/site-packages/
CherryPy-3.0.1-py2.4.egg/cherrypy/__init__.py", line 311, in __call__
return log.error(*args, **kwargs)
File "/users/home/llimllib/lib/python2.4/site-packages/
CherryPy-3.0.1-py2.4.egg/cherrypy/_cplogging.py", line 40, in error
self.error_log.log(severity, ' '.join((self.time(), context,
msg)))
File "/usr/local/lib/python2.4/logging/__init__.py", line 1003, in
log
apply(self._log, (level, msg, args), kwargs)
File "/usr/local/lib/python2.4/logging/__init__.py", line 1039, in
_log
self.handle(record)
File "/usr/local/lib/python2.4/logging/__init__.py", line 1049, in
handle
self.callHandlers(record)
File "/usr/local/lib/python2.4/logging/__init__.py", line 1082, in
callHandlers
hdlr.handle(record)
File "/usr/local/lib/python2.4/logging/__init__.py", line 617, in
handle
self.emit(record)
File "/usr/local/lib/python2.4/logging/__init__.py", line 717, in
emit
self.handleError(record)
File "/usr/local/lib/python2.4/logging/__init__.py", line 668, in
handleError
traceback.print_exception(ei[0], ei[1], ei[2], None, sys.stderr)
File "/usr/local/lib/python2.4/traceback.py", line 124, in
print_exception
_print(file, 'Traceback (most recent call last):')
File "/usr/local/lib/python2.4/traceback.py", line 13, in _print
file.write(str+terminator)
IOError: [Errno 32] Broken pipe

==== End Error ====

Anybody have any idea what could be causing this? Have any way for me
to debug it further? Ideas how I could reproduce it (it only happens
on my server, not my development machine)?

Thanks
Bill Mill
bill.mill at gmail.com

Bill Mill

unread,
Mar 10, 2007, 7:13:23 PM3/10/07
to cherrypy-users
I'd also just like to add that this response is sent to the user, not
logged anywhere.

Sylvain Hellegouarch

unread,
Mar 10, 2007, 7:16:31 PM3/10/07
to cherryp...@googlegroups.com

I must admit it seems hard to debug at first sight especially
considering I think this is the first report I see with that problem.

I know it could be a bit of a hassle but have you tried with a very
simple CherryPy application to see if you were having the same problem?
Does it do that only on your server? Local machine? Which version did
you upgrade from?

- Sylvain

Bill Mill

unread,
Mar 10, 2007, 9:49:24 PM3/10/07
to cherrypy-users
> > Anybody have any idea what could be causing this? Have any way for me
> > to debug it further? Ideas how I could reproduce it (it only happens
> > on my server, not my development machine)?
>
> I must admit it seems hard to debug at first sight especially
> considering I think this is the first report I see with that problem.
>
> I know it could be a bit of a hassle but have you tried with a very
> simple CherryPy application to see if you were having the same problem?
> Does it do that only on your server? Local machine? Which version did
> you upgrade from?
>
> - Sylvain

Sylvain,

Unfortunately, this is occurring on a shared server, on my live
website, where I don't have a spare port I can use to run a test
application.

I'm upgrading from cherrypy 2.2.1 to 3.0.1, proxied directly from
Apache to cp's webserver. My host runs FreeBSD 5.4. This problem has
yet to occur on my local host (MacBook Pro). I am running this on a
userspace installation of python, v2.4.1.

(I'm in the process of upgrading to 2.4.3 - could that have anything
to do with it?)

Reply all
Reply to author
Forward
0 new messages