Django & Python app crashes after file upload

Repository of web frameworks and applications for Microsoft IIS.
User avatar
Posts: 1
Joined: 18 Jun 2014, 10:00

Django & Python app crashes after file upload

18 Jun 2014, 10:48

We have a python and django app, and it is crashing periodically after a file upload... Sometimes when we upload a small file, things work the first few times and then the app gradually seems to become less responsive and become deadlocked. When we upload a larger file (10MB+), the app as a whole crashes straightaway. The app seems to become unresponsive and recycling the application pool doesn't work, the server throws an error and says that the application pool can't receive messages. We believe that file upload somehow is causing the application pool to become corrupt.

We have to kill and restart IIS in order for the app to start working again.

Zoo version: 3.1.98.508
IIS Manager Module veson: 4.0.5.13
Python version: 2.7
Django version: 1.4

The app was running stable for a very long time, and it seemed to break after the web platform installer got updated.

We had a few questions:
1. Is it possible for us to downgrade to a particular version of Helicon Zoo? How would one go about doing so?
2. How difficult is it to upgrade to the latest beta version of Helicon Zoo, as this seems to fix a lot of the issues that we are seeing? I know we have to change the feed URL, but how do we go about doing so?

Thank you very much for the help.

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Django & Python app crashes after file upload

18 Jun 2014, 11:05

Hello,

First this we advise you to do (and you actually asked about it) is to upgrade to the latest build from beta feed.
Upgrade process is very similar to installation process.
Here't the link to beta feed that you should put instead of your current feed for Zoo: http://www.helicontech.com/zoo/feed-beta.xml
After that when you go to Zoo -> Modules you should click Add next to Zoo Module and then Install at the bottom of the dialog to upgrade Zoo module.

User avatar
Posts: 2
Joined: 18 Jun 2014, 21:45

Re: Django & Python app crashes after file upload

18 Jun 2014, 21:55

Hi Anton,

Thanks for the quick reply. I work with pbk and we have a couple of follow-up questions about the upgrade of Helicon Zoo.

Our Windows is 64 bit, but our Python/Django app is using the 32 bit Python 2.7 version.

1. Will the Helicon Zoo beta update still work with that setup or do you foresee any problems?
2. Should we also prepare ourselves that we need to upgrade Python to a 64bit version as well?

Most important questions however are:

3. Can we do the upgrade somehow through the command line? Is there a command line interface to do this and if so, could you please point us to the documentation on how to use it? Thank you!

I ask because the system in question is behind corporate firewalls and VPNs and we have to jump through a lot of hoops and an extra secure laptop just to connect to the system and once connected via RDC it is painfully slow to work with, e.g. one click takes anywhere between 10 ~ 120 seconds to register. To alleviate the pain we have set up a SSH tunnel that allows us to remote in and do most frequent work via the command line, which is a lot less painful.

Thank you very much for the help.

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Django & Python app crashes after file upload

19 Jun 2014, 06:29

Hello,

1. there should be mo problems upgrading Zoo on your system.
2. Based on a number of tests we've conducted in most situations 32-but Python on 64-bit Windows has higher performance than the 64-bit one. 64-bit Python worked better only with virtualization.
3. Yes, WebPI has its command line which you can use to install Zoo: http://www.iis.net/learn/install/web-pl ... tw-release

User avatar
Posts: 2
Joined: 18 Jun 2014, 21:45

Re: Django & Python app crashes after file upload

20 Jun 2014, 00:10

Hi Anton,

Thanks for your help. We were able to update the HeliconZoo installation and our file upload problems went away. Nice! That's a good start into the weekend right there :-)

Return to Helicon Zoo

Who is online

Users browsing this forum: No registered users and 3 guests