-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
Bug(?):Nextcloud Sync broken #1320
Comments
I seem to experience the same problem using both my own Nextcloud server and the hanney.org one. 07-23 15:04:35.355 682 699 E keystore2: system/security/keystore2/src/error.rs:182 - Rc(r#KEY_NOT_FOUND), "system/security/keystore2/src/service.rs:159: In get_key_entry, while trying to load key info. 10481, Some("com.adilhanney.saber.FlutterSecureStoragePluginKey")" ... 07-23 15:04:35.673 682 699 I keystore2: system/security/keystore2/src/security_level.rs:697 - In generate_key. 10481, Some("com.adilhanney.saber.FlutterSecureStoragePluginKey") 07-23 15:04:35.676 682 699 I keystore2: system/security/keystore2/src/database.rs:2339 - In store_new_key "com.adilhanney.saber.FlutterSecureStoragePluginKey", uid=10481, cert=true, cert_chain=false rebound=false ... 07-23 15:06:25.796 16948 16977 I flutter : WARNING: SaberSyncInterface: Failed to get sync file from remote file: Exception: Decryption failed for Saber/ 07-23 15:06:25.797 16948 16977 I flutter : WARNING: SaberSyncInterface: Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block 07-23 15:06:25.799 16948 16977 I flutter : WARNING: SaberSyncInterface: Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block 07-23 15:06:25.801 16948 16977 I flutter : WARNING: SaberSyncInterface: Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block 07-23 15:06:25.804 16948 16977 I flutter : WARNING: SaberSyncInterface: Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block ... 07-23 15:19:46.359 23404 23440 I flutter : SEVERE: SaberSyncInterface: findRemoteFiles: Unknown error: ClientException: Connection closed before full header was received, uri=https://nc.saber.adil.hanney.org/remote.php/webdav/Saber |
Syncing was fixed in 0.24.3 |
I still experience the issue when using 0.24.3 on both desktop and tablet 🤔 |
It doesn't work for me either with the latest saber version. Unfortunately, it hasn't been fixed yet. |
I tested version 0.24.3 in my debug environments and even on my tablets and syncing works. I can suggest this:
I tested it on my development virtual machines and it worked well. I used this recipe few months ago when I have problems with synchronization. In case of problems simply remove Saber folder from nextcloud and put there your backup copy. And the situation will be the same as before. |
Thank you very much for your answer.
Further tests:
Where can I find the LOG files for Saber on Windows? |
Addendum: |
|
You tried to test too much things together. In this case I reccomend to try only one platform at a time and test if Saber can upload notes to empty nextcloud. Does it work for all platforms? Then you can investigate synchronization between platforms. |
Ok. There is a error in the Windows Saber LOGs. P ATTACH flutter: WARNING: SaberSyncInterface: Failed to get sync file from remote file: Exception: Decryption failed for Saber/ Only one Windows 11 Client logged in to Nextcloud with Sync. |
The beginning of log can be ignored (some exceptions occur)
Did you tryed to create and synchronize more than one note? I cannot help more in this case. I tried different scenarios in Saber debug version on windows but it worked. |
Chimming in to confirm that it still broken for me too. Did Android to android. Tried a different password. Reinstalled. |
I investigated problem with Please try logout Saber from your nextcloud account, close Saber and then again login to nextcloud. It should fix problem. I must say, that this error happened me only once so I was not able to debug it. But I only tried to logout and login to nextcloud from Saber. |
No dice. Getting the same error. |
Can you show your log file? |
|
I see nothing special in this log. However I was able to simulate again the state returning "Invalid of corrupted pad block" (by logging in and out). I am logged in nextcloud, but my encryption password is empty (I typed password during nextcloud login, but it was probably forgot by Saber). When I enter password, things go OK or wrong. I cannot find the reason. Please check if you are really correctly logged in. Or try to logout and login again. I think that this problem is somehow connected with situation that Saber incorrectly saves configuration. |
I can confirm that I logged out and logged back in and used the correct encryption password. I also deleted all the files in Saber and tried a new encryption password. I'm still getting the "Invalid of corrupted pad block" warning previously mentioned. I also confirmed that it occurs when I try to refresh. |
How are you creating notes to be synced? On logged Saber? Then you logout and then try login? Or you have all empty. Login, create new notes and then try to synchronize? |
Created them after and before logging in. Logged out (about 10 times now on 3 devices each). It never worked even when I had no notes on any device. |
You are still connected on different devices at one time? Can you test it only on one device (on which it does not work? I am testing only on one device other are switched off. I am creating notes after be logged in. |
I have tried both. I have removed it from all devices and next cloud. Then one at a time added devices. Still doesnt work. |
And if you test everything only on one device (which was not working)? |
I still get the decrypting warning with just one device connected to Nextcloud. So its uploading the file, but unable to read what was uploaded. |
No dice. I would also recommend to those that are trying this to make a backup. If you do the previous method you will lose your files until the bug is inevitability fixed. Edit: Those worried they lost their files forever: downgrade to 23.3 and you'll be able sync again. |
Additional test I want to add to future troubleshooters, I tried using the official Saber nextcloud and got the same result -- It's not working. Seems like the safest way to use cloud sync at the moment is to use the older version of the software. Edit: 23.3 works like a charm. |
Faced the same issue on 24.3, but 23.3 works cool. |
Same problem. Log shows this: flutter: WARNING: SaberSyncInterface: Failed to get sync file from remote file: Exception: Decryption failed for Saber/ I figured out that on 23.3+ versions, folders didn't sync! If you put your notes in folders - all good. Btw, I have a zip backup of all my notes from the latest version. How can I restore it if 23.3v+ can't sync folders at all and 23.3v can't see 24v folders? Have I lost my notes? |
The problem seems to be fixed in 24.4 |
I can confirm that. The issue can now be closed. |
I can confirm that the new update has fixed it for me too! |
24.4 fixed it for me. |
@n0name-o0o0 can you close this issue as it has been fixed by |
I think that there are still issues in v0.24.4 (F-Droid). Now my notes are not correctly synchronized among devices. Updated: seems to be fixed after a logout and then a login. |
@fybx This is not fixed, or there's a regression in Same error as everyone else, from both Android 14 and iOS 16.4.1. Seems this has been a thing from way back in #382 then later these dupes popped #943 #923 before finally this ticket. Since this ticket has the highest ID I decided to post here.
|
Regression probably, I was able to test and use on Android 13 & 14. Haven't checked the newest version. |
#382 is probably irrelevant: the code for sync was completely rewritten since then, and if I remember correctly, that issue was mainly due to some external library. The current issue is an issue of the new code. |
Using Saber 0.24.2 f-droid
It won't sync cross devides!
I just make a random note on one of my device,and i want to sign in nextcloud and sync it to another device.but the one made notes shows upload is complete,i refresh another,it dont appear.(using same password)i erased the Saber with note's data,it dont appear again when i signed in nextcloud
Nextcloud server: https://nch.pl/
The text was updated successfully, but these errors were encountered: