Univention Bugzilla – Bug 42357
App Center Self Service: upload fails for (very) big files
Last modified: 2016-12-01 16:27:12 CET
Tried to upload a 190MB debian package to the selfservice. Brower got stuck and the upload never finished. Browser dev tools said Bad Gateway The proxy server received an invalidresponse from an upstream server. for the upload request. Apache log file: Im apache Error Log sieht man folgendes: [Fri Sep 09 16:51:02 2016] [error] [client 82.198.197.8] File does not exist: /var/www/univention-management-console/js_$20160809234802$/dijit/themes/umc/icons/scalable/.svg, referer: https://selfservice.software-univention.de/univention-management-console/?lang=de-DE [Fri Sep 09 16:51:18 2016] [error] (103)Software caused connection abort: proxy: pass request body failed to 127.0.0.1:8090 (127.0.0.1) [Fri Sep 09 16:51:18 2016] [error] proxy: pass request body failed to 127.0.0.1:8090 (127.0.0.1) from 82.198.197.8 ()
How long did the upload take exactly? You can see this in the network console of chromium.
(In reply to Florian Best from comment #1) > How long did the upload take exactly? You can see this in the network > console of chromium. not to long, got error messages in dev tools and apache after maybe 1 or 2 minutes, but the UMC loading screen never went away
Created attachment 8161 [details] patch Apply the patch and set umc/http/max_request_body_size=0 and there is no size limitation anymore :)
And you need to set "umc/server/upload/max" because the UMC-Server checks also for the size of each uploaded file.
Thanks! Do we need to set this variable also in a apache config file? I have applied the patch to Self Service. Should be fixed along with the next frontend update, otherwise the patch is lost.
(In reply to Dirk Wiesenthal from comment #5) > Thanks! > > Do we need to set this variable also in a apache config file? I have applied > the patch to Self Service. Should be fixed along with the next frontend > update, otherwise the patch is lost. Nothing needs to be done in apache. The default in apache is 0: https://httpd.apache.org/docs/2.4/de/mod/core.html#limitrequestbody
univention-management-console-frontend.yaml: r74349 | YAML Bug #42357 univention-management-console.yaml: r74349 | YAML Bug #42357 r74348 | Bug #42357: The maximum request size can now be configured via the UCR variable umc/http/max_request_body_size. univention-management-console-frontend (5.0.63-50): r74348 | Bug #42357: The maximum request size can now be configured via the UCR variable umc/http/max_request_body_size. UCS 4.2 merge: univention-management-console (9.0.13-1): r74350 | Bug #42357: The maximum request size can now be configured via the UCR variable umc/http/max_request_body_size.
Changes work fine for UCS 4.1-4. VERIFIED.
<http://errata.software-univention.de/ucs/4.1/349.html>