Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload Failed: 413 Request Entity Too Large #2159

Closed
ctag opened this issue Oct 19, 2017 · 3 comments
Closed

Upload Failed: 413 Request Entity Too Large #2159

ctag opened this issue Oct 19, 2017 · 3 comments
Labels
unreproduced No reproduction in a dev setting yet, further analysis blocked by that

Comments

@ctag
Copy link

ctag commented Oct 19, 2017

What were you doing?

Uploading a larger-than-normal gcode file (2.2MB) results in a failed upload and the error "Upload Failed | 413 Request Entity Too Large"

On previous Octoprint versions I've been able to upload files this large and larger. I'm prefacing that I am uncertain whether this error is caused by upgrading or by misconfiguration.

What did you expect to happen?

Successful file upload.

What happened instead?

File upload fails both from UI and API call from Slic3r.

Did the same happen when running OctoPrint in safe mode?

Yes.

Branch & Commit or Version of OctoPrint

OctoPrint 1.3.5.post0.dev0+g77753ca0 (master branch)

Operating System running OctoPrint

Archlinux-arm, Raspberry Pi 3

Printer model & used firmware incl. version

Printrbot Simple Metal

Browser and Version of Browser, Operating System running Browser

Chromium 61, Archlinux

Link to octoprint.log

https://gist.github.com/ctag/ca53be0c50c1eef13678fde6383c46b4

Link to contents of terminal tab or serial.log

Appears to be N/A

Link to contents of Javascript console in the browser

https://gist.github.com/ctag/d24519e93c4a254f063028ec09748088

Screenshot(s)/video(s) showing the problem:

Appears to be N/A

I have read the FAQ.

Thanks.

@foosel
Copy link
Member

foosel commented Oct 20, 2017

Hm... I just uploaded a 5MB GCODE file without any issues to a 1.3.5 instance. The upload endpoint by default should allow uploads of up to 1GB (unless you've changed your config, check if server.uploads.maxSize is set in config.yaml and if so to a lower value than 1073741824). There were no changes in the upload mechanism either between 1.3.4 and 1.3.5.

Two things I noticed here:

OctoPrint 1.3.5.post0.dev0+g77753ca0 (master branch)

That's not a clean 1.3.5 install, something in your sources is modified compared to stock 1.3.5. I'd investigate what that is to make sure that's not the reason here.

Your logs also indicate that you are connecting via an external URL. To rule out anything in between interfering (e.g. a reverse proxy which limits payload sizes), try a direct connection (localhost or at least direct LAN connection).

@foosel foosel added the unreproduced No reproduction in a dev setting yet, further analysis blocked by that label Oct 20, 2017
@foosel
Copy link
Member

foosel commented Oct 20, 2017

And a third thing I just noticed: no log line about your failing upload attempts, which makes it sound like those don't even reach OctoPrint, making the "something in between going wrong" guess more likely.

@ctag
Copy link
Author

ctag commented Oct 20, 2017

@foosel,

Thank you. I apologize for having you troubleshoot 3rd party software for me.

The issue was being caused by my Nginx proxy, which I had forgotten was a part of the mix. Adding client_max_body_size 1G; to the Nginx configuration file allows uploads as expected.

@ctag ctag closed this as completed Oct 20, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
unreproduced No reproduction in a dev setting yet, further analysis blocked by that
Projects
None yet
Development

No branches or pull requests

2 participants