ios icon indicating copy to clipboard operation
ios copied to clipboard

iOS Photo Roll Uploads 0-Byte Files When Device is Out Of Disk Space

Open Crypt0s opened this issue 3 years ago • 4 comments

Expected behaviour

A warning or error displayed to the user to instruct the user that the device does not contain enough free space to hold the cache for the Photo Roll transfer.

Actual behaviour

The Nextcloud app uploads the Photo Roll, but because not enough free space exists, some or all of the photos are uploaded as 0-byte files. No errors or warnings are displayed, and no anomalous log entries are generated.

Steps to reproduce

Use an iOS device which is out of storage space and attempt to upload a large number of photos to the Nextcloud instance.

Reasoning or why should it be changed/implemented?

A user may be unaware that they require significant free disk space in order to initiate a Photo roll transfer. If a user is not warned and no error is displayed, they will perhaps believe that the issue exists with the forward proxy or the Nextcloud application. Several such errors appear to already have been filed in GitHub related to this - fixing this could help cut down the number of bugs / help requests.

iOS version

14.1

App version

3.3.1.1

Server configuration

Nextcloud as TrueNAS plugin with Nginx as an HTTPS forward proxy.

Operating system: TrueNAS 12

Web server: Nginx

Database: default

PHP version: default

Nextcloud version: (see Nextcloud admin page) 21.0.0

Crypt0s avatar Mar 15 '21 01:03 Crypt0s

Also having this problem. An error would've saved a good few hours troubleshooting!

Not sure how it works within the app, but instead of trying to upload all the photos at once it could be an option to upload month-by-month or whatever interval is necessary for the remaining space. In this case, there are about 16,000 photos with only about 4GBs remaining, which should be enough space to do something with.

andogq avatar Jun 11 '21 07:06 andogq

Is this potentially a duplicate (or related to) #1395?

eharris avatar Aug 30 '21 01:08 eharris

Potentially - On my device, I did notice sporadic 0-byte files as uploads were attempted and I followed similar advice in my efforts to debug, with similar results. In testing it would seemingly fail on specific files even though those files were fine. I believe it to be a symptom where the device simply ran out of temporary disk storage at that point in the upload consistently.

On Sun, Aug 29, 2021 at 9:19 PM Evan Harris @.***> wrote:

Is this potentially a duplicate of #1395 https://github.com/nextcloud/ios/issues/1395?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nextcloud/ios/issues/1550#issuecomment-907936996, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAL3RLJS4544AHNIN3RISW3T7LMCLANCNFSM4ZFS7YSQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Crypt0s avatar Aug 30 '21 04:08 Crypt0s

It seems like this issue persists to current versions of the application and occurs when the un-uploaded photo roll exceeds the currently available disk space on the device.

Crypt0s avatar Jun 30 '22 16:06 Crypt0s