login community faq

My site has stopped working, for no reason that I can see.

The only clue I have is that every access leaves the same error in ~/logs/frontend/error_marcintustin.log:

1
2012/03/26 15:54:32 [info] 27445#0: *32607675 client prematurely closed connection, so upstream connection is closed too while sending request to upstream, client: 176.251.37.58, server: marcintustin.webfactional.com, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:34077/", host: "marcintustin.webfactional.com"

This is a django application, but no log is even created, so I'm fairly certain that my django application is not even being invoked. Nothing has changed in my wsgi file since this has happened, and in any case, I don't know how to log things from the wsgi file.

I'm also able to run the django app using the built-in test server without error.

Is there any way to debug this error? I'm at my wits' end.

asked Mar 26 '12 at 09:01

Marcin's gravatar image

Marcin
314

edited Mar 26 '12 at 09:22

Did you ever find an answer to this problem?

(Jan 13 at 14:14) netpoetica netpoetica's gravatar image

'client prematurely closed connection' means that the client (ie, the browser that was visiting your site) closed the connection. It's not really a primary indication of a problem with your app - for that, you should look in ~/logs/user/error_(name of your app).log.

answered Mar 26 '12 at 10:40

seanf's gravatar image

seanf ♦♦
59491220

@seanf I'm getting that error in log file in the said directory. I'm also curious how to troubleshoot this because the error is very vague. I was able to access the site no problem until I followed the steps on htaccess/htpasswd from http://docs.webfaction.com/software/static.html#password-protecting-a-directory-with-a-static-cgi-php-app

Any suggestions?

(Jan 13 at 14:09) netpoetica netpoetica's gravatar image

The above link is for Static/CGI/PHP based applications and in the question it mentions that it is Django application which will require some modifications. Here is a post on password protecting a Django based application.

If you still having a problem, Please open a ticket at our support site and we'll help you find the cause of the issue.

(Jan 13 at 15:32) timg ♦♦ timg's gravatar image
Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
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

Tags:

×652
×151
×74
×44

Asked: Mar 26 '12 at 09:01

Seen: 1,267 times

Last updated: Jan 13 at 15:33

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited