Hi all, I have config: Django 0.91, apache 2.0.55, mod_python 2.3.8, Win XP.
When I test my app by page requests from different browsers at the same time (concurrent access testing), I receive errors like these: ===================================== -- when 2 clients attempt to get page: Mod_python error: "PythonHandler django.core.handlers.modpython" Traceback (most recent call last): File "C:\Python24\Lib\site-packages\mod_python\apache.py", line 299, in HandlerDispatch result = object(req) File "c:\python24\lib\site-packages\Django-0.91-py2.4.egg\django\core\handlers\modpython.py", line 165, in handler return ModPythonHandler()(req) File "c:\python24\lib\site-packages\Django-0.91-py2.4.egg\django\core\handlers\modpython.py", line 141, in __call__ db.db.close() File "C:\Python24\lib\site-packages\Django-0.91-py2.4.egg\django\core\db\backends\postgresql.py", line 49, in close self.connection.close() InterfaceError: already closed ===================================== Mod_python error: "PythonHandler django.core.handlers.modpython" Traceback (most recent call last): File "C:\Python24\Lib\site-packages\mod_python\apache.py", line 299, in HandlerDispatch result = object(req) File "c:\python24\lib\site-packages\Django-0.91-py2.4.egg\django\core\handlers\modpython.py", line 165, in handler return ModPythonHandler()(req) File "c:\python24\lib\site-packages\Django-0.91-py2.4.egg\django\core\handlers\modpython.py", line 139, in __call__ response = self.get_response(req.uri, request) File "C:\Python24\lib\site-packages\Django-0.91-py2.4.egg\django\core\handlers\base.py", line 97, in get_response db.db.rollback() File "C:\Python24\lib\site-packages\Django-0.91-py2.4.egg\django\core\db\backends\postgresql.py", line 45, in rollback return self.connection.rollback() DatabaseError: {: 'no connection to the server\n'} ===================================== Mod_python error: "PythonHandler django.core.handlers.modpython" Traceback (most recent call last): File "C:\Python24\Lib\site-packages\mod_python\apache.py", line 299, in HandlerDispatch result = object(req) File "c:\python24\lib\site-packages\Django-0.91-py2.4.egg\django\core\handlers\modpython.py", line 165, in handler return ModPythonHandler()(req) File "c:\python24\lib\site-packages\Django-0.91-py2.4.egg\django\core\handlers\modpython.py", line 139, in __call__ response = self.get_response(req.uri, request) File "C:\Python24\lib\site-packages\Django-0.91-py2.4.egg\django\core\handlers\base.py", line 97, in get_response db.db.rollback() File "C:\Python24\lib\site-packages\Django-0.91-py2.4.egg\django\core\db\backends\postgresql.py", line 45, in rollback return self.connection.rollback() DatabaseError: {: ''} ===================================== Mod_python error: "PythonHandler django.core.handlers.modpython" Traceback (most recent call last): File "C:\Python24\Lib\site-packages\mod_python\apache.py", line 299, in HandlerDispatch result = object(req) File "c:\python24\lib\site-packages\Django-0.91-py2.4.egg\django\core\handlers\modpython.py", line 165, in handler return ModPythonHandler()(req) File "c:\python24\lib\site-packages\Django-0.91-py2.4.egg\django\core\handlers\modpython.py", line 139, in __call__ response = self.get_response(req.uri, request) File "C:\Python24\lib\site-packages\Django-0.91-py2.4.egg\django\core\handlers\base.py", line 118, in get_response return self.get_friendly_error_response(request, resolver) File "C:\Python24\lib\site-packages\Django-0.91-py2.4.egg\django\core\handlers\base.py", line 127, in get_friendly_error_response return callback(request, **param_dict) File "C:\Python24\lib\site-packages\Django-0.91-py2.4.egg\django\views\defaults.py", line 68, in server_error t = loader.get_template(template_name) File "C:\Python24\lib\site-packages\Django-0.91-py2.4.egg\django\core\template\loader.py", line 77, in get_template return get_template_from_string(*find_template_source(template_name)) File "C:\Python24\lib\site-packages\Django-0.91-py2.4.egg\django\core\template\loader.py", line 70, in find_template_source raise TemplateDoesNotExist, name TemplateDoesNotExist: 500 ===================================== Mod_python error: "PythonHandler django.core.handlers.modpython" Traceback (most recent call last): File "C:\Python24\Lib\site-packages\mod_python\apache.py", line 299, in HandlerDispatch result = object(req) File "c:\python24\lib\site-packages\Django-0.91-py2.4.egg\django\core\handlers\modpython.py", line 165, in handler return ModPythonHandler()(req) File "c:\python24\lib\site-packages\Django-0.91-py2.4.egg\django\core\handlers\modpython.py", line 139, in __call__ response = self.get_response(req.uri, request) File "C:\Python24\lib\site-packages\Django-0.91-py2.4.egg\django\core\handlers\base.py", line 109, in get_response return self.get_technical_error_response(request) File "C:\Python24\lib\site-packages\Django-0.91-py2.4.egg\django\core\handlers\base.py", line 139, in get_technical_error_response return debug.technical_500_response(request, *sys.exc_info()) File "C:\Python24\lib\site-packages\Django-0.91-py2.4.egg\django\views\debug.py", line 126, in technical_500_response return HttpResponseServerError(t.render(c), mimetype='text/html') File "C:\Python24\lib\site-packages\Django-0.91-py2.4.egg\django\core\template\__init__.py", line 150, in render return self.nodelist.render(context) File "C:\Python24\lib\site-packages\Django-0.91-py2.4.egg\django\core\template\__init__.py", line 711, in render bits.append(self.render_node(node, context)) File "C:\Python24\lib\site-packages\Django-0.91-py2.4.egg\django\core\template\__init__.py", line 730, in render_node result = node.render(context) File "C:\Python24\lib\site-packages\Django-0.91-py2.4.egg\django\core\template\defaulttags.py", line 112, in render nodelist.append(node.render(context)) File "C:\Python24\lib\site-packages\Django-0.91-py2.4.egg\django\core\template\defaulttags.py", line 179, in render return self.nodelist_true.render(context) File "C:\Python24\lib\site-packages\Django-0.91-py2.4.egg\django\core\template\__init__.py", line 711, in render bits.append(self.render_node(node, context)) File "C:\Python24\lib\site-packages\Django-0.91-py2.4.egg\django\core\template\__init__.py", line 740, in render_node raise wrapped TemplateSyntaxError: Caught an exception while rendering. ===================================== Mod_python error: "PythonHandler django.core.handlers.modpython" Traceback (most recent call last): File "C:\Python24\Lib\site-packages\mod_python\apache.py", line 299, in HandlerDispatch result = object(req) File "c:\python24\lib\site-packages\Django-0.91-py2.4.egg\django\core\handlers\modpython.py", line 165, in handler return ModPythonHandler()(req) File "c:\python24\lib\site-packages\Django-0.91-py2.4.egg\django\core\handlers\modpython.py", line 139, in __call__ response = self.get_response(req.uri, request) File "C:\Python24\lib\site-packages\Django-0.91-py2.4.egg\django\core\handlers\base.py", line 97, in get_response db.db.rollback() File "C:\Python24\lib\site-packages\Django-0.91-py2.4.egg\django\core\db\backends\postgresql.py", line 45, in rollback return self.connection.rollback() DatabaseError: {: 'socket not open\n'} ===================================== As I guess, by some reason connection or cursor are closed by other/older request. But may be I'm wrong. Has anybody similiar flaws and if yes, how you solve them? Note: I have no problems with 1 user access using this env, also DJ development server is stable in multiuser access. Thanks in advance, Alex --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---