WebFaction
Community site: login faq

I get the following errors intermittently:

[<some date time>][error] [client 127.0.0.1] mod_wsgi (pid=<some pid>): Exception occurred processing WSGI script '/<some path>/django/myproject.wsgi'., referer: https://<some url>/
[<some date time>][error] [client 127.0.0.1] Traceback (most recent call last):, referer: https://<some url>/
[<some date time>][error] [client 127.0.0.1]   File "<some path>/python2.7/django/core/handlers/wsgi.py", line 255, in __call__, referer: https://<some url>
[<some date time>][error] [client 127.0.0.1]     signals.request_finished.send(sender=self.__class__), referer: https://<some url>
[<some date time>][error] [client 127.0.0.1]   File "/<some_path>/django/lib/python2.7/django/dispatch/dispatcher.py", line 172, in send, referer: https://<some url>
[<some date time>][error] [client 127.0.0.1]     response = receiver(signal=self, sender=sender, **named), referer: https://<some url>
[<some date time>][error] [client 127.0.0.1]   File "/<some_path>/django/lib/python2.7/django/db/__init__.py", line 84, in close_connection, referer: https://<some url>
[<some date time>][error] [client 127.0.0.1]     conn.close(), referer: https://<some url>
[<some date time>][error] [client 127.0.0.1]   File "/<some_path>/django/lib/python2.7/django/db/backends/__init__.py", line 70, in close, referer: https://<some url>
[<some date time>][error] [client 127.0.0.1]     self.connection.close(), referer: https://<some url>
[<some date time>][error] [client 127.0.0.1] InterfaceError: connection already closed, referer: https://<some url>

Do you have ideas on what causes the error? Btw, django version is 1.2.3.

Some notes: - All urls are affected. - I can replicate the error by refreshing a page over and over until the Internal Server Error is displayed

asked 03 Jan '12, 03:48

djs
112
accept rate: 0%

edited 04 Jan '12, 03:54

This looks similar to this post.

(03 Jan '12, 04:16) todork

Yes, but they still haven't found a solution.

(03 Jan '12, 19:09) djs

To me the 'solution' on that page was that something was wrong with the code that is closing the database connection to early. We would need more information about the error itself, possibly a way to reproduce it. Can you isolate this to any given request or URL? If you would like us to look at the problem directly submit a support ticket and we will look.

(03 Jan '12, 20:15) johns

All urls are affected. I'm currently checking for failed imports, but have found nothing so far. I can replicate the error by refreshing any page until the Internal Server Error page is displayed.

(04 Jan '12, 03:28) djs

Hi again. I've spent some time trying to troubleshoot this problem, but didn't come up with anything conclusive. There is an open bug for Django though that seems to be closely related to what you're experiencing. Please look into it, it might help you resolve the problem.

Issues like this one are best handled in a support ticket, so I'd urge you to open one, if you are still unable to resolve this and need further assistance.

(04 Jan '12, 10:31) todork

Will do. Thanks!

(04 Jan '12, 17:54) djs
showing 5 of 6 show 1 more comments
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×909
×55
×1

question asked: 03 Jan '12, 03:48

question was seen: 3,233 times

last updated: 04 Jan '12, 17:54

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM