nextcloud / android

📱 Nextcloud Android app
https://play.google.com/store/apps/details?id=com.nextcloud.client
GNU General Public License v2.0
4.16k stars 1.75k forks source link

Suddenly Bidirectional Sync? #10878

Closed MadMakz closed 10 months ago

MadMakz commented 1 year ago

⚠️ Before posting ⚠️

Steps to reproduce

When you set a folder for auto-sync it now not just syncs it to server but also back to local Android/media/com.nexcloud.client/>account< so you basicaly end up with doublicated files.

Edit: This also applies to manual Sync like "Send to" function!

Expected behaviour

Sync file to server.

Actual behaviour

Syncs file to server and local.

Android version

12

Device brand and model

Samsung Galaxy A71

Stock or custom OS?

Stock

Nextcloud android app version

3.22.1

Nextcloud server version

24.0.6

Using a reverse proxy?

No

Android logs

No response

Server error logs

No response

Additional information

No response

luckkmaxx commented 1 year ago

But you mean synced files are placed too in local nextcloud data folder, wich is a desired behavior when you select "original file will be..." > (keeped, deleted or) moved to nextcloud data folder. So if thats not your case, you mean it happens altough you didnt choosed to move originals?

MadMakz commented 1 year ago

I'm using it since over two years on this phone, and another nearly two years on the phone before that, haven't touched the settings.

It's set to: Also on existing files Use subfolders Keep original in original folder

What the client is doing at the moment is no listed feature of NC nor is there a function to disable it. It syncs to server and then it syncs back to the client app. That is just no feature of nextcloud since it should only have automatic uploads but not downloads.

And it only happens on new files (luckily) not on existing files and started with either app 3.22 or 3.22.1

In the Gallery it looks like this: Left is unwanted back sync to default NC folder Android/media/com.nextcloud.client/>ACCOUNT</>PATH</>FILENAME<.

On the right is the original under DCIM/Camera/>FILENAME< Screenshot_20221022-145039_Gallery

MadMakz commented 1 year ago

What is also weird is that the Roadmap for the RC!!!! from 3.22.1 states it should release on November and not all tasks are marked as done but we have it already as stable in PlayStore?? #10812

BigBoyMarky commented 1 year ago

I believe I am experiencing a very similar issue.

For the longest time I've had a custom sync setup from Android -> Remote folder for my Pixel 6a. When tinkering with setting up another device last night, was noticing weird behaviors with how manual file uploads were causing many duplicate copies on the new phone S22+. I went back to my Pixel 6a and noticed that for some reason my custom sync was NOW also syncing the files back down in the com.nextcloud.client directory even though it never happened before.

Thought it might have been a Nextcloud Hub 3 or Android app issue and low and behold, see that I'm not the only once experiencing this issue. And as noticed, not all tasks were marked as complete before releasing.. This definitely seems to be a problem stemming from the most recent Android release.

MadMakz commented 1 year ago

Ok, this is a serious issue now!

It doublicates each file TWICE on EACH new sync adding numberings to the "cloned" file in braces like (1), (2), (3), (4). My gallery is a mess. I disabled Nextcloud for now as it is completely broken (there's other stuff not working since a long time and not beeing fixed such as Media tab loading nothing or freezing if many files are expected)

I'm using FolderSync for now

luckkmaxx commented 1 year ago

Nextcloud app sometimes sucks! Maybe is useful for office files management but regarding media, there are much stable and feature rich apps that covers that aspect.

Photo gallery:

Photo sync: Well, there are many options. What I know and sure are ones of the best are:

What I miss in that apps is the ability to MOVE content from the source folder to another one in the phone. I choose Nextcloud app for media sync because moving files is my way to separate synced from new taken images keeping all I want in my device storage until I decide to delete it.

I think the release AS STABLE of 3.22 with hub3 support was an irresponsible mistake. Seems They were in a hurry to pull it off due to hub3 arrive. But as the app is, they should have released it as BETA. You devs are playing with fire, there are many people who could lost the images of his lifes, beliving they are on a stable environment. Thats why I recomend you all users to have backups well saved outside your servers, in a hard disk in a drawer.

FALErwi commented 1 year ago

I can confirm this bug, It doublicates my media twice.

mikeeman commented 1 year ago

+1 also having this problem and now I wake up to phone out of storage every day because a few larger videos are getting duplicated and duplicated over and over please fix

AlvaroBrey commented 1 year ago

This looks related to https://github.com/nextcloud/android/issues/10885 and as such will likely be fixed by #10914 as well. You may want to try the QA APK in #10914 and see if that helps

davolesh commented 1 year ago

Experiencing the same issue on Fold 4 and S22. Started after October 14th, 2022.

Files are being duplicated and stored to "/internal storage/Android/media/com.nextcloud.client/nextcloud/user@domain.name/"

AlvaroBrey commented 1 year ago

Experiencing the same issue on Fold 4 and S22. Started after October 14th, 2022.

Files are being duplicated and stored to "/internal storage/Android/media/com.nextcloud.client/nextcloud/user@domain.name/"

That is #10885 and will be fixed in 3.22.3, releasing next week.

Xerionty commented 1 year ago

My parents and I experience the same issue on 3.22.2. Hope the next release indeed fixes this.

kanunnikau commented 1 year ago

Experiencing the same issue on Fold 4 and S22. Started after October 14th, 2022. Files are being duplicated and stored to "/internal storage/Android/media/com.nextcloud.client/nextcloud/user@domain.name/"

That is #10885 and will be fixed in 3.22.3, releasing next week.

I have 3.22.3 and the issue seems to still be present. Android happily reports "app storage used: 13.81GB" (
Screenshot_2022-11-07-13-39-50-340_com miui securitycenter ) and I definitely haven't synced that much stuff back to my phone. What's more scary is that it's completely unclear how are things synced. What's going to be kept? What will be deleted? I have a "Backups" folder on my phone that ideally should work as a one-way sync. Back things up on Android, see them safely on my server, clear folder on mobile to have space. Well, now I am seeing them also in the Nextcloud folder (Android/media/com.nextcloud.client/...). At least the app tells you via notification that it's downloading the unwanted files (if you happen to look at the moment). Still I have no idea how to properly get rid of extra files on the phone. They do show up in the "on device" menu — and then what? Can I delete them only locally? Or is that "delete" command going to delete them on the server too? So far I've noticed that if I just go to the app folder (Android/media/com.nextcloud.client/...) in a file manager and manually remove the duplicate files then things will be as desired — only on the server. But probably it's only temporary and the app will redownload them again at some point. Also I've suddenly noticed that there is some limited two-way sync. Files downloaded to the app folder (Android/media/com.nextcloud.client/...) can be edited locally and the changes will upload to the server. That's quite cool. But the duplicated upload/download is quite a pain in the a**. I suspect that it has drained my mobile account as at night the app was using flaky wifi to upload backup and photos. And when the wifi dropped the app just continued syncing everything down via mobile data. Not too cool. (I've reported this as #11002 ).

davolesh commented 1 year ago

On 3.22.3 as well, issue still persists. Nextcloud is successfully backing pictures up, but also moving the to the "synced" local folder on my phone. Screenshot_20221107_080218_Nextcloud Screenshot_20221107_080340_Gallery

That folder is not set up to sync to my phone.

joshtrichards commented 10 months ago

Fixed in #10914 Released in v3.23.0