malariagen / datalab

Repo for files and issues related to cloud deployment of JupyterHub.
MIT License
0 stars 1 forks source link

Can't save notebook, `413 Request Entity Too Large` #73

Closed leehart closed 4 years ago

leehart commented 4 years ago

I'm consistently getting 413 Request Entity Too Large and can't save my notebook, presumably because it gets too big. I can open and save a smaller version of the same notebook.

Are we using nginx for Datalab? I wonder if we're running into https://github.com/jupyterlab/jupyterlab/issues/4214 and might want to disable size-checking with client_max_body_size 0

Ref: malariagen/vector-ops/pull/1114

leehart commented 4 years ago

Update after chat with @slejdops

I'm guessing there's a limit somewhere of 64 MB.

For instance, I can save a 60 MB notebook, which contains info for 6 sample sets, but when I try to save the information for the 7th sample set (estimate 10 MB per sample set) I get the error.

Saving the notebook at size 60 MB takes a moment, as might be expected.

It seems sensible to have some sort of limit, and we probably want to discourage notebooks over a certain size anyway. @slejdops is seeing if there's a way to control this limit, assuming it exists.

leehart commented 4 years ago

Closing because @slejdops has discovered how to increase the limit, and I am now able to save a 70 MB notebook. (My notebook probably would have reached about 280 MB, but I have since switched to using one notebook per sample set.)

alimanfoo commented 4 years ago

Thanks Lee. Just to say we should try to keep notebooks smaller anyway to avoid overloading git(hub). I'm surprised these notebooks are getting so big, I guess it must be the bokeh plots?

On Wed, 27 Nov 2019 at 13:28, Lee notifications@github.com wrote:

Closed #73 https://github.com/malariagen/datalab/issues/73.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/malariagen/datalab/issues/73?email_source=notifications&email_token=AAFLYQRSSNW3CRCAMQO7VWDQVZYZNA5CNFSM4JRLE5G2YY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOVECG7WQ#event-2835640282, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFLYQSAOKCMA5KUNMXMSKLQVZYZNANCNFSM4JRLE5GQ .

--

Alistair Miles Head of Epidemiological Informatics Centre for Genomics and Global Health Big Data Institute Li Ka Shing Centre for Health Information and Discovery University of Oxford Old Road Campus Headington Oxford OX3 7LF United Kingdom Phone: +44 (0)1865 743596 or +44 (0)7866 541624 Email: alimanfoo@googlemail.com Web: http://a http://purl.org/net/alimanlimanfoo.github.io/ Twitter: @alimanfoo https://twitter.com/alimanfoo

Please feel free to resend your email and/or contact me by other means if you need an urgent reply.