android icon indicating copy to clipboard operation
android copied to clipboard

Auto-Upload ignored files randomly

Open jacksbox opened this issue 6 months ago • 13 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

F-Droid Nextcloud app 3.31.4 Android 15 / Pixel 8a Full permissions to everything

The app ignores randomly some files and does not upload them. I'm only syncing my camera folder and sometimes a whole day is not uploaded, sometimes just a bunch of photos shot in close proximity and sometimes just 1 or 2 of a set are not uploaded.

Expected behaviour

Why is that happening? What can I do, apart fromanually uploading?

Actual behaviour

Files are missing

Android version

15

Device brand and model

pixel 8a

Stock or custom OS?

Stock

Nextcloud android app version

3.31.4

Nextcloud server version

30.0.6

Using a reverse proxy?

I don't know

Android logs

No response

Server error logs


Additional information

Some improvement ideas: The app should e.g. once a day check for missing file and upload them? The app should have force upload of missing images so I can at least fix it kinda myself?

jacksbox avatar Jun 24 '25 15:06 jacksbox

Running GrapheneOS - Android 15 last build.

I also observed some erratic behavior with that 3.31.4 version (f-droid) : I added a new Nextcloud server to the App yesterday, removing previous one at the same time. Then I went to Auto upload feature to reactivate it for pictures and screenshots.

  • It started with showing wrong number of pictures in the "Camera" folder : "+67" when I have around 3000 pictures.
  • Screenshot was working (and displaying correct number of pictures)
  • Then I deactivated default "Camera" folder (btw, no way to browse and change location), and created a manual one. Then it worked for now.

But it is uncertain when the upload will occur if a new picture is taken : it can takes 20 minutes before action is triggered, restarting app does not help, there is no parameter about that. This is hard to troubleshoot when you don't know when action will raise.

Reinstalled version 3.31.3 and everything works flawlessly as previously.

pled avatar Jun 29 '25 09:06 pled

I have seen a similar issue with manual uploads as well. When I select 20 photos in the Gallery app and then share them with nextcloud, only some of them are uploaded, the rest is simply ignored. I also couldn't find a pattern which ones are ignored, it seems quite random.

zonque avatar Jul 09 '25 09:07 zonque

Same here :-(

Sanookmakmak avatar Jul 10 '25 05:07 Sanookmakmak

For anyone stumbling on this topic: I switched to using the folderSync app for syncing to nextcloud. Works like a charm. Stable and more flexible.

jacksbox avatar Jul 10 '25 08:07 jacksbox

Perhaps linked to, or duplicate of, #14810 ?

daniel-callejas-sevilla avatar Jul 13 '25 14:07 daniel-callejas-sevilla

For anyone stumbling on this topic: I switched to using the folderSync app for syncing to nextcloud. Works like a charm. Stable and more flexible.

@jacksbox can ypou describe what you are doing here? I am seeing similar issues and if there is a workaround it would be useful.

robdupre avatar Jul 14 '25 08:07 robdupre

@robdupre FolderSync is an android app (paid or free with ads) which allows to sync to various remote services / via various e protocols. You can setup one or more local folders to monitor and sync to one or more remote locations. You can connect (among many others) to nextcloud. It's possible to set many options, e.g. one way sync (both directions are possible), two way sync, change handling, delete handling, etc pp. You also can set a schedule when to sync, e.g. once a week, every day at noon, every hour etc. It's also possible to sync on change detection, but that's still beta - seems to work great though. All in all, I paid for ads free, set it up on my and my wife's phone and never had any issues with syncing anymore.

jacksbox avatar Jul 14 '25 10:07 jacksbox

@robdupre FolderSync is an android app (paid or free with ads) which allows to sync to various remote services / via various e protocols. You can setup one or more local folders to monitor and sync to one or more remote locations. You can connect (among many others) to nextcloud. It's possible to set many options, e.g. one way sync (both directions are possible), two way sync, change handling, delete handling, etc pp. You also can set a schedule when to sync, e.g. once a week, every day at noon, every hour etc. It's also possible to sync on change detection, but that's still beta - seems to work great though. All in all, I paid for ads free, set it up on my and my wife's phone and never had any issues with syncing anymore.

Thanks!

robdupre avatar Jul 15 '25 14:07 robdupre

I have the same problem. auto syncing camera and other pic folders only works with something 1/20 times, not even opening the app makes it sync, i have to almost always manually upload the camera picture.

Tried before to remove and re-add the whole app, same problems.

On latest graphene os as other also stated in comments.

VinterSolen avatar Jul 21 '25 14:07 VinterSolen

Over the last few months I also repeatedly encountered upload issues with the Android app.

Today I installed the F-Droid version of Nextcloud to avoid the known Google file permission problems.
I took 10 photos within ~2 hours. Only 9 were uploaded.

Then I uninstalled the regular app and installed the dev version.
Again, I took 10 random pictures, and out of 10 photos, 1 was missing.

In the logs, the missing file does not appear at all — there isn’t even a failed upload entry. This makes me wonder if the “local file check” might be the source of the issue.

Device reboot did not help. Disabling and reenabling the folder sync did also not help.

If you can tell me how to properly anonymize the logs, I’ll be happy to provide them.

My setup:

  • Phone: Samsung Galaxy S20 FE (SM-G780G)
  • Nextcloud App: 20250729 DEV from F-Droid
    • app has full file system permission
  • Nextcloud Server: 30.0.12.2

devritter avatar Aug 17 '25 17:08 devritter

  1. After decades and 265 releasese, it is very concerning that something as basic as this can go wrong
  2. There is absolutely no work around, i.e. reboot/re-enable etc all don't work
  3. Can someone explain how this auto upload mechanism works technically? i.e. why does auto upload rely on google services???

bilogic avatar Oct 02 '25 03:10 bilogic

https://github.com/nextcloud/android/issues/11485 it just keeps happening..........

bilogic avatar Nov 28 '25 16:11 bilogic

This might be of interest: https://github.com/nextcloud/android/issues/15830#issuecomment-3449925093

I can't wait for a 3.35.0-rc1 to be released, there have been a lot of fixes to this exact mechanism and logic and we all hope the situation will be a lot better. But because it's not released yet, people are stiff suffering from exotic bugs that might be related, and keep reporting them when they might be fixed already in master...

I think 3.35.0 will mark the end of the bunch of "auto-upload" deep dive fixes and the low hanging fruits. If 3.35.0 doesn't address these issues elegantly it might be worth re-opening the discussion for a "force-sync" or "force-rescan" button for each album.

Until I see 3.35.0 come out, I'll just trust that the recent refactors might make everything smoother, like the previous ones substancially improved the user experience since this summer.

koolfy avatar Nov 29 '25 11:11 koolfy