Repository navigation
Internal 2-way sync does not pick up files / folders created/modified/deleted outside nextcloud app #13752
Description
Activity
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.
Same issue here, Pixel 8 with GrapheneOS atm
Reacted by superzanti, Lesbian Prime and ChidamCan also confirm this issue, Fairphone 5 with CalyxOS.
Reacted by superzanti and António S.Same here. Pixel 6 with GrapheneOS and Nextcloud Client 3.30.4
- Set up folder Logseq and sub-folders as 2-way sync.
- Open Logseq client and create a new journal entry (creates a new file in Logseq sub-folder).
- Check in Android file manager that new file actually exists.
- Wait.
- New file is not synced after a day although sync is set to 15 minutes.
- Upload new file manually in Nextcloud Client.
- File is synced to server and desktop client immediately.
Reacted by superzantiI 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.
Reacted by Rich Lott, Matsuzaki Haruto and Daniel ScharmachReacted by António S., Guillermo A. Fidalgo-Rodríguez and Frédéric Tobias Christ@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).
Reacted by Dakota GravittYou 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?
@superzanti came back a day later. So no idea at which point nextcloud corrupted the file.
hi. a update on this,
this just happened to me. if i hadnt enabled versions i would have lost my keepass password database.i got 2 nextcloud clients on linux and windows and a android client.
im pretty sure my android didnt have access to the nextcloud server a week ago (when the corrupted file got synced)
i can pull up versions of both keepass and nextcloud on all 3 of my devices. as well as server version.
also i can give you guys a diff of the hex of my database file before and after corruption.
let me know if you guys need anything.I have the same problem. Apparently, the whole 2-way sync is just a 1-way sync, and that only every 15 minutes at least, and only via Wi-Fi. 🤷♂️
I'm slowly starting to regret choosing Nextcloud.
Reacted by António S.@Markoise Gentle reminder that this is a GitHub issue discussion, not a forum board! I am also discontent with the situation, but putting aside the fact that what you might be referring to is actually Google's fault, I'd ask to keep the discussion solely on technical info.
(I am no representative of Nextcloud btw. I just like to keep GitHub issues clean from "me too!")
With the latest (working) version,
the files seem to syncother than not syncing, they're stuck inAndroid/mediafiles instead of us being able to pick somewhere in internal storage, which I'd say is the best end for this functionality.Reacted by Markoise, Akseli, 2xlink and Daniel Scharmach6 remaining items
Small update: I see that there is no code for uploading files/folders that are created locally new.
I assume that the assumption back then was that this is only done from within NC Files app or via Android Files app, which then uses document storage provider to create such new files/folder directly.I am thus adding this code.
Reacted by Sola85, tobias0409, Michael Keck, Rich Lott and Daniel Scharmach
Drop in replacement APK: https://cloud.nextcloud.com/s/ABtFF9JpKTR7qtj
It is with same Google Play Store Key signed.
Same version number, so any newer version will replace it.Please test it and provide feedback if it is now working as expected.
Reacted by Daniel ScharmachReacted by Daniel Scharmach- I'd love to, but I'm disallowed from sideloading or other sources than GPlay.…On Wed, Sep 9, 2026, 10:07 Tobias Kaminsky ***@***.***> wrote: *tobiasKaminsky* left a comment (nextcloud/android#13752) <#13752 (comment)> Image: Image (view on web) <https://github.com/user-attachments/assets/d2edc1e8-61ea-4b31-939c-20108c83f35d> Drop in replacement APK: https://cloud.nextcloud.com/s/ABtFF9JpKTR7qtj It is with same Google Play Store Key signed. Same version number, so any newer version will replace it. Please test it and provide feedback if it is now working as expected. — Reply to this email directly, view it on GitHub <#13752?email_source=notifications&email_token=AILCPYNDASJCLAM6F6DOFO35OFPZVA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKNRQGMZDCOBVHEZ2M4TFMFZW63VHMNXW23LFNZ2KKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-5603218593>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AILCPYMNPVH2EGSDRLZLTG35OFPZVAVCNFSNUABEKJSXA33TNF2G64TZHM3DANJWGE4DGNB3JFZXG5LFHMZDKNZWGUYDGMBTGSQXMAQ> . Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS <https://github.com/notifications/mobile/ios/AILCPYJFRKFN7SSRJ6PMXBL5OFPZVA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKNRQGMZDCOBVHEZ2M4TFMFZW63VHMNXW23LFNZ2KKZLWMVXHJKTGN5XXIZLSL5UW64Y> and Android <https://github.com/notifications/mobile/android/AILCPYJDB5HFPW6YJGGZWF35OFPZVA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKNRQGMZDCOBVHEZ2M4TFMFZW63VHMNXW23LFNZ2KKZLWMVXHJLTGN5XXIZLSL5QW4ZDSN5UWI>. Download it today! You are receiving this because you commented.Message ID: ***@***.***>
Seems to work good. I hope for the final version it won't bei necessary to enable it in the settings and it will be enough to start the sync of a directory. After 10 years #19 will be finally implemented
Reacted by Daniel ScharmachReacted by Markoise and Daniel ScharmachI hope for the final version it won't bei necessary to enable it in the settings and it will be enough to start the sync of a directory.
The "run sync now" is only for debugging, so that the testers can run it immediately, without waiting 15min.
The final version will have the same behaviour like before: enable it per folder and done.Thanks for positive feedback 👍
Reacted by Daniel ScharmachPlease test it and provide feedback if it is now working as expected.
I have tested this as well. When running the sync manually (via "Run sync now"), everything is working as expected.
However, periodic sync does not seem to work reliably on my Samsung S26. I have enabled two-way sync with 15min interval and disabled battery optimization for the nextcloud app. Still, in the two-way sync dialog I see that the last sync happened yesterday. Consequently, the changes I have made in between on a file in the local android storage as well as on another file on the server are not synced in the background.
After enabling two-way snyc, at least one sync happened automatically in the background, but somehow it stopped working.Any hints how to fix this?
@fracklaus is the regular auto-upload working for you?
I can later check, but I think/fear that Samsung has an additional battery optimization settings.@fracklaus is the regular auto-upload working for you? I can later check, but I think/fear that Samsung has an additional battery optimization settings.
Hi @tobiasKaminsky, I have enabled auto upload on a test folder and will check whether it keeps functioning. I will give further feedback tomorrow to allow battery optimization methods to kick in.
However, in my experience, disabling battery optimizations in Samsung works pretty well. I have several apps working in the background flawlessly on my device.
Reacted by Tobias Kaminsky@tobiasKaminsky I have observed the following:
- Autoupload works as expected completely in the background: I put something new in the folder, wait a few minutes, and it gets uploaded to the server without any interaction with the nextcloud app.
- Two-way sync did not work. However, I noticed tremendous battery usage by the nextcloud app in the background. Hence I restarted the nextcloud app yesterday evening. Since then, two-way sync seems to be working in the background as expected, and battery usage has significantly decreased.
I cannot tell why it did not work yesterday and the day before, but since app restart it seems to be working as it should. I will continue to observe and report back here if anything comes up again.
Thank you for providing this major improvement to two-way sync!
Reacted by Daniel Scharmach and Tobias KaminskyHi all, I also bumped into this problem yesterday, and I'm happy to see that it is being worked on just as I encountered it. I tried to install @tobiasKaminsky's patched version, but I get an "App not installed as package conflicts with an existing package" error. Otherwise, I'd be happy to help test this fix.
My usecase: I use the messenger app Signal, which can export a backup to a local folder in the phone file system. I would like that folder to be a two-way synced Nextcloud folder, so that the backup is taken to my server. I already set that up, targeting a subfolder of /Android/media/com.nextcloud.client/..., which was created by the Nextcloud app by enabling two-way sync on a folder.
, but I get an "App not installed as package conflicts with an existing package" error. Otherwise, I'd be happy to help test this fix.
I suspect that you do not have it installed via Google Play Store, right?
If you have installed it via Fdroid I unfortunately cannot create a drop-in replacement, since Fdroid signs the app on their own.However, you can test it here: #17598 (comment)
It is then a separate app, so you would need to set it up and test it.
It would be great to have another test feedback.Thank you!
Reacted by Daniel Scharmach@tobiasKaminsky, maybe tomorrow I can give it a shot, if I can just install the APK there :)
@tobiasKaminsky thank you so much for taking care of this issue.
I tested the APK you liked in #17598 (comment).With the manual "Run sync now" as well as with the scheduled sync I found following things:
Creation of a file on server and client works great. They get picked up and synced.
Deletion of a file on server and client works great. When I delete a file on server side it is being deleted on client as well and the other way around.
Update of a file (change the content of a text file):- When I update a file on the server the changes are synced to the client
- I'm not able to edit files synced to
Android/media/com.nextcloud.android.qa/Nextcloud/<user>@<domain>/. My text editor (BeauTyXT) shows the file as "read only".
My Platform: Google Pixel 9a, GrapheneOS, Android 17
Edit: I'm able to change files locally on my phone. The changes get picked up and synced to the Server properly. The "read only" Problem was between me and my texteditor. I tested now with text files and kdbx files.
Reacted by Tobias KaminskyThe "run sync now" is only for debugging
I would love the keep this option
Reacted by Severin, Daniel Scharmach and Rich LottHello,
The PR is updated, love to hear your feedback: #17598 (comment)
Steps to reproduce
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 .