Again NS8 / Nextcloud upload timeout problems

Hi there,

Similar to this thead Uploading a file through nextcloud’s web interface timeouts after 60s - #26 by pagaille but this time the problem appears when syncing regular files on regular accounts with the desktop client.

That Nextcloud instance is migrated from NS7. Here’s what I checked and tested :

PHP : max_execution_time=0, max_input_time=-1 → :white_check_mark:
PHP-FPM : request_terminate_timeout=0 → :white_check_mark:
nginx (nextcloud-nginx) : fastcgi_request_buffering off présent, client_max_body_size 10G :white_check_mark:
chunk_size réduit à 52428800 (50 MB) → no effect
chunk_size=0 (désactivation chunking, PUT direct) → no effect

tried to add a this into Traefik’s configs/nextcloud1.yml :



entryPoints:
http:
transport:
respondingTimeouts:
readTimeout: “0s”
https:
transport:
respondingTimeouts:
readTimeout: “0s”

not working either

The timeout is always 60s.

Any idea ?

txs

Log

reqId:      CqFvWHwd3u6Equ1tv585
level:      3
time:       2026-06-09T11:36:46+00:00
remoteAddr: 87.64.43.248
user:       0b124912-cf40-103b-8c17-97cc04a4598d
app:        no app in context
method:     PUT
url:        /remote.php/dav/files/0b124912-cf40-103b-8c17-97cc04a4598d/Chantiers/Archives/2024/nameredacted-chassis_platine.pdf
scriptName: /remote.php
userAgent:  Mozilla/5.0 (Macintosh) mirall/33.0.5 (Nextcloud, macos-23.6.0 ClientArchitecture: arm64 OsArchitecture: arm64)
version:    32.0.6.1
clientReqId: 33d85d2d-5d4e-4475-8cad-e1c7393ac921

Exception:  Sabre\DAV\Exception\BadRequest
Message:    Taille du fichier attendue : 101564457 octets mais taille du fichier lue
            (depuis le client Nextcloud) et écrit (dans le stockage Nextcloud) : 37322752 octets.
            Cela peut être un problème de réseau au niveau du client ou un problème
            de stockage au niveau du serveur.
Code:       0
File:       /var/www/html/apps/dav/lib/Connector/Sabre/File.php
Line:       260

Trace:
  /var/www/html/apps/dav/lib/Connector/Sabre/Directory.php:119       OCA\DAV\Connector\Sabre\File->put()
  /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php:1098           OCA\DAV\Connector\Sabre\Directory->createFile()
  /var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php:504        Sabre\DAV\Server->createFile()
  /var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php:89  Sabre\DAV\CorePlugin->httpPut()
  /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php:472            Sabre\DAV\Server->emit("method:PUT")
  /var/www/html/apps/dav/lib/Connector/Sabre/Server.php:212          Sabre\DAV\Server->invokeMethod()
  /var/www/html/apps/dav/lib/Server.php:426                          OCA\DAV\Connector\Sabre\Server->start()
  /var/www/html/apps/dav/appinfo/v2/remote.php:22                    OCA\DAV\Server->exec()
  /var/www/html/remote.php:151                                        require_once(...)

First, those settings must be added to Traefik’s static configuration file (traefik.yaml), not to a dynamic configuration file such as configs/nextcloud1.yml.

Before editing the file, make a backup copy, for example:

cp -iv traefik.yaml traefik.yaml.bak

After modifying traefik.yaml, restart Traefik:

systemctl --user restart traefik

Be aware that restarting Traefik will disconnect all currently connected clients, so it is best done during non-working hours.

Second, the YAML indentation appears to be lost in your forum post. I assume this is just a copy/paste issue, but please double-check the actual file contents because YAML is indentation-sensitive and Traefik will ignore or reject invalid configuration. For example:

entryPoints:
  http:
    address: :80
    transport:
      respondingTimeouts:
        readTimeout: 300s
        idleTimeout: 300s
  https:
    address: :443
    transport:
      respondingTimeouts:
        readTimeout: 300s
        idleTimeout: 300s
  metrics:
    address: :8082
1 Like