这是错误:
[Mon Mar 01 12:19:50 2010] [error] [client XXX.XXX.248.60] mod_python (pid=9528, interpreter='realpage.com', phase='PythonHandler', handler='django.core.handlers.modpython'): Application error
[Mon Mar 01 12:19:50 2010] [error] [client XXX.XXX.248.60] ServerName: 'realpage.dom'
[Mon Mar 01 12:19:50 2010] [error] [client XXX.XXX.248.60] DocumentRoot: '/htdocs'
[Mon Mar 01 12:19:50 2010] [error] [client XXX.XXX.248.60] URI: '/'
[Mon Mar 01 12:19:50 2010] [error] [client XXX.XXX.248.60] Location: '/'
[Mon Mar 01 12:19:50 2010] [error] [client XXX.XX.248.60] Directory: None
[Mon Mar 01 12:19:50 2010] [error] [client XXX.XXX.248.60] Filename: '/htdocs'
[Mon Mar 01 12:19:50 2010] [error] [client XXX.XXX.248.60] PathInfo: '/'
[Mon Mar 01 12:19:50 2010] [error] [client XXX.XXX.248.60] Traceback (most recent call last):
[Mon Mar 01 12:19:50 2010] [error] [client XXX.XXX.248.60] File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1537, in HandlerDispatch\n default=default_handler, arg=req, silent=hlist.silent)
[Mon Mar 01 12:19:50 2010] [error] [client XXX.XXX.248.60] File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1229, in _process_target\n result = _execute_target(config, req, object, arg)
[Mon Mar 01 12:19:50 2010] [error] [client XXX.XXX.248.60] File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1128, in _execute_target\n result = object(arg)
[Mon Mar 01 12:19:50 2010] [error] [client XXX.XXX.248.60] File "/usr/lib/python2.5/site-packages/django/core/handlers/modpython.py", line 228, in handler\n return ModPythonHandler()(req)
[Mon Mar 01 12:19:50 2010] [error] [client XXX.XXX.248.60] File "/usr/lib/python2.5/site-packages/django/core/handlers/modpython.py", line 220, in __call__\n req.write(chunk)
[Mon Mar 01 12:19:50 2010] [error] [client XXX.XX.248.60] IOError: Write failed, client closed connection.
拜托!我确信你需要更多信息才能找到错误,请告诉我什么以及如何获取它。
每次都会抛出错误!
答案1
正如消息所解释的那样,这种情况发生在处理程序在客户端关闭连接后尝试将数据写回客户端时。这种情况可能发生在客户端的客户端用户在等待响应之前按下重新加载时。这种情况也可能发生在处理程序尝试写回的数据远远超过响应内容长度指定的数量时。