'log'에 해당되는 글 1건
- 2008.06.18 500 Internal Server 에러가 가끔 나는 군요. 2
2008. 6. 18. 11:59
500 Internal Server 에러가 가끔 나는 군요.
2008. 6. 18. 11:59 in 사용자 가이드
제가 사용하는 TOW도 가끔 500 Internal Server 에러가 나는데, 역시나 windows event log의 문제인가 봅니다.
[Wed Jun 18 11:48:43 2008] [error] [client ...] mod_python (pid=2980, interpreter='tow.localhost', phase='PythonHandler', handler='trac.web.modpython_frontend'): Application error
[Wed Jun 18 11:48:43 2008] [error] [client ...] ServerName: 'tow.localhost'
[Wed Jun 18 11:48:43 2008] [error] [client ...] DocumentRoot: 'C:/TOW/Apache/htdocs'
[Wed Jun 18 11:48:43 2008] [error] [client ...] URI: '/projects/.../ticket/133'
[Wed Jun 18 11:48:43 2008] [error] [client ...] Location: '/projects'
[Wed Jun 18 11:48:43 2008] [error] [client ...] Directory: None
[Wed Jun 18 11:48:43 2008] [error] [client ...] Filename: 'C:/TOW/Apache/cgi-bin/trac.cgi'
[Wed Jun 18 11:48:43 2008] [error] [client ...] PathInfo: '/.../ticket/133'
[Wed Jun 18 11:48:43 2008] [error] [client ...] Traceback (most recent call last):
[Wed Jun 18 11:48:43 2008] [error] [client ...] File "C:\\TOW\\Python\\Lib\\site-packages\\mod_python\\importer.py", line 1537, in HandlerDispatch\n default=default_handler, arg=req, silent=hlist.silent)
[Wed Jun 18 11:48:43 2008] [error] [client ...] File "C:\\TOW\\Python\\Lib\\site-packages\\mod_python\\importer.py", line 1229, in _process_target\n result = _execute_target(config, req, object, arg)
[Wed Jun 18 11:48:43 2008] [error] [client ...] File "C:\\TOW\\Python\\Lib\\site-packages\\mod_python\\importer.py", line 1128, in _execute_target\n result = object(arg)
[Wed Jun 18 11:48:43 2008] [error] [client ...] File "C:\\TOW\\Python\\Lib\\site-packages\\trac\\web\\modpython_frontend.py", line 87, in handler\n gateway.run(dispatch_request)
[Wed Jun 18 11:48:43 2008] [error] [client ...] File "C:\\TOW\\Python\\Lib\\site-packages\\trac\\web\\wsgi.py", line 87, in run\n response = application(self.environ, self._start_response)
[Wed Jun 18 11:48:43 2008] [error] [client ...] File "C:\\TOW\\Python\\Lib\\site-packages\\trac\\web\\main.py", line 416, in dispatch_request\n env.log.warn(e)
[Wed Jun 18 11:48:43 2008] [error] [client ...] File "C:\\TOW\\Python\\lib\\logging\\__init__.py", line 983, in warning\n apply(self._log, (WARNING, msg, args), kwargs)
[Wed Jun 18 11:48:43 2008] [error] [client ...] File "C:\\TOW\\Python\\lib\\logging\\__init__.py", line 1079, in _log\n self.handle(record)
[Wed Jun 18 11:48:43 2008] [error] [client ...] File "C:\\TOW\\Python\\lib\\logging\\__init__.py", line 1089, in handle\n self.callHandlers(record)
[Wed Jun 18 11:48:43 2008] [error] [client ...] File "C:\\TOW\\Python\\lib\\logging\\__init__.py", line 1126, in callHandlers\n hdlr.handle(record)
[Wed Jun 18 11:48:43 2008] [error] [client ...] File "C:\\TOW\\Python\\lib\\logging\\__init__.py", line 642, in handle\n self.emit(record)
[Wed Jun 18 11:48:43 2008] [error] [client ...] File "C:\\TOW\\Python\\Lib\\logging\\handlers.py", line 819, in emit\n self.handleError(record)
[Wed Jun 18 11:48:43 2008] [error] [client ...] File "C:\\TOW\\Python\\lib\\logging\\__init__.py", line 693, in handleError\n traceback.print_exception(ei[0], ei[1], ei[2], None, sys.stderr)
[Wed Jun 18 11:48:43 2008] [error] [client ...] File "C:\\TOW\\Python\\lib\\traceback.py", line 125, in print_exception\n print_tb(tb, limit, file)
[Wed Jun 18 11:48:43 2008] [error] [client ...] File "C:\\TOW\\Python\\lib\\traceback.py", line 70, in print_tb\n if line: _print(file, ' ' + line.strip())
[Wed Jun 18 11:48:43 2008] [error] [client ...] File "C:\\TOW\\Python\\lib\\traceback.py", line 13, in _print\n file.write(str+terminator)
[Wed Jun 18 11:48:43 2008] [error] [client ...] IOError: [Errno 9] Bad file descriptor
다음버전의 log 기본 설정을 파일로 해야겠습니다.
[Wed Jun 18 11:48:43 2008] [error] [client ...] mod_python (pid=2980, interpreter='tow.localhost', phase='PythonHandler', handler='trac.web.modpython_frontend'): Application error
[Wed Jun 18 11:48:43 2008] [error] [client ...] ServerName: 'tow.localhost'
[Wed Jun 18 11:48:43 2008] [error] [client ...] DocumentRoot: 'C:/TOW/Apache/htdocs'
[Wed Jun 18 11:48:43 2008] [error] [client ...] URI: '/projects/.../ticket/133'
[Wed Jun 18 11:48:43 2008] [error] [client ...] Location: '/projects'
[Wed Jun 18 11:48:43 2008] [error] [client ...] Directory: None
[Wed Jun 18 11:48:43 2008] [error] [client ...] Filename: 'C:/TOW/Apache/cgi-bin/trac.cgi'
[Wed Jun 18 11:48:43 2008] [error] [client ...] PathInfo: '/.../ticket/133'
[Wed Jun 18 11:48:43 2008] [error] [client ...] Traceback (most recent call last):
[Wed Jun 18 11:48:43 2008] [error] [client ...] File "C:\\TOW\\Python\\Lib\\site-packages\\mod_python\\importer.py", line 1537, in HandlerDispatch\n default=default_handler, arg=req, silent=hlist.silent)
[Wed Jun 18 11:48:43 2008] [error] [client ...] File "C:\\TOW\\Python\\Lib\\site-packages\\mod_python\\importer.py", line 1229, in _process_target\n result = _execute_target(config, req, object, arg)
[Wed Jun 18 11:48:43 2008] [error] [client ...] File "C:\\TOW\\Python\\Lib\\site-packages\\mod_python\\importer.py", line 1128, in _execute_target\n result = object(arg)
[Wed Jun 18 11:48:43 2008] [error] [client ...] File "C:\\TOW\\Python\\Lib\\site-packages\\trac\\web\\modpython_frontend.py", line 87, in handler\n gateway.run(dispatch_request)
[Wed Jun 18 11:48:43 2008] [error] [client ...] File "C:\\TOW\\Python\\Lib\\site-packages\\trac\\web\\wsgi.py", line 87, in run\n response = application(self.environ, self._start_response)
[Wed Jun 18 11:48:43 2008] [error] [client ...] File "C:\\TOW\\Python\\Lib\\site-packages\\trac\\web\\main.py", line 416, in dispatch_request\n env.log.warn(e)
[Wed Jun 18 11:48:43 2008] [error] [client ...] File "C:\\TOW\\Python\\lib\\logging\\__init__.py", line 983, in warning\n apply(self._log, (WARNING, msg, args), kwargs)
[Wed Jun 18 11:48:43 2008] [error] [client ...] File "C:\\TOW\\Python\\lib\\logging\\__init__.py", line 1079, in _log\n self.handle(record)
[Wed Jun 18 11:48:43 2008] [error] [client ...] File "C:\\TOW\\Python\\lib\\logging\\__init__.py", line 1089, in handle\n self.callHandlers(record)
[Wed Jun 18 11:48:43 2008] [error] [client ...] File "C:\\TOW\\Python\\lib\\logging\\__init__.py", line 1126, in callHandlers\n hdlr.handle(record)
[Wed Jun 18 11:48:43 2008] [error] [client ...] File "C:\\TOW\\Python\\lib\\logging\\__init__.py", line 642, in handle\n self.emit(record)
[Wed Jun 18 11:48:43 2008] [error] [client ...] File "C:\\TOW\\Python\\Lib\\logging\\handlers.py", line 819, in emit\n self.handleError(record)
[Wed Jun 18 11:48:43 2008] [error] [client ...] File "C:\\TOW\\Python\\lib\\logging\\__init__.py", line 693, in handleError\n traceback.print_exception(ei[0], ei[1], ei[2], None, sys.stderr)
[Wed Jun 18 11:48:43 2008] [error] [client ...] File "C:\\TOW\\Python\\lib\\traceback.py", line 125, in print_exception\n print_tb(tb, limit, file)
[Wed Jun 18 11:48:43 2008] [error] [client ...] File "C:\\TOW\\Python\\lib\\traceback.py", line 70, in print_tb\n if line: _print(file, ' ' + line.strip())
[Wed Jun 18 11:48:43 2008] [error] [client ...] File "C:\\TOW\\Python\\lib\\traceback.py", line 13, in _print\n file.write(str+terminator)
[Wed Jun 18 11:48:43 2008] [error] [client ...] IOError: [Errno 9] Bad file descriptor
다음버전의 log 기본 설정을 파일로 해야겠습니다.