login community faq

I have a Django app where all pages work except for 2: a page with lots of images and another page with a big image.

When accessed, this pages yield a 504 within 30seconds to 1 minute.

I am using Django - sorl , so I think the 504 comes from sorl processing the thumbnails on first access:

http://stackoverflow.com/questions/11034214/django-sorl-thumbnail-crash-lots-of-large-images

I tried setting the apache TimeOut to 800, but it did not work.

I ran into a webfaction page that said the timeout is a global setting, hence, changing it from apache's httpd.conf would not work.

Is there any other way to set the timeout?

asked Jul 29 '12 at 16:52

yretuta's gravatar image

yretuta
11

edited Jul 29 '12 at 17:13


No, there is no other setting other than in your application. However timeout should not be effected by an image, the image is only 1 file and not the django code which actually renders the site, it is likely not a simple timeout issue, but something within code which is timing out. If you are serving static media as outlined here, than it will be served by nginx, and so the image size should not effect it at all.

answered Jul 29 '12 at 17:21

johns's gravatar image

johns ♦♦
340427

hm. I am serving it via a static app, as said in the link. I am getting "Premature end of script headers: wsgi.py..." on my logs. Any ideas on this?

(Jul 29 '12 at 17:29) yretuta yretuta's gravatar image

It is an issue in the code or Apache configuration, 'premature end of scrip headers' means the HTML headers were not formatted correctly, which is a vague error. You need to try to further isolate the problem by checking the view code on the server without Apache/mod_wsgi to see where the issue might be. You may submit a support ticket with the URLs which are timing out if you would like us to look directly.

(Jul 29 '12 at 17:38) johns ♦♦ johns's gravatar image

like I said I can't really figure out the issue, because most of the pages are working fine. It's not sorl, as you have pointed out, because other pages render the images correctly. I think I'll submit a support ticket.

(Jul 29 '12 at 17:40) yretuta yretuta'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:

×643
×149

Asked: Jul 29 '12 at 16:52

Seen: 499 times

Last updated: Jul 29 '12 at 17:40

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