[GH-ISSUE #412] Failed to upload file (size > 105MB) via iOS / iPadOS #224

Closed
opened 2026-04-08 16:51:16 +03:00 by zhus · 4 comments
Owner

Originally created by @webzit on GitHub (Jul 11, 2024).
Original GitHub issue: https://github.com/sigoden/dufs/issues/412

Problem

When attempting to upload a file larger than 105MB (200MB for example) via Safari on iPhone and iPad, the upload consistently stops upon reaching a ~ 105MB threshold. This issue does not occur when using Safari on a MacBook, where larger files can be uploaded successfully.

Environment:

  • Dufs version: sigoden/dufs:latest
  • Browser/Webdav info: Safari
  • OS info: i(Pad)OS: 17.5.1
  • Proxy server: Traefik
Originally created by @webzit on GitHub (Jul 11, 2024). Original GitHub issue: https://github.com/sigoden/dufs/issues/412 **Problem** When attempting to upload a file larger than 105MB (200MB for example) via Safari on iPhone and iPad, the upload consistently stops upon reaching a ~ 105MB threshold. This issue does not occur when using Safari on a MacBook, where larger files can be uploaded successfully. <!-- A clear and concise description of what the bug is. --> **Environment:** - Dufs version: sigoden/dufs:latest - Browser/Webdav info: Safari - OS info: i(Pad)OS: 17.5.1 - Proxy server: Traefik
zhus closed this issue 2026-04-08 16:51:16 +03:00
Author
Owner

@sigoden commented on GitHub (Jul 11, 2024):

@webzit
Logs are crucial for troubleshooting. Please provide the logs.

<!-- gh-comment-id:2222713299 --> @sigoden commented on GitHub (Jul 11, 2024): @webzit Logs are crucial for troubleshooting. Please provide the logs.
Author
Owner

@webzit commented on GitHub (Jul 11, 2024):

DUFS Logs

2024-07-11T12:57:43Z INFO - 172.16.5.2 "GET /" 401
2024-07-11T12:57:43Z INFO - 172.16.5.2 "GET /" 200
2024-07-11T12:57:55Z INFO - 172.16.5.2 "WRITEABLE /" 401
2024-07-11T12:57:55Z INFO - 172.16.5.2 "WRITEABLE /" 200
2024-07-11T12:57:55Z INFO - 172.16.5.2 "PUT /googlechrome.dmg" 401
2024-07-11T12:58:55Z ERROR - 172.16.5.2 "PUT /googlechrome.dmg" 500 error reading a body from connection

Traefik Logs

{"ClientAddr":"","ClientHost":"","ClientPort":"","ClientUsername":"-","DownstreamContentSize":0,"DownstreamStatus":401,"Duration":1096737,"OriginContentSize":0,"OriginDuration":955602,"OriginStatus":401,"Overhead":141135,"RequestAddr":"dufs.DOMAIN.COM","RequestContentSize":0,"RequestCount":134,"RequestHost":"dufs.DOMAIN.COM","RequestMethod":"GET","RequestPath":"/","RequestPort":"-","RequestProtocol":"HTTP/2.0","RequestScheme":"https","RetryAttempts":0,"RouterName":"","ServiceAddr":"","ServiceName":"","ServiceURL":"http://","StartLocal":"2024-07-11T12:57:43.00107618Z","StartUTC":"2024-07-11T12:57:43.00107618Z","TLSCipher":"TLS_AES_128_GCM_SHA256","TLSVersion":"1.3","entryPointName":"https","level":"info","msg":"","time":"2024-07-11T12:57:43Z“}

{"ClientAddr":"","ClientHost":"","ClientPort":"","ClientUsername":"-","DownstreamContentSize":7257,"DownstreamStatus":200,"Duration":2597605,"OriginContentSize":7257,"OriginDuration":2409482,"OriginStatus":200,"Overhead":188123,"RequestAddr":"dufs.DOMAIN.COM","RequestContentSize":0,"RequestCount":135,"RequestHost":"dufs.DOMAIN.COM","RequestMethod":"GET","RequestPath":"/","RequestPort":"-","RequestProtocol":"HTTP/2.0","RequestScheme":"https","RetryAttempts":0,"RouterName":"","ServiceAddr":"","ServiceName":"","ServiceURL":"http://","StartLocal":"2024-07-11T12:57:43.071083022Z","StartUTC":"2024-07-11T12:57:43.071083022Z","TLSCipher":"TLS_AES_128_GCM_SHA256","TLSVersion":"1.3","entryPointName":"https","level":"info","msg":"","time":"2024-07-11T12:57:43Z"}

{"ClientAddr":"","ClientHost":"","ClientPort":"","ClientUsername":"-","DownstreamContentSize":0,"DownstreamStatus":200,"Duration":1063948,"OriginContentSize":0,"OriginDuration":859683,"OriginStatus":200,"Overhead":204265,"RequestAddr":"dufs.DOMAIN.COM","RequestContentSize":0,"RequestCount":137,"RequestHost":"dufs.DOMAIN.COM","RequestMethod":"WRITEABLE","RequestPath":"/","RequestPort":"-","RequestProtocol":"HTTP/2.0","RequestScheme":"https","RetryAttempts":0,"RouterName":"","ServiceAddr":"","ServiceName":"","ServiceURL":"http://","StartLocal":"2024-07-11T12:57:55.121009465Z","StartUTC":"2024-07-11T12:57:55.121009465Z","TLSCipher":"TLS_AES_128_GCM_SHA256","TLSVersion":"1.3","entryPointName":"https","level":"info","msg":"","time":"2024-07-11T12:57:55Z“}

{"ClientAddr":"","ClientHost":"","ClientPort":"","ClientUsername":"-","DownstreamContentSize":0,"DownstreamStatus":401,"Duration":51657475,"OriginContentSize":0,"OriginDuration":51475367,"OriginStatus":401,"Overhead":182108,"RequestAddr":"dufs.DOMAIN.COM","RequestContentSize":16384,"RequestCount":138,"RequestHost":"dufs.DOMAIN.COM","RequestMethod":"PUT","RequestPath":"/googlechrome.dmg","RequestPort":"-","RequestProtocol":"HTTP/2.0","RequestScheme":"https","RetryAttempts":0,"RouterName":"","ServiceAddr":"","ServiceName":"","ServiceURL":"http://","StartLocal":"2024-07-11T12:57:55.196894097Z","StartUTC":"2024-07-11T12:57:55.196894097Z","TLSCipher":"TLS_AES_128_GCM_SHA256","TLSVersion":"1.3","entryPointName":"https","level":"info","msg":"","time":"2024-07-11T12:57:55Z"}

{"ClientAddr":"","ClientHost":"","ClientPort":"","ClientUsername":"-","DownstreamContentSize":11,"DownstreamStatus":502,"Duration":60001272410,"OriginContentSize":11,"OriginDuration":60001147735,"OriginStatus":502,"Overhead":124675,"RequestAddr":"dufs.DOMAIN.COM","RequestContentSize":105103360,"RequestCount":139,"RequestHost":"dufs.DOMAIN.COM","RequestMethod":"PUT","RequestPath":"/googlechrome.dmg","RequestPort":"-","RequestProtocol":"HTTP/2.0","RequestScheme":"https","RetryAttempts":0,"RouterName":"","ServiceAddr":"","ServiceName":"","ServiceURL":"http://","StartLocal":"2024-07-11T12:57:55.795027166Z","StartUTC":"2024-07-11T12:57:55.795027166Z","TLSCipher":"TLS_AES_128_GCM_SHA256","TLSVersion":"1.3","entryPointName":"https","level":"info","msg":"","time":"2024-07-11T12:58:55Z"}
<!-- gh-comment-id:2222895044 --> @webzit commented on GitHub (Jul 11, 2024): DUFS Logs ``` 2024-07-11T12:57:43Z INFO - 172.16.5.2 "GET /" 401 2024-07-11T12:57:43Z INFO - 172.16.5.2 "GET /" 200 2024-07-11T12:57:55Z INFO - 172.16.5.2 "WRITEABLE /" 401 2024-07-11T12:57:55Z INFO - 172.16.5.2 "WRITEABLE /" 200 2024-07-11T12:57:55Z INFO - 172.16.5.2 "PUT /googlechrome.dmg" 401 2024-07-11T12:58:55Z ERROR - 172.16.5.2 "PUT /googlechrome.dmg" 500 error reading a body from connection ``` Traefik Logs ``` {"ClientAddr":"","ClientHost":"","ClientPort":"","ClientUsername":"-","DownstreamContentSize":0,"DownstreamStatus":401,"Duration":1096737,"OriginContentSize":0,"OriginDuration":955602,"OriginStatus":401,"Overhead":141135,"RequestAddr":"dufs.DOMAIN.COM","RequestContentSize":0,"RequestCount":134,"RequestHost":"dufs.DOMAIN.COM","RequestMethod":"GET","RequestPath":"/","RequestPort":"-","RequestProtocol":"HTTP/2.0","RequestScheme":"https","RetryAttempts":0,"RouterName":"","ServiceAddr":"","ServiceName":"","ServiceURL":"http://","StartLocal":"2024-07-11T12:57:43.00107618Z","StartUTC":"2024-07-11T12:57:43.00107618Z","TLSCipher":"TLS_AES_128_GCM_SHA256","TLSVersion":"1.3","entryPointName":"https","level":"info","msg":"","time":"2024-07-11T12:57:43Z“} {"ClientAddr":"","ClientHost":"","ClientPort":"","ClientUsername":"-","DownstreamContentSize":7257,"DownstreamStatus":200,"Duration":2597605,"OriginContentSize":7257,"OriginDuration":2409482,"OriginStatus":200,"Overhead":188123,"RequestAddr":"dufs.DOMAIN.COM","RequestContentSize":0,"RequestCount":135,"RequestHost":"dufs.DOMAIN.COM","RequestMethod":"GET","RequestPath":"/","RequestPort":"-","RequestProtocol":"HTTP/2.0","RequestScheme":"https","RetryAttempts":0,"RouterName":"","ServiceAddr":"","ServiceName":"","ServiceURL":"http://","StartLocal":"2024-07-11T12:57:43.071083022Z","StartUTC":"2024-07-11T12:57:43.071083022Z","TLSCipher":"TLS_AES_128_GCM_SHA256","TLSVersion":"1.3","entryPointName":"https","level":"info","msg":"","time":"2024-07-11T12:57:43Z"} {"ClientAddr":"","ClientHost":"","ClientPort":"","ClientUsername":"-","DownstreamContentSize":0,"DownstreamStatus":200,"Duration":1063948,"OriginContentSize":0,"OriginDuration":859683,"OriginStatus":200,"Overhead":204265,"RequestAddr":"dufs.DOMAIN.COM","RequestContentSize":0,"RequestCount":137,"RequestHost":"dufs.DOMAIN.COM","RequestMethod":"WRITEABLE","RequestPath":"/","RequestPort":"-","RequestProtocol":"HTTP/2.0","RequestScheme":"https","RetryAttempts":0,"RouterName":"","ServiceAddr":"","ServiceName":"","ServiceURL":"http://","StartLocal":"2024-07-11T12:57:55.121009465Z","StartUTC":"2024-07-11T12:57:55.121009465Z","TLSCipher":"TLS_AES_128_GCM_SHA256","TLSVersion":"1.3","entryPointName":"https","level":"info","msg":"","time":"2024-07-11T12:57:55Z“} {"ClientAddr":"","ClientHost":"","ClientPort":"","ClientUsername":"-","DownstreamContentSize":0,"DownstreamStatus":401,"Duration":51657475,"OriginContentSize":0,"OriginDuration":51475367,"OriginStatus":401,"Overhead":182108,"RequestAddr":"dufs.DOMAIN.COM","RequestContentSize":16384,"RequestCount":138,"RequestHost":"dufs.DOMAIN.COM","RequestMethod":"PUT","RequestPath":"/googlechrome.dmg","RequestPort":"-","RequestProtocol":"HTTP/2.0","RequestScheme":"https","RetryAttempts":0,"RouterName":"","ServiceAddr":"","ServiceName":"","ServiceURL":"http://","StartLocal":"2024-07-11T12:57:55.196894097Z","StartUTC":"2024-07-11T12:57:55.196894097Z","TLSCipher":"TLS_AES_128_GCM_SHA256","TLSVersion":"1.3","entryPointName":"https","level":"info","msg":"","time":"2024-07-11T12:57:55Z"} {"ClientAddr":"","ClientHost":"","ClientPort":"","ClientUsername":"-","DownstreamContentSize":11,"DownstreamStatus":502,"Duration":60001272410,"OriginContentSize":11,"OriginDuration":60001147735,"OriginStatus":502,"Overhead":124675,"RequestAddr":"dufs.DOMAIN.COM","RequestContentSize":105103360,"RequestCount":139,"RequestHost":"dufs.DOMAIN.COM","RequestMethod":"PUT","RequestPath":"/googlechrome.dmg","RequestPort":"-","RequestProtocol":"HTTP/2.0","RequestScheme":"https","RetryAttempts":0,"RouterName":"","ServiceAddr":"","ServiceName":"","ServiceURL":"http://","StartLocal":"2024-07-11T12:57:55.795027166Z","StartUTC":"2024-07-11T12:57:55.795027166Z","TLSCipher":"TLS_AES_128_GCM_SHA256","TLSVersion":"1.3","entryPointName":"https","level":"info","msg":"","time":"2024-07-11T12:58:55Z"} ```
Author
Owner

@sigoden commented on GitHub (Jul 11, 2024):

error reading a body from connection

This is usually caused by an unstable or interrupted internet connection.

Have you tried resumable uploads? https://github.com/sigoden/dufs/pull/343#issuecomment-1886128164

<!-- gh-comment-id:2222904458 --> @sigoden commented on GitHub (Jul 11, 2024): > error reading a body from connection This is usually caused by an unstable or interrupted internet connection. Have you tried resumable uploads? https://github.com/sigoden/dufs/pull/343#issuecomment-1886128164
Author
Owner

@webzit commented on GitHub (Jul 11, 2024):

FIX

Thank you. Needed to change following in traefik. Everything works now fine!

entryPoints:
  ...
  https:
    ...
    transport:
      respondingTimeouts:
        readTimeout: 0
<!-- gh-comment-id:2222954390 --> @webzit commented on GitHub (Jul 11, 2024): **FIX** Thank you. Needed to change following in traefik. Everything works now fine! ``` entryPoints: ... https: ... transport: respondingTimeouts: readTimeout: 0 ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#224