Upload large video file (10G) failed by timeout on MOVE with retry
How to use GitHub
- Please use the 👍 reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Steps to reproduce
- Get a large video file in iPhone in gallery. My video file is 10,17Gb
- Open Nextcloud App
- Send video file uploading via "photo or video"
- Wait untill file uploaded
NextCloud works in docker on NAS (cpu AMD V1500). Maybe this is a reason to work slower than on regular pc.
Expected behaviour
File should be uploaded
Actual behaviour
File upload process show uploading till full size. At the end of process and then after 60s upload breaks with "error" hint and upload starts again. Nginx shows HTTP 499. Nginx/php timeouts increased up to 5 min.
Logs
Logs from nginx server (in docker, via docker-host as 172.24.0.1). 192.168.1.120 - mobile client
2024/12/31 23:56:32 stdout 172.24.0.1 - ncuser [31/Dec/2024:20:56:32 +0000] "PUT /remote.php/dav/uploads/2a90a478-bd1d-103e-9b5e-dd06c7bad4c4/39A16897-6DB8-4A61-BE32-CE3AB316D18A/109 HTTP/1.1" 201 0 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/6.2.1" "192.168.1.120"
2024/12/31 23:56:33 stdout 172.24.0.1 - ncuser [31/Dec/2024:20:56:33 +0000] "PUT /remote.php/dav/uploads/2a90a478-bd1d-103e-9b5e-dd06c7bad4c4/39A16897-6DB8-4A61-BE32-CE3AB316D18A/110 HTTP/1.1" 201 0 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/6.2.1" "192.168.1.120"
2024/12/31 23:57:33 stderr 2024/12/31 20:57:33 [info] 25#25: *267 epoll_wait() reported that client prematurely closed connection, so upstream connection is closed too while sending request to upstream, client: 172.24.0.1, server: , request: "MOVE /remote.php/dav/uploads/2a90a478-bd1d-103e-9b5e-dd06c7bad4c4/39A16897-6DB8-4A61-BE32-CE3AB316D18A/.file HTTP/1.1", upstream: "fastcgi://172.24.0.7:9000", host: "nextcloud.server"
2024/12/31 23:57:33 stdout 172.24.0.1 - ncuser [31/Dec/2024:20:57:33 +0000] "MOVE /remote.php/dav/uploads/2a90a478-bd1d-103e-9b5e-dd06c7bad4c4/39A16897-6DB8-4A61-BE32-CE3AB316D18A/.file HTTP/1.1" 499 0 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/6.2.1" "192.168.1.120"
2024/12/31 23:57:34 stdout 172.24.0.1 - ncuser [31/Dec/2024:20:57:34 +0000] "GET /index.php/core/preview?fileId=&x=1024&y=1024&a=1&mode=cover&forceIcon=0&mimeFallback=0 HTTP/1.1" 404 2 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/6.2.1" "192.168.1.120"
2024/12/31 23:57:34 stdout 172.24.0.1 - ncuser [31/Dec/2024:20:57:34 +0000] "PROPFIND /remote.php/dav/uploads/2a90a478-bd1d-103e-9b5e-dd06c7bad4c4/BD5D92C4-20E5-411D-9D79-A8E5E879483C HTTP/1.1" 404 499 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/6.2.1" "192.168.1.120"
2024/12/31 23:57:35 stdout 172.24.0.1 - ncuser [31/Dec/2024:20:57:35 +0000] "MKCOL /remote.php/dav/uploads/2a90a478-bd1d-103e-9b5e-dd06c7bad4c4/BD5D92C4-20E5-411D-9D79-A8E5E879483C HTTP/1.1" 201 0 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/6.2.1" "192.168.1.120"
2024/12/31 23:57:53 stdout 172.24.0.1 - ncuser [31/Dec/2024:20:57:53 +0000] "GET /index.php/core/preview?fileId=&x=1024&y=1024&a=1&mode=cover&forceIcon=0&mimeFallback=0 HTTP/1.1" 404 2 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/6.2.1" "192.168.1.120"
2024/12/31 23:57:56 stdout 172.24.0.1 - ncuser [31/Dec/2024:20:57:56 +0000] "PUT /remote.php/dav/uploads/2a90a478-bd1d-103e-9b5e-dd06c7bad4c4/BD5D92C4-20E5-411D-9D79-A8E5E879483C/1 HTTP/1.1" 201 0 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/6.2.1" "192.168.1.120"
Reasoning or why should it be changed/implemented?
Maybe I need an option to change a timeouts in mobile app settings.
Environment data
iOS version:iOS 18.2
Nextcloud iOS app version:6.2.1.0 see More > Settings
Server operating system:debian 12 (bookworm)
Web server:nginx Apache, nginx
Database:mariadb 11.6
PHP version:8.3 fpm
Nextcloud version:30.0.4 see Nextcloud admin page
Problem was in nginx reverse proxy configuration. I increased upstream timeout, and it solved problem.