android icon indicating copy to clipboard operation
android copied to clipboard

Failed auto-uploads are not retried

Open MaddyGuthridge opened this issue 11 months ago • 2 comments

⚠️ Before posting ⚠️

  • [x] This is a bug, not a question or an enhancement.
  • [x] I've searched for similar issues and didn't find a duplicate.
  • [x] I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • [x] I agree to follow Nextcloud's Code of Conduct.

Steps to reproduce

  1. Take photos with a poor internet connection (eg in a remote area)
  2. Auto-uploads attempts to upload them
  3. Internet momentarily drops out
  4. Upload fails

Expected behaviour

The upload should automatically retry once better internet is available.

Actual behaviour

The image is never uploaded. Later images continue to upload normally, but I have about 50 images which haven't been uploaded despite being in a directory set to auto-upload. I have no option to retry these failed uploads, with the upload history only listing the successful uploads.

Android version

Android 15

Device brand and model

Google Pixel 6 Pro

Stock or custom OS?

Stock

Nextcloud android app version

3.30.6 (Google Play)

Nextcloud server version

30.0.4 (Nextcloud AIO)

Using a reverse proxy?

Yes

Android logs

Using stable version.

Server error logs

[no app in context] Error: Expected filesize of 3918322 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 1417216 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.
	PUT /remote.php/dav/files/maddy/Photos/Pixel%20Camera/2024/12/PXL_20241223_055428056.MP.jpg
	from [redacted IP] by maddy at 23 Dec 2024, 5:13:27 pm

Additional information

I love Nextcloud, but the auto-upload feature feels incredibly unreliable, and I am petrified that I will inadvertently lose data due to failed uploads. Some time needs to be spent hardening this feature to make it far more resilient to errors such as network failures.

MaddyGuthridge avatar Dec 24 '24 06:12 MaddyGuthridge

Hello Nextcloud team, first of all thank you for developing this huge piece of software!!! 👏

Actually I noticed the exactly same behavior two days ago - 8 pictures taken, 5 pictures have been uploaded, 3 are missing. I've been hiking in an area with poor internet and I got these "failed upload" notifications and also expected that the photos will be uploaded later.

I tried to restart the application but that also didn't help. Photos taken later that day (with good internet) have been uploaded as expected.

Device information:

  • Galaxy S20 FE
  • Android 13
  • App Version 3.30.6
  • Server Version: 29.0.9

I also have some mixed feelings about the reliability of the upload...

Is there a possibility for me to get a list of files that the Nextcloud Android client will ignore? Maybe because of too many failed retry attempts?

In the past I used the App OneSync for upload/download from OneDrive. It has some really good visualization of the general sync status and also logs the sync result for every file. I really liked the technical insights.

devritter avatar Dec 29 '24 22:12 devritter

I experience the exact same problem with an unreliable wifi connection in a hostel.

I went ahead and got a full list of all photos that should have been uploaded using a terminal on my Android. I did the same on the Nextcloud server and compared both lists. I found around 750 photos (roughly 10% of all photos) were not uploaded over the past few months.

Since I did not want to select and upload those 750 images manually and there is no automatic way to retry, I came up with a workaround (that works for me but maybe not for others). I deleted my local Nextcloud account, readded the Nextcloud account, re enabled the auto sync including existing local files and skipping files that already exist remotely without asking. This way I kind of had a sync of all missing files.

  • OS: Android 15 (Stock)
  • Phone: Google Pixel 7A
  • Nextcloud Server Version: 29.0.10.1
  • Nextcloud Android Version: 3.31.0

flammermann avatar Apr 01 '25 23:04 flammermann