Le 31/01/2012 09:18, nick name a écrit :
No, the thread started with Ie8 being suspects, but at least from my
experiments it is a problem in Rocket which can be triggered with any
browser or even without a browser (e.g. wget/curl instead of a browser)
See e.g.
https://github.com/explorigin/Rocket/issues/1#issuecomment-3734231
The reason it works locally for you and not in production is probably
because you have lower bandwidth to the production machine, triggering
timeouts.
If changing SOCKET_TIMEOUT to 10 in rocket.py makes the problem go
away for you (or at least much less frequent), then this is your
problem too.
(This is not really a solution -- it doesn't address the cause, and it
interferes with timely detection of problems -- but it will let you
know if you are experiencing the same problem or a different one)
Thanks for the explanation. I have changed the SOCKET_TIMEOUT to 10,
removed the *.pyc files to be sure, and I have half a success.
I now have a NOT corrupted tar.gz file but with a wrong content. I mean
that the archive contains a single 2.0GB temporary file (not the real
size of course, size shown in the unzipping tool) instead of several
.csv files.
I will install the same environment on my local machine (uwsgi + nginx)
to see differences.
Thanks,
Thomas