-
Notifications
You must be signed in to change notification settings - Fork 191
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
springframework.web.multipart.MaxUploadSizeExceededException: Maximum upload size exceeded (Error upload files to hawkbit) #2219
Comments
This seem like a pure Spring exception / problem and you have to fix it by configuring Spring properly. Note that in your case the application consists of two containers - monolith update server and simple web ui server - where you get the exception? You may try to add configuration to the simple ui also (I'm not sure who exactly drops the large files). |
I change parameters in docker image and have next errors: |
You could see the Docker file how the memory is configured: ARG X_MS=768m
ENV X_MS=${X_MS}
ARG X_MX=768m
ENV X_MX=${X_MX} so, you may increase your memory in order to do not get OOM (if it is possible - I mean for your usecase it may require too much memory). |
@avgustinmm I changed parameters: full log error: |
do you have any error on the update server side? |
No, only previously errors |
but I have next warning: |
@avgustinmm maybe need add other docker image |
500 error (internal server error) indicates that probably an unexpected error has occurred on the the update server.
|
|
@avgustinmm where in docker image I can change next parameters: |
I find what error, but I don |
All spring properties you could add as described in #2219 (comment) |
Regarding OOM - I took a look, and:
Regarding you '500' issues - it could be related to tomcat handling - e.g. need to access FS or whatever. Anyway, I just tested the following (using latest docker images):
So, to me, it seems that the latest (0.7.0) docker images and the incorporated jar files (monolith & simple ui) are fine and support artifact uploads if properly configured. |
@avgustinmm last version docker image for hawkbit-update-server has next error: |
I do the same:
|
@avgustinmm now works services with small files, but we upload to devices swu files size more 500Mb. I added next parameters: |
@avgustinmm i found problem with docker image |
what was the problem? with which docker image? |
@avgustinmm for bigger files, need change next parameters in hawkbit-simple-ui: |
Ok, so, as I understand now it works. With next version OOM should not occur even with smaller memory. |
Thank you, Mr. @avgustinmm |
When uploading a file larger than 1Mb, the following error is displayed on the screenshot
The system is deployed using docker compose with the new version of images version 0.7.0 (I did not observe this problem on version 0.4.1).
I added the following parameters to hawkbit/hawkbit-update-server, but they did not help:
environment: - SPRING_HTTP_MULTIPART_FILE_SIZE_THRESHOLD=2MB - SPRING_HTTP_MULTIPART_MAX_FILE_SIZE=10MB - SPRING_HTTP_MULTIPART_MAX_REQUEST_SIZE=50MB
Can you tell me how to change the parameters to increase file uploads in docker compose in which image and what parameters to add?
P.S.: we are currently testing on the monolit version, but we plan to switch to the micro-services version
Translated with DeepL.com (free version)
The text was updated successfully, but these errors were encountered: