Comments (11)
Should be all set. Messed it up when I commented out some of the ssl stuff.
from docstore.
There was a report from Kai about some kind of "file too big" problem, investigating. That was a 135MB document.
from docstore.
I double-checked and Nginx is still 2G. If you have additional info on what the error was I can dig into it. Could be a timeout or something else
from docstore.
Aha! Tornado has a maximum upload size, but you can now customize it for the docstore app via max_file_size:
in settings.yml
. Note that the higher this is, the more memory the server will use!
I also updated docstore to use just Python 3. @eby if this is an issue I could add some backwards compatibility. Python 2 is end of life in 5 months, but I know all too well there's lots of Python 2 still out there!
from docstore.
Alright. It is up now with a 500M max_file_size to see how it does with memory. Also switched to python3. Let me know if you notice any issues @vielmetti
from docstore.
So again I'm not a python programmer. It looks like this has come up quite a bit. Not sure if the latest tornado already fixes the memory use but I found that there is a module to help buffer straight to disk so that memory isn't filled up: https://pythonhosted.org/tornadostreamform/
Supposedly bottle and flask already moved to a buffer to disk model when uploads are > small limit.
from docstore.
Yeah, tornado.web.stream_request_body
looks promising, but from some quick investigation it looks like it might have some compatibility issues with XSRF cookies (at least in tornado 5).
from docstore.
I was able to upload http://a2docs.org/view/539 (about 130M) now with no issues.
I'll leave this issue open for you all to sort out if there should be any code changes (especially re tornado.web.stream_request_body
) but am happy otherwise to close as "solved".
from docstore.
@vielmetti / @eby, can this ticket be closed out now?
from docstore.
I think someone should take a look at if tornado.web.stream_request_body
(or something similar) could be used before closing this out.
from docstore.
Started a new #28 so this one can close.
from docstore.
Related Issues (20)
- Compatibility: "view" URL for detail of each uploaded document HOT 7
- 500: Internal Server Error on upload HOT 3
- Make webserver script executable HOT 1
- Several templates' title blocks have "A2" hardcoded in them HOT 2
- User Management and FOIA Request Tracking HOT 2
- Sample Support Scripts HOT 5
- 500: Internal Server Error on download after upload HOT 4
- Comma in filename HOT 1
- Database cleanup tools HOT 2
- HTTPS support for a2docs.org HOT 15
- Run minio on the docstore server in read-only mode to support S3 access to files? HOT 3
- Enhancement: RSS Feed HOT 2
- tornado.web.stream_request_body vs. Request Entity Too Large.
- consider setting content-type on attached files HOT 4
- Auth Broken in Python 3 HOT 1
- 500 error when not logged in HOT 2
- 500: Internal Server Error after upload to a2docs HOT 3
- Review queued docs due to earlier server error HOT 1
- header style and project logo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docstore.