Open vit1-irk opened 5 years ago
Are you syncing some other source with that same directory? Could it be that it's a valid conflict - file modified both in Orgzly and elsewhere before syncing?
There shouldn't be anything different going on when shifting time from notification.
It does communicate with my Nextcloud instance from time to time.
Probably like that:
Possible solution (when pressing button):
Hmm, doesn't look like it's my own sync tool, because today I was syncing notebooks in manual mode, and the error was still produced.
I'll try to catch logcat output if possible
I was syncing notebooks in manual mode
What do you mean by this?
Do you normally use Nextcloud's Android app for syncing, marking files as "available offline"? I've just started using it and I'm getting some strange modification times set for each file. It seems it's set to the time file was previously synced.
It's doesn't really matter what it is though, it's important that it changes, as it's used as "revision" by Orgzly.[1]
But perhaps it doesn't change in some cases.
[1]
This needs to be improved, which was attempted in the past.
I'll try to catch logcat output if possible
I'm not sure it's verbose enough, especially in production version. I'll see to change that.
Do you normally use Nextcloud's Android app for syncing, marking files as "available offline"?
No, totally not. I use my own script which runs SSH scp utility to pull & push files to server and back for Orgzly
What do you mean by this?
I was mistaken.
Earlier I had to manually launch Orgzly after downloading of newer version of notebook to sync the changes.
Now my download script contains this line am startservice -a com.orgzly.intent.action.SYNC_START com.orgzly/com.orgzly.android.sync.SyncService
But sync errors are not completely gone
Got several conflicts today, catched some logcat output, but without sensible result
Tried to export "local" and "remote" notebooks to find out what is the real problem
diff "remote file" "local file"
Looks like the problem is on my own side, because the changes were not synced immediately after edit
@nevenz
Is there a method to trigger a custom intent when Orgzly completes filesystem synchronization? It will be a perfect way to push changes back to the server. Good to combine it with Termux
It could be implemented.
Maybe Orgzly needs to implement detailed conflicts view screen to resolve sync issues easily (and figure out what happened)?
Something to help with resolving conflicts is planned. There has been some discussion in #8.
Thanks for debugging this. I've been seeing similar issues since trying Nextcloud app. Perhaps something like FolderSync using WebDAV might be a better solution.
Ok, sorry for bothering and waiting for some changes
Let this issue be opened for some time
I'm submitting a bug report for version 1.6.10 This bug exists not only in 1.6.10, but also in all previous versions of Orgzly. I'm submitting an issue because this thing has got really annoying.
Steps to reproduce:
Steps to come over that nasty error: