NextCloud下载大文件下载停止每1GB

发布于 2025-01-26 04:19:33 字数 1034 浏览 5 评论 0 原文

我已经在Arch Linux上运行NextCloud数月了,并且从未得到大型文件正常工作。得到了数十个没有奏效的建议。当我尝试上传一个大文件时,会说“组装块时的错误。状态代码504”。尽管有警告,但仍将上传良好。当您尝试下载大文件时,它将停止每个1GB。将UWSGI作为应用程序服务器和NGINX作为Web服务器运行。它完全停止1GB,因此我敢肯定这不是时间问题,而更多的是最大上传文件大小问题。

尝试上传大文件时:4月5日20:06:58 thinkarch nginx [287526]:2022/04/05 20:06:58 [错误] 287526#287526: *63144上游封闭的过早连接,同时阅读上游,客户:上游,客户: 192.168.50.1,服务器:cloud.atavismxi.com,请求:“ get/remote.php/webdav/atavismxi/atavismxi-installer-1.61.zip http/1.1”,上游: /nextCloud.sock:“,主机:”

以下是我的conf文件。其他人提出的一些建议仍在其中。一些建议消失了。但是我尝试了很多不同的NGINX设置。

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

post_max_size = 5G

“ https://pastebin.com/18e1fwip” rel =“ nofollow noreferrer”> https://pastebin.com/18e1fwip

php-set = upload_max_filesize=10G

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

    client_max_body_size 0;

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. It stops at exactly 1GB so I'm sure it's not a timing issue and more of a max upload file size issue.

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: 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"

Below are my conf files. Some of the suggestions other people made are still in them. Some of the suggestions are gone. But I've tried a lot of different nginx settings.

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

post_max_size = 5G

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

php-set = upload_max_filesize=10G

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

    client_max_body_size 0;

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

慵挽 2025-02-02 04:19:33

我遇到了同样的问题,发现 proxy_max_temp_file_size 在我的nginx上是限制。

文档建议一些决议。

如果您的网站位于Nginx前端后面(例如,负载总计者):

默认情况下,由于protxy_buffering和protxy_max_temp_file_size,下载将限制为1GB。

如果您可以访问前端的配置,请禁用proxy_buffering或从默认的1GB中增加proxy_max_temp_file_size。


I was having the same issue and found that proxy_max_temp_file_size on my nginx was the limitation.

The docs suggest some resolutions.

If your site is behind a nginx frontend (for example a loadbalancer):

By default, downloads will be limited to 1GB due to proxy_buffering and proxy_max_temp_file_size on the frontend.

If you can access the frontend’s configuration, disable proxy_buffering or increase proxy_max_temp_file_size from the default 1GB.
https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/big_file_upload_configuration.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文