WIP: fix: ensure large uploads work #84
Draft
p4u1
wants to merge 2 commits from
upload-limit into main
pull from: upload-limit
merge into: coop-cloud:main
coop-cloud:main
coop-cloud:renovate/redis-8.x
coop-cloud:renovate/docker.elastic.co-elasticsearch-elasticsearch-9.x
coop-cloud:renovate/pgautoupgrade-pgautoupgrade-18.x
coop-cloud:feature/imaginary
coop-cloud:kc_stable
coop-cloud:nextcloud-v28
coop-cloud:add-theming-v28.0.5
coop-cloud:add-theming
coop-cloud:update-nginx-conf
coop-cloud:split-bbb-onlyoffice-compos
coop-cloud:split-onlyoffice-bbb-config
coop-cloud:authentik_sso
coop-cloud:healthchecks
coop-cloud:occ_cmds
coop-cloud:auto_app_install
coop-cloud:embed_nextcloud_in_iframe
coop-cloud:auto_configure_sso
coop-cloud:add-postgres-db
No Label
Milestone
No items
No Milestone
Assignees
3wordchant
aadil (Aadil Ayub)
abra-bot (Abra Bot)
ammaratef45
amras (Sarma)
Apfelwurm
appletalk
arjan
basebuilder
BornDeleuze
Brooke
carla
cas (Cassowary)
codegod100
coopcloud
cyrnel
dannygroenewegen (Danny Groenewegen)
decentral1se (d1)
dede
devydave
fauno (fauno)
flancian
Frando
iexos
ineiti (Linus Gasser)
jade (Jade Ambrose)
javielico (Javielico)
jjsfunhouse
jmakdah2 (Jackie Makdah)
joe-irving (Joe Irving)
kawaiipunk (KawaiiPunk)
knoflook
kolaente
lambdabundesverband
linnealovespie (April)
marlon (marlon)
mayel
mirsal
moosemower
moritz
nicksellen (Nick Sellen)
notplants
oxaliq (sorrel)
p4u1
pau
pharaohgraphy (Andrew 🐦🔥❤️🔥✴️)
PhiNatalie
renovate-bot (Comrade Renovate Bot)
ripclap
rix
rscmbbng
sef (sef)
simon
sixsmith (Sixsmith)
stevensting
tobias
trav
val (val (he/him))
vaznasty
virtualboys
wolcen (Chris Thompson)
wykwit
xynosis
yksflip
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: coop-cloud/nextcloud#84
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "upload-limit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
TODO:
memRequestBodyBytes@p4u1 is this ready for testing? we're having this same issue
we tested it anyway! this is what we observe, taking into account we're reverse-proxying coopcloud's traefik with an nginx server (with really high client body size and timeout limits):
PHP_UPLOAD_LIMIT=20G@fauno for me this worked for a 4gb upload. But I also needed the traefik fix coop-cloud/traefik#107
I don't really have time right now to bring both PRS over the finish line so feel free to continue
i'm reading traefik's docs and apparently the maxRequestBodyBytes option is already 0 by default, but memRequestBodyBytes is set at 1MB, should we increase this?
@fauno does this work now and should this be merged?
@p4u1 why have version
NGINX_CONF_VERSION=v8binstead ofNGINX_CONF_VERSION=v9?@ineiti i think it's good as it is, yeah, and we need it for other deployments that'll be too complex for deploying from a branch, so it'd be good if it's released soon
Great - I'm happy to release, but as a new maintainer I would like to understand the following parts first, to make sure nothing else breaks:
8ainstead of9maxRequestBodyBytescan be removed, correct?memRequestBodyBytes? @fauno do you need it?maxRequestBodyBytessince it may change in the futurememRequestBodyBytesshould be bigger, the default is too low394b68a920tobc209de28eHey, I am afk until next Werk so feel free to Marke any edits here.
I usually do this while testing my changes. Theetter should be removed
Just for me to understand: the merge in coop-cloud/traefik#107 which still contains the letter - is this a mishap, or do you expect it to be fixed on the next tagged release?
I'm trying to find out all the best practices :)
What is a reasonable size then? Currently it's 1MiB, should we go to 16MiB?
Yes, did some digging and saw it works - but I corrected my comment while you replied :) I had other problems with those variables, IIRC related to ansible, and got confused...
Yes this was a misshap
Added a TODO in the first message - I'll concentrate on merging the new versions of the containers and let whoever needs this take care of the TODO.
bc209de28etobb8f0e342f@fauno @p4u1 I added a variable for the
memRequestBodyBytes- can you please check if it works? I rebased it on the latest version, so I think it's best if first you do aabra app upgradefor the nextcloud, and then test this branch here.Or how do you usually work with your own branch? Just check it out and then use
--chaos?@@ -25,6 +25,7 @@ EXTRA_VOLUME=/dev/null:/tmp/.dummyPHP_MEMORY_LIMIT=1GPHP_UPLOAD_LIMIT=512MMEM_REQUEST_BODY_SIZE=$(( 1048576 * 16 ))is this evaluated?
yes, is there another way? :P
It's the only official way I know, so I was curious if there is a smarter way to do so :)
I'm using my special abra from here: https://git.coopcloud.tech/ineiti/abra, which allows to have a
in your
service.domain.envfile. So you can have the same recipe from the original and from the special path. And it also works if you have all yourservers/*files in a git on more than one computer.But it's still a bit buggy, and LLM-vibe coded, so use at your own risk :)
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.