android icon indicating copy to clipboard operation
android copied to clipboard

AutoUpload reuploads the same files in a loop

Open felix-walter opened this issue 4 months ago • 4 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

Right now, I can only reproduce this with WhatsApp backups (all-binary files). I will describe this below. If the issue cannot be tracked down, I can try to reproduce it in a simpler way, possibly with ADB support.

  1. Configure Uploads for /storage/emulated/0/Android/media/com.whatsapp/WhatsApp/Backups; configure to replace existing files on server.
  2. Let it upload the existing backup.
  3. Turn off Wifi, wait until WhatsApp updates its backup
  4. Turn on Wifi
  5. Upload starts and does not end until manual interventon or app is killed by system

Note: It does not happen all the time. Specifically, when other files are uploaded in-between, the process often stops. The uploads are always completed.

Expected behaviour

All updated files are uploaded only once and the upload process finishes afterwards.

Actual behaviour

The (binary) files are uploaded again and again.

Android version

16

Device brand and model

Pixel 8 Pro

Stock or custom OS?

Custom (explain in "additional information")

Nextcloud android app version

3.32.3 (logs below), 3.33.0 shows the same issue

Nextcloud server version

31.0.8

Using a reverse proxy?

Yes

Android logs

Snippet (privacy-related information removed): logcat-snippet.log

Server error logs

<IP> - felix [10/Sep/2025:06:16:44 +0000] "HEAD /remote.php/dav/files/felix/<serverpath>/com.whatsapp/WhatsApp/Backups/wa.db.crypt14 HTTP/1.0" 200 821 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.32.3"
<IP> - felix [10/Sep/2025:06:16:44 +0000] "PUT /remote.php/dav/files/felix/<serverpath>/com.whatsapp/WhatsApp/Backups/wa.db.crypt14 HTTP/1.0" 204 623 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.32.3"
<IP> - felix [10/Sep/2025:06:16:45 +0000] "PROPFIND /remote.php/dav/files/felix/<serverpath>/com.whatsapp/WhatsApp/Backups/wa.db.crypt14 HTTP/1.0" 207 2199 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.32.3"
<IP> - felix [10/Sep/2025:06:16:45 +0000] "GET /index.php/core/preview?fileId=2084068&x=256&y=256&a=1&mode=cover&forceIcon=0 HTTP/1.0" 404 1112 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.32.3"
<IP> - felix [10/Sep/2025:06:16:45 +0000] "HEAD /remote.php/dav/files/felix/<serverpath>/com.whatsapp/WhatsApp/Backups/chatsettingsbackup.db.crypt14 HTTP/1.0" 200 852 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.32.3"
<IP> - felix [10/Sep/2025:06:16:45 +0000] "PUT /remote.php/dav/files/felix/<serverpath>/com.whatsapp/WhatsApp/Backups/chatsettingsbackup.db.crypt14 HTTP/1.0" 204 623 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.32.3"
<IP> - felix [10/Sep/2025:06:16:45 +0000] "PROPFIND /remote.php/dav/files/felix/<serverpath>/com.whatsapp/WhatsApp/Backups/chatsettingsbackup.db.crypt14 HTTP/1.0" 207 2229 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.32.3"
<IP> - felix [10/Sep/2025:06:16:46 +0000] "GET /index.php/core/preview?fileId=2084064&x=256&y=256&a=1&mode=cover&forceIcon=0 HTTP/1.0" 404 1112 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.32.3"
<IP> - felix [10/Sep/2025:06:16:48 +0000] "HEAD /remote.php/dav/files/felix/<serverpath>/com.whatsapp/WhatsApp/Backups/wa.db.crypt14 HTTP/1.0" 200 821 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.32.3"
<IP> - felix [10/Sep/2025:06:16:48 +0000] "PUT /remote.php/dav/files/felix/<serverpath>/com.whatsapp/WhatsApp/Backups/wa.db.crypt14 HTTP/1.0" 204 623 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.32.3"
<IP> - felix [10/Sep/2025:06:16:49 +0000] "PROPFIND /remote.php/dav/files/felix/<serverpath>/com.whatsapp/WhatsApp/Backups/wa.db.crypt14 HTTP/1.0" 207 2199 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.32.3"
<IP> - felix [10/Sep/2025:06:16:49 +0000] "GET /index.php/core/preview?fileId=2084068&x=256&y=256&a=1&mode=cover&forceIcon=0 HTTP/1.0" 404 1112 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.32.3"
<IP> - felix [10/Sep/2025:06:16:49 +0000] "HEAD /remote.php/dav/files/felix/<serverpath>/com.whatsapp/WhatsApp/Backups/chatsettingsbackup.db.crypt14 HTTP/1.0" 200 852 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.32.3"
<IP> - felix [10/Sep/2025:06:16:49 +0000] "PUT /remote.php/dav/files/felix/<serverpath>/com.whatsapp/WhatsApp/Backups/chatsettingsbackup.db.crypt14 HTTP/1.0" 204 623 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.32.3"
<IP> - felix [10/Sep/2025:06:16:49 +0000] "PROPFIND /remote.php/dav/files/felix/<serverpath>/com.whatsapp/WhatsApp/Backups/chatsettingsbackup.db.crypt14 HTTP/1.0" 207 2229 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.32.3"
<IP> - felix [10/Sep/2025:06:16:50 +0000] "GET /index.php/core/preview?fileId=2084064&x=256&y=256&a=1&mode=cover&forceIcon=0 HTTP/1.0" 404 1112 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.32.3"

Additional information

It worked flawlessly until ~end of August (until the 3.32.3 update?).

The upload loop can be stopped manually by opening the "Uploads" view and quickly pausing+restarting uploads with the button on the top right. Nextcloud will then correctly consider the files as uploaded and not attempt to upload again.

I am using GrapheneOS and Nextcloud from FDroid, in case it matters. If anything is missing, I can try to generate additional logs or a screencast.

I am assuming this is not a duplicate of #15572 as I do not have bad connectivity. However, it may be caused by the same or a related underlying bug.

felix-walter avatar Sep 25 '25 08:09 felix-walter

@alperozturk96 I have been using the QA version posted in #15572 for a week now and it seems to fix this issue for me.

Note: There are some minor issues like wrong dates being shown in the list of uploads and weird notification behavior, but what actually happens on the server looks good so far.

felix-walter avatar Nov 28 '25 13:11 felix-walter

have same issue here.

Image

leapyear1969 avatar Dec 01 '25 13:12 leapyear1969

Hello

@leapyear1969

Auto-Upload logic completely redesigned. Could you please try with 3.35.0 RC2 and share your feedback with us?

alperozturk96 avatar Dec 08 '25 08:12 alperozturk96

Same problem with auto-upload of phone's camera / photos.

  • Upload allowed on mobile and wifi.
  • Happens at least, if I take several photos one after another, so that where will be sending queue.
  • This has been a problem at least since August or September.
  • Android app version 3.34.1 (from Play store)
  • Android version OxygenOS 16 (OnePlus). (Used to be OxygenOS 15)
Image

pesasa avatar Dec 08 '25 17:12 pesasa