Форум сайта python.su
Всем привет,
Используюя связку apache 2.0.63 + Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) + Django-1.0_final-py2.5 всё это работает на win2000. Периодически раз в неделю вываливаются ошибки:
[Tue Oct 27 08:32:18 2009] [error] [client 192.168.16.16] mod_python (pid=4732, interpreter='site.ru', phase='PythonHandler', handler='django.core.handlers.modpython'): Application error, referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:18 2009] [error] [client 192.168.16.16] ServerName: 'site.ru', referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:18 2009] [error] [client 192.168.16.16] DocumentRoot: 'D:/Program Files/Apache Group/Apache2/htdocs', referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:18 2009] [error] [client 192.168.16.16] URI: '/tok/3/2', referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:18 2009] [error] [client 192.168.16.16] Location: '/', referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:18 2009] [error] [client 192.168.16.16] Directory: None, referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:18 2009] [error] [client 192.168.16.16] Filename: 'D:/Program Files/Apache Group/Apache2/htdocs/tok', referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:18 2009] [error] [client 192.168.16.16] PathInfo: '/3/2', referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:18 2009] [error] [client 192.168.16.16] Traceback (most recent call last):, referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:18 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\mod_python\\importer.py", line 1537, in HandlerDispatch\n default=default_handler, arg=req, silent=hlist.silent), referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:18 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\mod_python\\importer.py", line 1229, in _process_target\n result = _execute_target(config, req, object, arg), referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:18 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\mod_python\\importer.py", line 1128, in _execute_target\n result = object(arg), referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:18 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\django\\core\\handlers\\modpython.py", line 222, in handler\n return ModPythonHandler()(req), referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:18 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\django\\core\\handlers\\modpython.py", line 195, in __call__\n response = self.get_response(request), referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:18 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\django\\core\\handlers\\base.py", line 128, in get_response\n return self.handle_uncaught_exception(request, resolver, exc_info), referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:18 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\django\\core\\handlers\\base.py", line 160, in handle_uncaught_exception\n return callback(request, **param_dict), referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:18 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\django\\views\\defaults.py", line 88, in server_error\n t = loader.get_template(template_name) # You need to create a 500.html template., referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:18 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\django\\template\\loader.py", line 80, in get_template\n source, origin = find_template_source(template_name), referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:18 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\django\\template\\loader.py", line 73, in find_template_source\n raise TemplateDoesNotExist, name, referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:18 2009] [error] [client 192.168.16.16] TemplateDoesNotExist: 500.html, referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:20 2009] [error] [client 192.168.16.16] mod_python (pid=4732, interpreter='site.ru', phase='PythonHandler', handler='django.core.handlers.modpython'): Application error, referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:20 2009] [error] [client 192.168.16.16] ServerName: 'site.ru', referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:20 2009] [error] [client 192.168.16.16] DocumentRoot: 'D:/Program Files/Apache Group/Apache2/htdocs', referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:20 2009] [error] [client 192.168.16.16] URI: '/tok/3/2', referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:20 2009] [error] [client 192.168.16.16] Location: '/', referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:20 2009] [error] [client 192.168.16.16] Directory: None, referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:20 2009] [error] [client 192.168.16.16] Filename: 'D:/Program Files/Apache Group/Apache2/htdocs/tok', referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:20 2009] [error] [client 192.168.16.16] PathInfo: '/3/2', referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:20 2009] [error] [client 192.168.16.16] Traceback (most recent call last):, referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:20 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\mod_python\\importer.py", line 1537, in HandlerDispatch\n default=default_handler, arg=req, silent=hlist.silent), referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:20 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\mod_python\\importer.py", line 1229, in _process_target\n result = _execute_target(config, req, object, arg), referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:20 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\mod_python\\importer.py", line 1128, in _execute_target\n result = object(arg), referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:20 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\django\\core\\handlers\\modpython.py", line 222, in handler\n return ModPythonHandler()(req), referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:20 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\django\\core\\handlers\\modpython.py", line 195, in __call__\n response = self.get_response(request), referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:20 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\django\\core\\handlers\\base.py", line 128, in get_response\n return self.handle_uncaught_exception(request, resolver, exc_info), referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:20 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\django\\core\\handlers\\base.py", line 160, in handle_uncaught_exception\n return callback(request, **param_dict), referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:20 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\django\\views\\defaults.py", line 88, in server_error\n t = loader.get_template(template_name) # You need to create a 500.html template., referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:20 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\django\\template\\loader.py", line 80, in get_template\n source, origin = find_template_source(template_name), referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:20 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\django\\template\\loader.py", line 73, in find_template_source\n raise TemplateDoesNotExist, name, referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:20 2009] [error] [client 192.168.16.16] TemplateDoesNotExist: 500.html, referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:21 2009] [error] [client 192.168.16.16] mod_python (pid=4732, interpreter='site.ru', phase='PythonHandler', handler='django.core.handlers.modpython'): Application error, referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:21 2009] [error] [client 192.168.16.16] ServerName: 'site.ru', referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:21 2009] [error] [client 192.168.16.16] DocumentRoot: 'D:/Program Files/Apache Group/Apache2/htdocs', referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:21 2009] [error] [client 192.168.16.16] URI: '/tok/3/2', referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:21 2009] [error] [client 192.168.16.16] Location: '/', referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:21 2009] [error] [client 192.168.16.16] Directory: None, referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:21 2009] [error] [client 192.168.16.16] Filename: 'D:/Program Files/Apache Group/Apache2/htdocs/tok', referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:21 2009] [error] [client 192.168.16.16] PathInfo: '/3/2', referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:21 2009] [error] [client 192.168.16.16] Traceback (most recent call last):, referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:21 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\mod_python\\importer.py", line 1537, in HandlerDispatch\n default=default_handler, arg=req, silent=hlist.silent), referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:21 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\mod_python\\importer.py", line 1229, in _process_target\n result = _execute_target(config, req, object, arg), referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:21 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\mod_python\\importer.py", line 1128, in _execute_target\n result = object(arg), referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:21 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\django\\core\\handlers\\modpython.py", line 222, in handler\n return ModPythonHandler()(req), referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:21 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\django\\core\\handlers\\modpython.py", line 195, in __call__\n response = self.get_response(request), referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:21 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\django\\core\\handlers\\base.py", line 128, in get_response\n return self.handle_uncaught_exception(request, resolver, exc_info), referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:21 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\django\\core\\handlers\\base.py", line 160, in handle_uncaught_exception\n return callback(request, **param_dict), referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:21 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\django\\views\\defaults.py", line 88, in server_error\n t = loader.get_template(template_name) # You need to create a 500.html template., referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:21 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\django\\template\\loader.py", line 80, in get_template\n source, origin = find_template_source(template_name), referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:21 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\django\\template\\loader.py", line 73, in find_template_source\n raise TemplateDoesNotExist, name, referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:21 2009] [error] [client 192.168.16.16] TemplateDoesNotExist: 500.html, referer: http://site.ru:82/tok/3/
[Tue Oct 27 08:32:27 2009] [error] [client 192.168.16.16] mod_python (pid=4732, interpreter='site.ru', phase='PythonHandler', handler='django.core.handlers.modpython'): Application error
[Tue Oct 27 08:32:27 2009] [error] [client 192.168.16.16] ServerName: 'site.ru'
[Tue Oct 27 08:32:27 2009] [error] [client 192.168.16.16] DocumentRoot: 'D:/Program Files/Apache Group/Apache2/htdocs'
[Tue Oct 27 08:32:27 2009] [error] [client 192.168.16.16] URI: '/tok/3/'
[Tue Oct 27 08:32:27 2009] [error] [client 192.168.16.16] Location: '/'
[Tue Oct 27 08:32:27 2009] [error] [client 192.168.16.16] Directory: None
[Tue Oct 27 08:32:27 2009] [error] [client 192.168.16.16] Filename: 'D:/Program Files/Apache Group/Apache2/htdocs/tok'
[Tue Oct 27 08:32:27 2009] [error] [client 192.168.16.16] PathInfo: '/3/'
[Tue Oct 27 08:32:27 2009] [error] [client 192.168.16.16] Traceback (most recent call last):
[Tue Oct 27 08:32:27 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\mod_python\\importer.py", line 1537, in HandlerDispatch\n default=default_handler, arg=req, silent=hlist.silent)
[Tue Oct 27 08:32:27 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\mod_python\\importer.py", line 1229, in _process_target\n result = _execute_target(config, req, object, arg)
[Tue Oct 27 08:32:27 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\mod_python\\importer.py", line 1128, in _execute_target\n result = object(arg)
[Tue Oct 27 08:32:27 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\django\\core\\handlers\\modpython.py", line 222, in handler\n return ModPythonHandler()(req)
[Tue Oct 27 08:32:27 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\django\\core\\handlers\\modpython.py", line 195, in __call__\n response = self.get_response(request)
[Tue Oct 27 08:32:27 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\django\\core\\handlers\\base.py", line 128, in get_response\n return self.handle_uncaught_exception(request, resolver, exc_info)
[Tue Oct 27 08:32:27 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\django\\core\\handlers\\base.py", line 160, in handle_uncaught_exception\n return callback(request, **param_dict)
[Tue Oct 27 08:32:27 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\django\\views\\defaults.py", line 88, in server_error\n t = loader.get_template(template_name) # You need to create a 500.html template.
[Tue Oct 27 08:32:27 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\django\\template\\loader.py", line 80, in get_template\n source, origin = find_template_source(template_name)
[Tue Oct 27 08:32:27 2009] [error] [client 192.168.16.16] File "D:\\Python25\\lib\\site-packages\\django\\template\\loader.py", line 73, in find_template_source\n raise TemplateDoesNotExist, name
[Tue Oct 27 08:32:27 2009] [error] [client 192.168.16.16] TemplateDoesNotExist: 500.html
Отредактировано (Окт. 27, 2009 06:47:37)
Офлайн
Ну там же ясно написано, что нет темплейта для 500-й страницы (500.html).
Офлайн
вы наверно шутите, да там написано, что нет шаблона для отображения 500 ошибки!
«Ошибка HTTP 500 — Внутренняя ошибка сервера».
А как ее избежать?
Офлайн
Настрой оповещение об ошибках на сервере по мылу: http://docs.djangoproject.com/en/dev/howto/error-reporting/#howto-error-reporting
З.Ы. И сделай всё-таки темплейт 500-й страницы:)
Офлайн
Можно подробнее про оповещение? Где выставляются настройки smtp сервера?
Офлайн
В settings.py
Офлайн
poltergeistспасибо за совет
Настрой оповещение об ошибках на сервере по мылу: http://docs.djangoproject.com/en/dev/ho … -reporting
Офлайн
У мен переменные EMAIL_FROM, EMAIL_HOST, EMAIL_HOST_USER, EMAIL_HOST_PASSWORD установлены и работает django.core.mail.send_mail. Прописал в SERVER_EMAIL своё мыло и не фурычит.
Офлайн
фурычить будет только при DEBUG = False
Офлайн
все, нашел проблему, точнее не нашел, заново сделал и все ок)
Отредактировано (Окт. 30, 2009 14:48:29)
Офлайн