DjangoBB

Django based forum engine

  • You are not logged in.

#1 July 10, 2013 20:09:31

findhorn
Registered: 2011-06-26
Posts: 14
Reputation: +  0  -
Profile   Send e-mail  

error: [Errno 32] Broken pipe

Hello

just installed /djangobb/get/tip.tar.gz and /djangobb_project/get/tip.tar.gz into a virtualenv and then using the basic_project. Everything works fine until I set DEBUG = False, any request then returns a 500 server error and a "error: Broken pipe". This happens when using either the dev server or gunicorn. The error happens for both dynamic pages e.g. forum/ and for static e.g. favicon.ico. If I return to DEBUG = True everything works fine again.

Traceback attached.

Any ideas why this might be happening?

Attachments:
attachment traceback.txt (1.5 KB)

Offline

#2 Aug. 1, 2013 18:10:21

findhorn
Registered: 2011-06-26
Posts: 14
Reputation: +  0  -
Profile   Send e-mail  

error: [Errno 32] Broken pipe

Partially solved.

I don't know why this was happening only when DEBUG = False (perhaps because when DEBUG = True things are loaded in a different order?) but as soon as the variable was changed I would get this error:

SuspiciousOperation: Invalid HTTP_HOST header (you may need to set ALLOWED_HOSTS):

which led to the 500 error. This was happening on my set up because I was using a development machine which I access using an internal domain. As the error message suggests adding the following to settings.py solved it:

ALLOWED_HOSTS = ['mylocal.domain']

Offline

Board footer

Moderator control

Powered by DjangoBB

Lo-Fi Version