Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android App syncing issue #12641

Open
4 tasks done
zmaier24 opened this issue Mar 4, 2024 · 6 comments
Open
4 tasks done

Android App syncing issue #12641

zmaier24 opened this issue Mar 4, 2024 · 6 comments
Labels
bug feature: sync and upload Syncing or uploading (that isn't auto upload specific) Version/3028

Comments

@zmaier24
Copy link

zmaier24 commented Mar 4, 2024

⚠️ Before posting ⚠️

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

Steps to reproduce

  1. Syncing files from the Server to the Mobile Phone by clicking the synchronise button.

Expected behaviour

Only new files shall be downloaded, all files marked with the green arrow shall be excluded.

Actual behaviour

After hitting the sync button all files (also files marked with a green arrow) are marked with the blue circle-arrows and the download from all files starts.

Android version

12

Device brand and model

Samsung S10

Stock or custom OS?

Stock

Nextcloud android app version

3.28.0

Nextcloud server version

25.0.4

Using a reverse proxy?

I don't know

Android logs

No response

Server error logs

No response

Additional information

No response

@zmaier24 zmaier24 added the bug label Mar 4, 2024
@zmaier24 zmaier24 changed the title Amdroid App syncing issue Android App syncing issue Mar 4, 2024
@joshtrichards joshtrichards added the feature: sync and upload Syncing or uploading (that isn't auto upload specific) label Mar 7, 2024
@skidnik
Copy link

skidnik commented Mar 9, 2024

Had the same issue. Decided to reinstall the app changing the source from Google Play to FDroid. Now I have an even weirder behavior:
When I sync a directory with subdirectories in it only the directory and the files in its root get downloaded, all the subdirectories are omitted. If I sync a directory that does not have files in its root, said directory is not created locally as well. The files that are synced (have green arrow on them and are present locally) still get redownloaded each time I sync the directory that contains them.

Android version: 13
Device: Sony Xperia 10 III
Nextcloud android app version: 3.28.0
Nextcloud server version: 27.1.5

Edit: Downgrading the app to 3.27.0 fixes the issue.

@monolied
Copy link

Same issue.
I made a test with a ~6GB share. Syncing with client 3.26.0 takes about 15 seconds (on an older tablet with much less power); using client 3.28.0, same share, takes ~17 minutes and re-downloads everything.

Android version: 8,11,13
Devices: Galaxy S5e, Galaxy S6, Galaxy A10
Nextcloud android app version: 3.28.0
Nextcloud server versions: 28.0.2.5, 28.0.3.2

@NoelDeMartin
Copy link

I recently lost some data and I think it was related with this issue, so this may be a bigger problem than it seems.

I realized this change in behaviour a while ago, after an update, but I found this open issue so I didn't give it too much thought. However, I've been travelling for a couple of weeks and changing files directly from my phone rather than my computer. So when I got home, I did a full sync on the folder rather than syncing files one by one, and to my surprise all the changes I had done in these 2 weeks were lost 😱.

Fortunately, I had been using Obsidian to edit the files and it has a built-in file recovery system (which I didn't even know existed, thank god). So I could get back most of it, but I still lost some changes that hadn't been backed up. So I'm seriously considering downgrading the app until this is solved, but that's a bummer :(.

@skidnik
Copy link

skidnik commented Apr 6, 2024

Steps to reproduce

  1. Have a directory structure in nextcloud storage similar to this (with parent directory only have subdirectories and no files in it, files in the sundirectories):
ParentDir0
├── ChildDir1
│   ├── 01.mp3
│   ├── 02.mp3
│   └── Cover.jpg
└── ChildDir2
    ├── 01.mp3
    └── Cover.jpg
  1. Open Nextcloud Android app, in the 'ParentDir0' kebab menu directory press Sync
  2. See that nothing happened: nothing got downloaded, no files or directories created in local storage.
  3. in Nextcloud app go to 'ParentDir0', in the 'ChildDir1' kebab menu press Sync
  4. See in the notification area that the files from 'ChildDir1' have been downloaded, but only the directories have been created in local storage, the files have stayed in the 'tmp' directory.
  5. On 'ParentDir0' press sync.
  6. See in notification area that the files from 'ChildDir1' have been downloaded, see in the file manager that the the files have now been placed under 'ChildDir1' where they should be instead of inside 'tmp' directories.
  7. On 'ParentDir0' press sync again, see in the notification area that the files from 'ChildDir1' have been redownloaded regardless of them being already in place in local sorage.
  8. See also that despite syncing the 'ParentDir0' several times the files and the directory 'ChildDir2' and files in it have not been downloaded.

Expected behaviour

Sync from remote to local storage works recursively, files that have already been synced are redownloaded only if they have been modified in remote storage since last sync.

Actual behaviour

Sync from remote to local storage does not work recursively, files that have already been synced are redownloaded each time the sync is engaged regardless of them being up to date with remote storage.

Android version: 13
Device brand and model: Sony Xperia 10 III
Stock or custom OS?: Stock
Nextcloud android app version: Nextcloud dev version 20240402
Nextcloud server version: 28.0.3, hosted by Hetzner.

Android logs:
nc_logs.txt

Additional information:
3.28.0 has same issues.
in 3.27.0 this works correctly.

@DaLiV
Copy link

DaLiV commented Apr 17, 2024

sadly no progress on sync from cloud to android in last 8 years made ... old bugs still there where they was
android has no "2-way syncing" - only "upload" instead of "sync"

#19 ...
19 - can have meaning at very begin of project was request made ...

#5902
#7861

personally has not noticed that something synced from cloud to droid in all usage times.
but some posts mentions that feature was working ...
#12358

so - not sure

@Schneehexe
Copy link

Also here with me.
The synchronization no longer works for the most part.
Files that are present on the mobile device are downloaded again every time they are synchronized, even if they have not been changed at all. That wastes a lot of data volume on me.
Subdirectories are created during synchronization in the mobile device, but the files in them are not downloaded at all. However, if I open the folder once in the file overview in Nextcloud, the files will also be downloaded during the next synchronization.
Does anyone actually care about this problem at all?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug feature: sync and upload Syncing or uploading (that isn't auto upload specific) Version/3028
Projects
None yet
Development

No branches or pull requests

7 participants