Modify ↓
Ticket #1999 (closed defect: fixed)
Opened 7 years ago
Last modified 7 years ago
Traceback in Apache error log
| Reported by: | sam@… | Owned by: | cmlenz |
|---|---|---|---|
| Priority: | low | Milestone: | 0.9 |
| Component: | general | Version: | devel |
| Severity: | minor | Keywords: | traceback error log |
| Cc: | |||
| Release Notes: | |||
| API Changes: | |||
Description
Sometimes, I get a Python traceback in the Apache's error log because of an unexpected connection close on the client side. I don't think such a big traceback belongs to Apache error log, and this error can be silently ignored.
[Thu Sep 01 02:40:24 2005] [error] [client 84.132.233.102] PythonHandler trac.web.modpython_frontend: Traceback (most recent call last):
[Thu Sep 01 02:40:24 2005] [error] [client 84.132.233.102] PythonHandler trac.web.modpython_frontend: File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 299, in HandlerDispatch\n result = object(req)
[Thu Sep 01 02:40:24 2005] [error] [client 84.132.233.102] PythonHandler trac.web.modpython_frontend: File "/usr/lib/python2.3/site-packages/trac/web/modpython_frontend.py", line 207, in handler\n send_pretty_error(e, env, mpr)
[Thu Sep 01 02:40:24 2005] [error] [client 84.132.233.102] PythonHandler trac.web.modpython_frontend: File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 253, in send_pretty_error\n req.write('Oops...\\n\\nTrac detected an internal error:\\n\\n')
[Thu Sep 01 02:40:24 2005] [error] [client 84.132.233.102] PythonHandler trac.web.modpython_frontend: File "/usr/lib/python2.3/site-packages/trac/web/modpython_frontend.py", line 89, in write\n self.req.write(data)
[Thu Sep 01 02:40:24 2005] [error] [client 84.132.233.102] PythonHandler trac.web.modpython_frontend: IOError: Write failed, client closed connection.
For information :
[Thu Sep 01 02:38:55 2005] [notice] Apache/2.0.54 (Debian GNU/Linux) DAV/2 SVN/1.2.0 mod_python/3.1.3 Python/2.3.5 PHP/4.4.0-1 mod_ssl/2.0.54 OpenSSL/0.9.7g mod_perl/2.0.1 Perl/v5.8.7 configured -- resuming normal operations
It's been doing this for quite a while now (months).
Attachments
Change History
comment:1 Changed 7 years ago by cmlenz
- Owner changed from jonas to cmlenz
- Status changed from new to assigned
comment:2 Changed 7 years ago by cmlenz
comment:3 Changed 7 years ago by cmlenz
- Resolution set to fixed
- Status changed from assigned to closed
Should be fixed in [2267].
Note: See
TracTickets for help on using
tickets.



I think the following change would get rid of these errors:
trac/web/main.py