ios icon indicating copy to clipboard operation
ios copied to clipboard

HDR videos not uploading

Open patzm opened this issue 4 months ago • 0 comments

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

  1. on an iPhone that supports HDR video recording, record a HDR 30 fps 4k video (that's what I tested it with)
  2. open the NextCloud app and wait for auto-upload to pick up the video. Observe that some preparation happens (I guess it is converting it to a "compatible format". Context: when you share the video from the Photos app with the Nextcloud app, a similar (or the same) conversion happens before it is handed over to the Nextcloud app's context.
  3. Some progress happens, but then it seemingly (🤷‍♂️ no error messages, the progress bar is buggy anyways as it jumps frequently) restarts. That's an infinite loop then. There is also never an entry in the Transfers window. Only the banner on top across the Files and Transfers contexts. Screenshots:
    • Files banner

    • Transfers banner

  4. The same can be reproduced if using the + icon to upload the respective video. I thus don't think it is specific to the auto-upload features.

Counter example that works:

  1. record the video without HDR (go to Settings > Camera and disable HDR for videos)
  2. open the NextCloud app, observe it to pick up the new video and actually see an upload dialog in the Transfers menu.

Expected behaviour

That the video (converts correctly and) uploads successfully.

Actual behaviour

Infinite loop in uploading.

Logs

I replaced my actual host with MY-HOST.com and my user with MY-USER

Server logs

10.9.1.1 - MY-USER [30/Sep/2024:01:42:48 +0200] "PUT /remote.php/dav/uploads/MY-USER/13160232-DDAE-4733-A3B9-8C3F4505F139/1 HTTP/1.1" 400 0 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/5.5.5"

2024/09/30 01:42:48 [info] 593#593: *1065 client prematurely closed connection while sending request to upstream, client: 172.21.0.11, server: , request: "PUT /remote.php/dav/uploads/MY-USER/13160232-DDAE-4733-A3B9-8C3F4505F139/1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "MY-HOST"

10.9.1.1 - MY-USER [30/Sep/2024:01:42:51 +0200] "PROPFIND /remote.php/dav/uploads/MY-USER/13160232-DDAE-4733-A3B9-8C3F4505F139 HTTP/1.1" 207 657 "-" "Mozilla/5.0 (iOS) Nextcloud-iOS/5.5.5"

10.9.1.1 - - [30/Sep/2024:01:42:58 +0200] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 0 "https://MY-HOST/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:128.0) Gecko/20100101 Firefox/128.0"

10.9.1.1 - MY-USER [30/Sep/2024:01:43:13 +0200] "GET /ocs/v2.php/apps/user_status/api/v1/user_status?format=json HTTP/1.1" 200 150 "-" "Mozilla/5.0 (Macintosh) mirall/3.14.0daily (Nextcloud, macos-24.0.0 ClientArchitecture: arm64 OsArchitecture: arm64)"

10.9.1.1 - MY-USER [30/Sep/2024:01:43:13 +0200] "GET /ocs/v2.php/apps/notifications/api/v2/notifications?format=json HTTP/1.1" 200 81 "-" "Mozilla/5.0 (Macintosh) mirall/3.14.0daily (Nextcloud, macos-24.0.0 ClientArchitecture: arm64 OsArchitecture: arm64)"

10.9.1.1 - MY-USER [30/Sep/2024:01:43:13 +0200] "PROPFIND /remote.php/dav/files/MY-USER/ HTTP/1.1" 207 262 "-" "Mozilla/5.0 (Macintosh) mirall/3.14.0daily (Nextcloud, macos-24.0.0 ClientArchitecture: arm64 OsArchitecture: arm64)"

Client logs

2024-09-29 17:41:38 [INFO] Clear log with level 1 Nextcloud Hydrogen for iOS 5.5.5.0 © 2024
2024-09-29 17:41:46 [INFO] PROCESS (UPLOAD) find 1 items
2024-09-29 17:41:47 [INFO] Upload file 24-09-28 18-11-55 7306.mov with Identifier ED41F4CA-DB3B-4353-A74B-212F93C37CC7/L0/001 with size 153790106 [CHUNK 100000000, E2EE false]
2024-09-29 17:41:47 Network request started: PROPFIND https://MY-HOST/remote.php/dav/uploads/MY-USER/13160232-DDAE-4733-A3B9-8C3F4505F139
2024-09-29 17:41:47 Network response request: https://MY-HOST/remote.php/dav/uploads/MY-USER/13160232-DDAE-4733-A3B9-8C3F4505F139, result: failure(Alamofire.AFError.responseValidationFailed(reason: Alamofire.AFError.ResponseValidationFailureReason.unacceptableStatusCode(code: 404)))
2024-09-29 17:41:47 Network request started: MKCOL https://MY-HOST/remote.php/dav/uploads/MY-USER/13160232-DDAE-4733-A3B9-8C3F4505F139
2024-09-29 17:41:48 Network request started: PUT https://MY-HOST/remote.php/dav/uploads/MY-USER/13160232-DDAE-4733-A3B9-8C3F4505F139/1
2024-09-29 17:42:14 Network request started: PROPFIND https://MY-HOST/remote.php/dav/files/MY-USER
2024-09-29 17:42:16 Network response request: https://MY-HOST/remote.php/dav/files/MY-USER, result: success(1872 bytes)
2024-09-29 17:42:16 Network request started: PROPFIND https://MY-HOST/remote.php/dav/files/MY-USER
2024-09-29 17:42:18 Network response request: https://MY-HOST/remote.php/dav/files/MY-USER, result: success(29009 bytes)
2024-09-29 17:42:50 [INFO] PROCESS (UPLOAD) find 1 items
2024-09-29 17:42:50 [INFO] Upload file 24-09-28 18-11-55 7306.mov with Identifier ED41F4CA-DB3B-4353-A74B-212F93C37CC7/L0/001 with size 153790106 [CHUNK 100000000, E2EE false]
2024-09-29 17:42:51 Network request started: PROPFIND https://MY-HOST/remote.php/dav/uploads/MY-USER/13160232-DDAE-4733-A3B9-8C3F4505F139
2024-09-29 17:42:51 Network response request: https://MY-HOST/remote.php/dav/uploads/MY-USER/13160232-DDAE-4733-A3B9-8C3F4505F139, result: success(1412 bytes)
2024-09-29 17:42:51 Network request started: PUT https://MY-HOST/remote.php/dav/uploads/MY-USER/13160232-DDAE-4733-A3B9-8C3F4505F139/1
2024-09-29 17:43:54 [INFO] PROCESS (UPLOAD) find 1 items
2024-09-29 17:43:54 [INFO] Upload file 24-09-28 18-11-55 7306.mov with Identifier ED41F4CA-DB3B-4353-A74B-212F93C37CC7/L0/001 with size 153790106 [CHUNK 100000000, E2EE false]
2024-09-29 17:43:54 Network request started: PROPFIND https://MY-HOST/remote.php/dav/uploads/MY-USER/13160232-DDAE-4733-A3B9-8C3F4505F139
2024-09-29 17:43:55 Network response request: https://MY-HOST/remote.php/dav/uploads/MY-USER/13160232-DDAE-4733-A3B9-8C3F4505F139, result: success(1412 bytes)
2024-09-29 17:43:55 Network request started: PUT https://MY-HOST/remote.php/dav/uploads/MY-USER/13160232-DDAE-4733-A3B9-8C3F4505F139/1
2024-09-29 17:44:58 [INFO] PROCESS (UPLOAD) find 1 items
2024-09-29 17:44:58 [INFO] Upload file 24-09-28 18-11-55 7306.mov with Identifier ED41F4CA-DB3B-4353-A74B-212F93C37CC7/L0/001 with size 153790106 [CHUNK 100000000, E2EE false]
2024-09-29 17:44:58 Network request started: PROPFIND https://MY-HOST/remote.php/dav/uploads/MY-USER/13160232-DDAE-4733-A3B9-8C3F4505F139
2024-09-29 17:44:59 Network response request: https://MY-HOST/remote.php/dav/uploads/MY-USER/13160232-DDAE-4733-A3B9-8C3F4505F139, result: success(1412 bytes)
2024-09-29 17:44:59 Network request started: PUT https://MY-HOST/remote.php/dav/uploads/MY-USER/13160232-DDAE-4733-A3B9-8C3F4505F139/1

you can see that this starts being repetitive.

Reasoning or why should it be changed/implemented?

not sure what to write, most iPhones record by default with HDR and AutoUpload was one of the main reasons for me to switch away from Dropbox / Google Drive.

Environment data

iOS version: e.g. iOS 17.6.1

Nextcloud iOS app version: see More > Settings 6.5.5.0 from 2024

Server operating system: host: TrueNas Scale client: docker compose stack

Web server: Apache, nginx Traefik & apache

Database: MariaDB 10

PHP version:

Nextcloud version: see Nextcloud admin page 30.0.0 (was also present in 29.0.5)

patzm avatar Sep 29 '24 23:09 patzm