nuki47
August 3, 2022, 8:08pm
1
What is the problem?
Upload fail: Maximum request body size 16777216 exceeded, actual body size 16998885
What did you already try to solve it?
yes, upload works with smaller gcode files
Have you tried running in safe mode?
yes
Did running in safe mode solve the problem?
no
Systeminfo Bundle
You can download this in OctoPrint's System Information dialog ... no bundle, no support! )
octoprint-systeminfo-20220803220909.zip (56.1 KB)
Additional information about your setup
OctoPrint version 1.8.1 - addon in Home Assistant, printer: Ender 3 v2, firmware, browser: firefox 103.0.1, operating system: windows 10, ..
Am I right in reading that the file you are trying to upload is only ~16MB? What's generating/where are you seeing that message?
OctoPrint's default maximum upload size is 1GB, which is configurable in config.yaml (link to docs ). Since you've said you installed it through a home assistant add-on, I wonder if this is what is restricting the file size not OctoPrint.
nuki47
August 4, 2022, 5:27am
3
File size is 21.927 kB
I got this error in the Octoprint Web GUI (integratet in Home Assistant)
Where can I edite the config.yaml if I use Octoprint as an Addon?
As you run OctoPrint along with HomeAssistent, please tell us the remaining memory for saving files. You can find it here:
Also the place where you store those files as well as the Disk space thresholds:
nuki47
August 4, 2022, 6:33am
5
(Sorry for 3 posts, new users can only put one file into a posting)
I don't know where config.yaml is but I would expect that whoever made the add-on you are using might have documented it somewhere.
If the default is 1GB and your file is 20KB, then I don't think OctoPrint is the problem here. I am wondering if there is something in the add-on that is causing an issue. I have no idea how it works to guide on that.
arek
August 4, 2022, 7:57am
9
It's home assistant limit, not octoprint.
opened 10:07AM - 10 Jun 21 UTC
closed 07:19AM - 08 Jul 21 UTC
enhancement
### Describe the issue you are experiencing
First of all: I am sorry if this mi⦠ght be the wrong HA repository for this bug report as I am not sure if this is an issue in the supervisor or frontend, but I am trying to file it here first.
As said in the subject of this issue, large file uploads of files > 16MB are currently not possible if they are routed via ingress. In fact, third party add-ons like [RaspberryMatic](https://github.com/jens-maus/RaspberryMatic/) or OctoPrint, etc. already faced this issue because their web interfaces have file upload capabilities to allow to upload files (e.g. backups, data, etc.), but as soon as their web interfaces are accessed via ingress these requests fail with common `413 Request Entity is too large` responses to their POST requests.
See here:
https://github.com/jens-maus/RaspberryMatic/issues/1294
https://community.home-assistant.io/t/repository-octoprint/22883/101
As soon as the web server of these addons are directly accessed outside the common home assistant web interface (e.g. by using direct port mapping in the add-on settings), thus without ingress routing these requests, file upload succeed correctly for file sizes > 16MB.
However, it still is highly desirable to allow for POST requests (e.g. file uploads) via ingress to succeed even for sizes > 16MB. E.g., for the RaspberryMatic addon users have to upload backup data which could easily succeed sizes > 500MB, thus would prevent any ingress use.
### What is the used version of the Supervisor?
supervisor-2021.05.4
### What type of installation are you running?
Home Assistant OS
### Which operating system are you running on?
Home Assistant Operating System
### What is the version of your installed operating system?
6.0
### What version of Home Assistant Core is installed?
core-2021.6.3
### Steps to reproduce the issue
1. Install one of the third-party HA add-ons (RaspberryMatic, OctoPrint)
2. Use their file upload capabilities to try to upload files > 16MB in size
3. Note that POST requests with sizes > 16Mb fail with a `413 Request Entity is too large` request status
4. Note that the response of the request is cancelled with a `Maximum request body size 16777216 exceeded, actual body size 16778032` message by ingress.
### Anything in the Supervisor logs that might be useful for us?
```txt
no error/warnings logged upon the error event.
```
### Additional information
_No response_
nuki47
August 4, 2022, 8:35am
10
ok, but there is no solution/workaround?
It's a homassistant issue with an homeassistant plugin - I guess you should ask them for a workaround
It's like calling your tv manufacturer because an app on the firetv isn't working.
arek
August 4, 2022, 11:54am
12
It seems to be hardcoded here
and with 1,300+ open issues, good luck getting them to change it
system
Closed
November 2, 2022, 2:27pm
14
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.