Large File Downloads stop every 1GB

I’ve been running nextcloud on arch linux for months and have never gotten large files to work properly. Gotten dozens of suggestions that haven’t worked. When I try and upload a large file it says something like “Error when assembling chunks. Status code 504.” It will still upload fine despite the warning. When you try and download the large file it will stop every 1GB. Running uwsgi as the application server and nginx as web server.

Below are my conf files. Some of the suggestions other people made are still in them. Some of the suggestions are gone.


nextclpud.ini (for uwsgi)


Edit: Journal when trying to upload large file: Apr 05 20:06:58 thinkArch nginx[287526]: 2022/04/05 20:06:58 [error] 287526#287526: *63144 upstream prematurely closed connection while reading upstream, client:, server:, request: “GET /remote.php/webdav/example/ HTTP/1.1”, upstream: “uwsgi://unix:/run/uwsgi/nextcloud.sock:”, host: “