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

Internal 2-way sync does not pick up files / folders created/modified/deleted outside nextcloud app #13752

Open
4 tasks done
tobias0409 opened this issue Oct 9, 2024 · 8 comments

Comments

@tobias0409
Copy link

⚠️ 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. Enable 2-way synchronization for a folder
  2. Create a file/folder using the Android file browser, modify an existing file/folder, or delete a file/folder using the Android file browser
  3. Wait for the next synchronization to begin
  4. The Nextcloud Android App fails to detect the files, or in other words, it does not recognize the changes

Expected behaviour

It should be possible to create, modify, or delete a file or folder outside the Nextcloud app (e.g., using the phone's file browser or any other app with access to the synced folder).

Actual behaviour

When creating, modifying, or deleting a file or folder outside the Nextcloud app, the app does not recognize the changes and fails to detect the new files. Despite this issue, the sync operates normally every 15 minutes.

Android version

14

Device brand and model

Samsung Tab S7 FE

Stock or custom OS?

Stock

Nextcloud android app version

3.30.1 RC1

Nextcloud server version

29.0.6

Using a reverse proxy?

Yes

Android logs

No response

Server error logs

No response

Additional information

I have already described the issue in detail in PR #13294 .

@superzanti
Copy link

Thanks for opening this @tobias0409

I have the same issue on my Pixel 5a

You can see some of the details of my issue here.

@skimave
Copy link

skimave commented Oct 10, 2024

Same issue here, Pixel 8 with GrapheneOS atm

@Akselmo
Copy link

Akselmo commented Oct 28, 2024

Can also confirm this issue, Fairphone 5 with CalyxOS.

@motareis
Copy link

motareis commented Nov 3, 2024

Same here. Pixel 6 with GrapheneOS and Nextcloud Client 3.30.4

  1. Set up folder Logseq and sub-folders as 2-way sync.
  2. Open Logseq client and create a new journal entry (creates a new file in Logseq sub-folder).
  3. Check in Android file manager that new file actually exists.
  4. Wait.
  5. New file is not synced after a day although sync is set to 15 minutes.
  6. Upload new file manually in Nextcloud Client.
  7. File is synced to server and desktop client immediately.

@superzanti
Copy link

I hate to say it, but I ended up purchasing a license to FolderSync. For all who are waiting on a solution, I suggest you do the same - This has been a game changer for my note-taking.

I believe it will be a better solution. This has been an issue in nextcloud/android for years. FolderSync has native support for nextcloud too. And I just set it up to sync my existing nextcloud folders that I have in android. It works great and has a much higher level of configurability than I believe this feature will get anytime soon.

@artfulrobot
Copy link

artfulrobot commented Nov 6, 2024

@superzanti thanks for sharing. I might end up looking at that.

I have just experienced file corruption using the two way sync.

  • Set up two way sync on the android app (3.30.3) on a folder called Keepass (you do this by going to Details on the folder, then checking the sync checkbox).
  • Opened one of the keepass files within that folder from within Nextcloud. It opened the KeepassDX app.
  • Saved the file in the external (KeepassDX) app, as normal.
  • come back a day later, thinking it should be all sync-ed: file is corrupted, will not load in KeepassDX on android or KeepassXC on desktop. Had to roll back to backup; lost the new password I added.

This needs a lot more testing before being available for use. (possible other example of someone using Keepass + Nextcloud losing their data)

Incidentally: the method I outline here used to work (as long as I manually chose Sync on the file after saving).

@superzanti
Copy link

You know, I use keepass and haven't had this issue before.
I rarely update keepass on my phone. But regardless, notes seem to sync fine.

Does this happen with just a text file? What kind of timing do you have? like is it 5 min before switching to another device and interacting with that file? 10?

@artfulrobot
Copy link

@superzanti came back a day later. So no idea at which point nextcloud corrupted the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants