If minlo or other S3 storage is used as the NextCloud backend, uploading files larger than a certain size (2G or more) may result in assembly failure

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 32.0.1
  • Operating system and version (e.g., Ubuntu 24.04):
    • ubuntu 25
  • Web server and version (e.g, Apache 2.4.25):
    • nginx version: nginx/1.28.0 (Ubuntu)
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • NULL
  • PHP version (e.g, 8.3):
    • php8.4
  • Is this the first time you’ve seen this error? (Yes / No):
    • YES
  • When did this problem seem to first start?
    • YES
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • use self install
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • NO

use install Ubuntu 22.04 LTS 上的示例安装 — Nextcloud 最新管理手册最新文档

Afterwards, the S3 storage configuration was configured as follows

‘objectstore’ =>
array (
‘class’ => ‘\OC\Files\ObjectStore\S3’,
‘arguments’ =>
array (
‘bucket’ => ‘nextcloud’,
‘hostname’ => ‘192.168.11.201’,
‘key’ => ‘minioadmin’,
‘secret’ => ‘minio-secret-key-CHANGE-ME’,
‘port’ => 9000,
‘use_path_style’ => true,
‘use_ssl’ => false,
),
),

Reuse nginx as a load balancing server for S3 and HAProxy

# Global settings
global
    log /var/lib/haproxy/haproxy.log local0
    log /var/lib/haproxy/haproxy.log local1 notice
    #chroot /var/lib/haproxy
    stats timeout 30s

# Defaults
defaults
    log global
    mode http
    option httplog
    option dontlognull
    timeout connect 5000
    timeout client 50000
    timeout server 50000

# Frontend configuration to WEB
frontend minlo_frontend_WEB
    bind 0.0.0.0:9001         # HAProxy监听的端口
    mode http
    default_backend minlo_nodes_WEB  # 默认将请求转发到名为 minlo_nodes 的后端




# Backend configuration to WEB
backend minlo_nodes_WEB
    mode http
    balance roundrobin           # 负载均衡算法,轮询方式分发请求
    option forwardfor

    # Define your minlo server nodes below
    server minlo1 minlo1:9001 check 
    server minlo2 minlo2:9001 check 
    server minlo3 minlo3:9001 check
    server minlo4 minlo4:9001 check  
    # Add more minlo server nodes as needed




#Frontend configuration to minlo API
frontend minlo_frontend_API
    bind 0.0.0.0:9000         # HAProxy监听的端口
    mode http
    default_backend minlo_nodes_API  # 默认将请求转发到名为 minlo_nodes 的后端


# Backend configuration
backend minlo_nodes_API
    mode http
    balance roundrobin           # 负载均衡算法,轮询方式分发请求
    option forwardfor

    # Define your minlo server nodes below
    server minlo1 minlo1:9000 check  
    server minlo2 minlo2:9000 check  
    server minlo3 minlo3:9000 check  
    server minlo4 minlo4:9000 check 
    # Add more minlo server nodes as needed



The minlo service needs to be completed according to the relevant configuration beforehand!

After uploading files larger than 2G, there may be assembly waiting errors. The specific phenomenon is a long wait for this process, and then the progress bar refreshes after completion. The new file does not appear in the file