android icon indicating copy to clipboard operation
android copied to clipboard

Auto upload stopped working

Open mss-hh opened this issue 10 months ago • 89 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. Update Nextcloud app to version 3.35.0 (from F-Droid)
  2. Take photos
  3. Wait for several hours
  4. Nothing gets uploaded

Expected behaviour

Photos should be uploaded to my Nextcloud server automatically.

Actual behaviour

Photos don't get uploaded.

Android version

15

Device brand and model

Xiaomi Redmi Note 8T

Stock or custom OS?

Custom (explain in "additional information")

Nextcloud android app version

3.35.0

Nextcloud server version

32.0.5

Using a reverse proxy?

No

Android logs

I took a test photo, waited for a while and then searched the logcat output for relevant information. This is what I found. I hope it's useful since I'm not an expert in interpreting these logfiles.

logcat_auto_upload.txt

Server error logs


Additional information

My custom ROM is ProjectMatrixx v11.2.5. Auto upload worked more or less reliably until the latest update. I also noticed that the list of previous uploads suddenly shows dates from December 1969 for all the uploaded files. Might be the same issue as in https://github.com/nextcloud/android/issues/16333.

mss-hh avatar Jan 21 '26 22:01 mss-hh

Same issue here on a Pixel 9a with latest Android 16.

endyb66 avatar Jan 22 '26 22:01 endyb66

Same issue on Galaxy S24.

slepkaviba avatar Jan 23 '26 20:01 slepkaviba

The issue is still present in the recent update. Some folders get uploaded perfectly fine tho not the camera roll.

endyb66 avatar Jan 24 '26 23:01 endyb66

Updated my Android App on my Google Pixel 7 Pro via F-Droid. But bug still exists. Using Version 3.35.1. Android 16.patchlevel 5th December.

jamfx avatar Jan 25 '26 16:01 jamfx

Same problem here on Galaxy S25 Ultra, no new photos uploaded from last 2 updates.

Oriann avatar Jan 26 '26 09:01 Oriann

Updated to 3.35.2 and some pictures were uploaded... Some not. Galaxy S24.

slepkaviba avatar Jan 27 '26 07:01 slepkaviba

3.35.2 / Camera Roll still not uploading. Pixel 9a.

endyb66 avatar Jan 27 '26 08:01 endyb66

It is even worse... Some files just upload as 0...

I get "server reported size 1.9 MB but size was 0" error...

slepkaviba avatar Jan 27 '26 15:01 slepkaviba

unfortunately this is broken since a long time: https://github.com/nextcloud/android/issues/15291

the workaround is to reinstall from scratch (uninstall, install, setup autoupload) after an update: https://github.com/nextcloud/android/issues/15291#issuecomment-3336978197

devlux avatar Jan 28 '26 11:01 devlux

unfortunately this is broken since a long time: #15291

the workaround is to reinstall from scratch (uninstall, install, setup autoupload) after an update: #15291 (comment)

Interesting. For me auto upload used to work until the update to 3.35.0 got installed via F-Droid. My setup with custom folders survived several updates so it seems I was never affected by this bug. I will try the workaround anyway and reinstall from scratch when I find the time to.

mss-hh avatar Jan 28 '26 12:01 mss-hh

Interesting. For me auto upload used to work until the update to 3.35.0 got installed via F-Droid. My setup with custom folders survived several updates so it seems I was never affected by this bug. I will try the workaround anyway and reinstall from scratch when I find the time to.

Same here, worked up until the update to 3.35.0. As a dev by myself I appreciate all the effort that goes into this app, but how can such a core function be broken for such a long time? Is it a platform issue?

endyb66 avatar Jan 28 '26 12:01 endyb66

unfortunately this is broken since a long time: #15291

the workaround is to reinstall from scratch (uninstall, install, setup autoupload) after an update: #15291 (comment)

Thanks for info, but I did it right now and still autoupload does not work. I appreciate devs work on this app but things could be more polished now after 8 years of development. Anyway I am waiting for fix, now its not working.

EDIT: 2 hours after reinstalling the app, the auto upload started to work.

Oriann avatar Jan 28 '26 16:01 Oriann

Hello

Could you please try this PR?

And from Settings → Logs → via "auto upload", "upload", "ContentObserverWork" keyword filter logs and share with us the logs. This is important to find issues.

alperozturk96 avatar Jan 29 '26 08:01 alperozturk96

I've got the same issue with NC app version 3.35.2 on a Google Pixel 8.

Pirukandji avatar Jan 29 '26 09:01 Pirukandji

Hello

Could you please try this PR?

And from Settings → Logs → via "auto upload", "upload", "ContentObserverWork" keyword filter logs and share with us the logs. This is important to find issues.

I would like to test this, but cannot download the linked apk file. The server is unreachable.

mss-hh avatar Jan 29 '26 12:01 mss-hh

Hello Could you please try this PR? And from Settings → Logs → via "auto upload", "upload", "ContentObserverWork" keyword filter logs and share with us the logs. This is important to find issues.

I would like to test this, but cannot download the linked apk file. The server is unreachable.

I was able to download qa apk from this link. Direct download link: https://www.kaminsky.me/nc-dev/android-artifacts/16393.apk

alperozturk96 avatar Jan 29 '26 12:01 alperozturk96

Hello Could you please try this PR? And from Settings → Logs → via "auto upload", "upload", "ContentObserverWork" keyword filter logs and share with us the logs. This is important to find issues.

I would like to test this, but cannot download the linked apk file. The server is unreachable.

I was able to download qa apk from this link. Direct download link: https://www.kaminsky.me/nc-dev/android-artifacts/16393.apk

Now it worked and I was able to get the logs. Must have been a short downtime. I configured the app the same way as the release version and took a test photo. Auto upload worked instantly.

logs.txt

mss-hh avatar Jan 29 '26 14:01 mss-hh

Same problem here, and the APK fixed the issue.

nahuelange avatar Jan 31 '26 10:01 nahuelange

I don't really want to rant, but... With every version auto upload becomes buggier and buggier. I haven't had a single photo auto uploaded since 3 weeks. And today it started autouploading all videos over again, but created storage/emulated/0/DCIM/camera within /Autoupload/Video creating second copies there. What's more cancelling them from the status screen doesn't do anything. Well the list of currently uploading files has emptied, but they still getting uploaded. So i can't cancel it...

I just say it again. At the moment there are absolutely no need for any fancy UI changes or anything else in Android apps. All the work on all Android apps need to be suspended. Auto upload is tier 1 function. Most important one. But it is completely broken beyond repair. It needs to be redesigned and redone from the scratch. It's likely will be much more faster and reliable to redo it than chasing thousands of issues.

regs01 avatar Jan 31 '26 21:01 regs01

Is anyone else having #16424 ?

indishere avatar Feb 01 '26 19:02 indishere