You are not logged in.

#1 2022-04-13 15:29:06

Grahf
Member
Registered: 2019-09-03
Posts: 10

Nextcloud 504 when uploading large files and stops downloads at 1GB

I've been running nextcloud for months and have never gotten large files to work properly. When you try to upload a large file it will say "Error when assembling chunks. Status code 504" but still seems to upload the file fine. When downloading a file larger than 1GB the download will always fail at 1GB. Journal when download fails says:
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: 192.168.50.1, server: cloud.atavismxi.com, request: "GET /remote.php/webdav/AtavismXI/AtavismXI-Installer-1.61.zip HTTP/1.1", upstream: "uwsgi://unix:/run/uwsgi/nextcloud.sock:", host: "cloud.atavismxi.com"`

Nextcloud was setup according to ach wiki. Using uWSGI as application server and nginx as web server. Only change to the below config file is line 76 of nextcloud.ini reads php-set = post_max_size = 10G which did not help.

php.ini: https://pastebin.com/gzdxGBqD

nextcloud.ini (for uwsgi) https://pastebin.com/18e1Fwip

nginx.conf: https://pastebin.com/X8GWikHj

I've changed dozens of time out and max size settings....nothing seems to have an effect.

Offline

#2 2022-04-15 10:22:50

jonas-w
Member
Registered: 2022-04-15
Posts: 2

Re: Nextcloud 504 when uploading large files and stops downloads at 1GB

It's a gateaway timeout, you need to adjust your timeout settings!
It times out because it goes above that 60 seconds you specified in your php.ini

Offline

#3 2022-04-15 15:13:54

Grahf
Member
Registered: 2019-09-03
Posts: 10

Re: Nextcloud 504 when uploading large files and stops downloads at 1GB

If it's max_execution_time you're referring to I set it to 240.  No change. The download fails at 1GB. I get to 1GB in like 10 seconds.

jonas-w wrote:

It's a gateaway timeout, you need to adjust your timeout settings!
It times out because it goes above that 60 seconds you specified in your php.ini

Offline

Board footer

Powered by FluxBB