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

Bug(?):Nextcloud Sync broken #1320

Open
n0name-o0o0 opened this issue Jul 23, 2024 · 38 comments
Open

Bug(?):Nextcloud Sync broken #1320

n0name-o0o0 opened this issue Jul 23, 2024 · 38 comments

Comments

@n0name-o0o0
Copy link

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/

@LaustDengsoe
Copy link

LaustDengsoe commented Jul 23, 2024

I seem to experience the same problem using both my own Nextcloud server and the hanney.org one.
I have tried to plug my Samsung tablet into my PC and using adb, I found the following errors, that might be related to the issue:

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

@QubaB
Copy link
Contributor

QubaB commented Jul 23, 2024

Syncing was fixed in 0.24.3

@LaustDengsoe
Copy link

I still experience the issue when using 0.24.3 on both desktop and tablet 🤔

@Tamperold
Copy link

It doesn't work for me either with the latest saber version. Unfortunately, it hasn't been fixed yet.

@QubaB
Copy link
Contributor

QubaB commented Jul 26, 2024

I tested version 0.24.3 in my debug environments and even on my tablets and syncing works.

I can suggest this:

  1. update saber to 0.24.3 on your devices.
  2. stop saber on all devices (or disconnect from internet)
  3. make a copy of Saber folder on your nextcloud server (download as zip or make copy (... and Move or Copy)
  4. be sure you have copy of Saber folder with files inside! You can revert it back in case of problems.
  5. remove all files from Saber folder except of "config.sbc" on nextcloud
  6. open saber on you first device. It should synchronize everything on nextcloud and new files appear on nextcloud.
  7. wait until synchronization ends.
  8. create new testing note.
  9. run saber on your second device. First it should download new files (nonexisting on device) from cloud and newly created testing note should be downloaded too.
  10. then notes not present on cloud are uploaded from device.
  11. wait for synchronization end.
  12. create testing note on second device (with different name).
  13. then returning back to first device you can press synchronization button in upper right corner to start synchronization (without it synchronization starts later) and notes from your second device should be downloaded (even with newly created note)

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.

@Tamperold
Copy link

Thank you very much for your answer.
However, I still couldn't get it to work.
My approach:

  1. uninstall all Saber installations
  2. deleted folder on Nextcloud
  3. 3x Cient Saber installed (Surface W11, Android with latest patch, VM W11)
  4. logged into Nextcloud everywhere with Saber.
  5. simple encryption password stored (1234)
  6. created new files on Surface + Android.
  7. is not synchronized on VM and also not from Surface to Android and also not the other way around

Further tests:

  1. local DNS deactivated
  2. all files have www-data as owner (-rw-r--r-- 1 www-data www-data 106 Jul 26 06:08 config.sbc)
  3. connected via mobile data -> no sync
  4. nextcloud LOG check -> no errors

Where can I find the LOG files for Saber on Windows?

@Tamperold
Copy link

Addendum:
If I assign a different encryption password, a check is carried out. If I enter it incorrectly on other devices, an error message appears, so the connection and a check to Nextcloud are established.
Only files are simply not synchronized even if they are available in the Nextcloud.
All clients use the current version 0.24.3

@QubaB
Copy link
Contributor

QubaB commented Jul 26, 2024

Where can I find the LOG files for Saber on Windows?
See #382 (comment)

@QubaB
Copy link
Contributor

QubaB commented Jul 26, 2024

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.

@Tamperold
Copy link

Ok. There is a error in the Windows Saber LOGs.

P ATTACH
flutter: dynamic_color: Accent color detected.
flutter: FormatException: Invalid UTF-8 byte (at offset 275)
flutter: #0 _Utf8Decoder.convertSingle (dart:convert-patch/convert_patch.dart:1760)
flutter: #1 Utf8Decoder.convert (dart:convert/utf.dart:349)
flutter: #2 StandardMessageCodec.readValueOfType (package:flutter/src/services/message_codecs.dart:502)
flutter: #3 StandardMessageCodec.readValue (package:flutter/src/services/message_codecs.dart:477)
flutter: #4 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:645)
flutter: #5 EventChannel.receiveBroadcastStream.. (package:flutter/src/services/platform_channel.dart:668)
flutter: #6 _DefaultBinaryMessenger.setMessageHandler. (package:flutter/src/services/binding.dart:581)
flutter: #7 _invoke2 (dart:ui/hooks.dart:344)
flutter: #8 _ChannelCallbackRecord.invoke (dart:ui/channel_buffers.dart:45)
flutter: #9 _Channel.push (dart:ui/channel_buffers.dart:135)
flutter: #10 ChannelBuffers.push (dart:ui/channel_buffers.dart:343)
flutter: #11 PlatformDispatcher._dispatchPlatformMessage (dart:ui/platform_dispatcher.dart:750)
flutter: #12 _dispatchPlatformMessage (dart:ui/hooks.dart:257)
**[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: TimeoutException after 0:00:30.000000: Future not completed

flutter: WARNING: SaberSyncInterface: Failed to get sync file from remote file: Exception: Decryption failed for Saber/
flutter: WARNING: SaberSyncInterface: Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
flutter: WARNING: SaberSyncInterface: Failed to get sync file from remote file: Exception: Decryption failed for Saber/
flutter: WARNING: SaberSyncInterface: Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block**

Only one Windows 11 Client logged in to Nextcloud with Sync.
It's the same error as by LaustDengsoe.

@QubaB
Copy link
Contributor

QubaB commented Jul 27, 2024

The beginning of log can be ignored (some exceptions occur)

Exception: Decryption failed for Saber/
is also ok, it only says that Saber directory on nextcloud cannot be decrypted.

Invalid argument(s): Invalid or corrupted pad block
Means that Saber was not able to decrypt file from nextcloud. When I investigated syncing half a year ago, this occrus when file size was not a multiple of 16 bytes. So the first synchronization from Saber to nextcloud was probably incorrect.

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.

@morrisjuosu
Copy link

Chimming in to confirm that it still broken for me too. Did Android to android. Tried a different password. Reinstalled.

@QubaB
Copy link
Contributor

QubaB commented Jul 28, 2024

I investigated problem with
Invalid argument(s): Invalid or corrupted pad block
more and it once happen to obtain this error.

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.

@morrisjuosu
Copy link

No dice. Getting the same error.

@QubaB
Copy link
Contributor

QubaB commented Jul 29, 2024

No dice. Getting the same error.

Can you show your log file?

@morrisjuosu
Copy link

type: logcat
osVersion: google/shiba/shiba:14/AP2A.240705.005/2024071600:user/release-keys
packageName: com.adilhanney.saber:24030
buffers: main,system,crash,events,kernel
level: verbose

--------- beginning of events
07-29 07:59:58.017  8994  8994 I auditd  : avc=type=1400 audit(0.0:159619): avc:  denied  { read } for  comm="app_process64" name="u:object_r:userdebug_or_eng_prop:s0" dev="tmpfs" ino=374 scontext=u:r:untrusted_app:s0:c232,c256,c512,c768 tcontext=u:object_r:userdebug_or_eng_prop:s0 tclass=file permissive=0 app=com.adilhanney.saber
07-29 07:59:58.029  8994  8994 I auditd  : avc=type=1400 audit(0.0:159620): avc:  denied  { read } for  comm="app_process64" name="u:object_r:userdebug_or_eng_prop:s0" dev="tmpfs" ino=374 scontext=u:r:untrusted_app:s0:c232,c256,c512,c768 tcontext=u:object_r:userdebug_or_eng_prop:s0 tclass=file permissive=0 app=com.adilhanney.saber
07-29 07:59:58.029  8994  8994 I auditd  : avc=type=1400 audit(0.0:159621): avc:  denied  { read } for  comm="dilhanney.saber" name="u:object_r:userdebug_or_eng_prop:s0" dev="tmpfs" ino=374 scontext=u:r:untrusted_app:s0:c232,c256,c512,c768 tcontext=u:object_r:userdebug_or_eng_prop:s0 tclass=file permissive=0 app=com.adilhanney.saber
07-29 07:59:58.037  8994  8994 I auditd  : avc=type=1400 audit(0.0:159622): avc:  denied  { read } for  comm="dilhanney.saber" name="u:object_r:odsign_prop:s0" dev="tmpfs" ino=285 scontext=u:r:untrusted_app:s0:c232,c256,c512,c768 tcontext=u:object_r:odsign_prop:s0 tclass=file permissive=0 app=com.adilhanney.saber
07-29 07:59:58.037  8994  8994 I auditd  : avc=type=1400 audit(0.0:159623): avc:  denied  { read } for  comm="dilhanney.saber" name="u:object_r:userdebug_or_eng_prop:s0" dev="tmpfs" ino=374 scontext=u:r:untrusted_app:s0:c232,c256,c512,c768 tcontext=u:object_r:userdebug_or_eng_prop:s0 tclass=file permissive=0 app=com.adilhanney.saber
07-29 07:59:58.037  8994  8994 I auditd  : avc=type=1400 audit(0.0:159624): avc:  denied  { getattr } for  comm="dilhanney.saber" path="/apex/apex-info-list.xml" dev="tmpfs" ino=83 scontext=u:r:untrusted_app:s0:c232,c256,c512,c768 tcontext=u:object_r:apex_info_file:s0 tclass=file permissive=0 app=com.adilhanney.saber
07-29 07:59:58.053  8994  8994 I auditd  : avc=type=1400 audit(0.0:159625): avc:  denied  { lock } for  comm="dilhanney.saber" path="/system/framework/arm64/boot.art" dev="dm-6" ino=1336 scontext=u:r:untrusted_app:s0:c232,c256,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=0 app=com.adilhanney.saber
07-29 07:59:58.057  8994  8994 I auditd  : avc=type=1400 audit(0.0:159626): avc:  denied  { lock } for  comm="dilhanney.saber" path="/system/framework/arm64/boot-core-libart.art" dev="dm-6" ino=1270 scontext=u:r:untrusted_app:s0:c232,c256,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=0 app=com.adilhanney.saber
07-29 07:59:58.057  8994  8994 I auditd  : avc=type=1400 audit(0.0:159627): avc:  denied  { lock } for  comm="dilhanney.saber" path="/system/framework/arm64/boot-okhttp.art" dev="dm-6" ino=1318 scontext=u:r:untrusted_app:s0:c232,c256,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=0 app=com.adilhanney.saber
07-29 07:59:58.057  8994  8994 I auditd  : avc=type=1400 audit(0.0:159628): avc:  denied  { lock } for  comm="dilhanney.saber" path="/system/framework/arm64/boot-bouncycastle.art" dev="dm-6" ino=1258 scontext=u:r:untrusted_app:s0:c232,c256,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=0 app=com.adilhanney.saber
07-29 07:59:58.057  8994  8994 I auditd  : avc=type=1400 audit(0.0:159629): avc:  denied  { lock } for  comm="dilhanney.saber" path="/system/framework/arm64/boot-apache-xml.art" dev="dm-6" ino=1252 scontext=u:r:untrusted_app:s0:c232,c256,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=0 app=com.adilhanney.saber
07-29 07:59:58.057  8994  8994 I auditd  : avc=type=1400 audit(0.0:159630): avc:  denied  { lock } for  comm="dilhanney.saber" path="/system/framework/arm64/boot-framework.art" dev="dm-6" ino=1306 scontext=u:r:untrusted_app:s0:c232,c256,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=0 app=com.adilhanney.saber
07-29 07:59:58.065  8994  8994 I auditd  : avc=type=1400 audit(0.0:159631): avc:  denied  { lock } for  comm="dilhanney.saber" path="/system/framework/arm64/boot-framework-graphics.art" dev="dm-6" ino=1288 scontext=u:r:untrusted_app:s0:c232,c256,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=0 app=com.adilhanney.saber
07-29 07:59:58.065  8994  8994 I auditd  : avc=type=1400 audit(0.0:159632): avc:  denied  { lock } for  comm="dilhanney.saber" path="/system/framework/arm64/boot-framework-location.art" dev="dm-6" ino=1294 scontext=u:r:untrusted_app:s0:c232,c256,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=0 app=com.adilhanney.saber
07-29 07:59:58.065  8994  8994 I auditd  : avc=type=1400 audit(0.0:159633): avc:  denied  { lock } for  comm="dilhanney.saber" path="/system/framework/arm64/boot-ext.art" dev="dm-6" ino=1276 scontext=u:r:untrusted_app:s0:c232,c256,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=0 app=com.adilhanney.saber
07-29 07:59:58.065  8994  8994 I auditd  : avc=type=1400 audit(0.0:159634): avc:  denied  { lock } for  comm="dilhanney.saber" path="/system/framework/arm64/boot-telephony-common.art" dev="dm-6" ino=1324 scontext=u:r:untrusted_app:s0:c232,c256,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=0 app=com.adilhanney.saber
07-29 07:59:58.065  8994  8994 I auditd  : avc=type=1400 audit(0.0:159635): avc:  denied  { lock } for  comm="dilhanney.saber" path="/system/framework/arm64/boot-voip-common.art" dev="dm-6" ino=1330 scontext=u:r:untrusted_app:s0:c232,c256,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=0 app=com.adilhanney.saber
07-29 07:59:58.069  8994  8994 I auditd  : avc=type=1400 audit(0.0:159636): avc:  denied  { lock } for  comm="dilhanney.saber" path="/system/framework/arm64/boot-ims-common.art" dev="dm-6" ino=1312 scontext=u:r:untrusted_app:s0:c232,c256,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=0 app=com.adilhanney.saber
07-29 07:59:58.069  8994  8994 I auditd  : avc=type=1400 audit(0.0:159637): avc:  denied  { lock } for  comm="dilhanney.saber" path="/system/framework/arm64/boot-framework-nfc.art" dev="dm-6" ino=1300 scontext=u:r:untrusted_app:s0:c232,c256,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=0 app=com.adilhanney.saber
07-29 07:59:58.069  8994  8994 I auditd  : avc=type=1400 audit(0.0:159638): avc:  denied  { lock } for  comm="dilhanney.saber" path="/system/framework/arm64/boot-core-icu4j.art" dev="dm-6" ino=1264 scontext=u:r:untrusted_app:s0:c232,c256,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=0 app=com.adilhanney.saber
07-29 07:59:58.077  8994  8994 I auditd  : avc=type=1400 audit(0.0:159639): avc:  denied  { lock } for  comm="dilhanney.saber" path="/system/framework/arm64/boot-framework-adservices.art" dev="dm-6" ino=1282 scontext=u:r:untrusted_app:s0:c232,c256,c512,c768 tcontext=u:object_r:system_file:s0 tclass=file permissive=0 app=com.adilhanney.saber
07-29 07:59:58.137  8994  8994 I auditd  : avc=type=1400 audit(0.0:159640): avc:  denied  { read } for  comm="main" name="u:object_r:build_attestation_prop:s0" dev="tmpfs" ino=111 scontext=u:r:untrusted_app:s0:c232,c256,c512,c768 tcontext=u:object_r:build_attestation_prop:s0 tclass=file permissive=0 app=com.adilhanney.saber
07-29 07:59:58.137  8994  8994 I auditd  : avc=type=1400 audit(0.0:159641): avc:  denied  { read } for  comm="main" name="u:object_r:build_attestation_prop:s0" dev="tmpfs" ino=111 scontext=u:r:untrusted_app:s0:c232,c256,c512,c768 tcontext=u:object_r:build_attestation_prop:s0 tclass=file permissive=0 app=com.adilhanney.saber
07-29 07:59:58.137  8994  8994 I auditd  : avc=type=1400 audit(0.0:159642): avc:  denied  { read } for  comm="main" name="u:object_r:build_attestation_prop:s0" dev="tmpfs" ino=111 scontext=u:r:untrusted_app:s0:c232,c256,c512,c768 tcontext=u:object_r:build_attestation_prop:s0 tclass=file permissive=0 app=com.adilhanney.saber
07-29 07:59:58.137  8994  8994 I auditd  : avc=type=1400 audit(0.0:159643): avc:  denied  { read } for  comm="main" name="u:object_r:build_attestation_prop:s0" dev="tmpfs" ino=111 scontext=u:r:untrusted_app:s0:c232,c256,c512,c768 tcontext=u:object_r:build_attestation_prop:s0 tclass=file permissive=0 app=com.adilhanney.saber
07-29 07:59:58.137  8994  8994 I auditd  : avc=type=1400 audit(0.0:159644): avc:  denied  { read } for  comm="main" name="u:object_r:build_attestation_prop:s0" dev="tmpfs" ino=111 scontext=u:r:untrusted_app:s0:c232,c256,c512,c768 tcontext=u:object_r:build_attestation_prop:s0 tclass=file permissive=0 app=com.adilhanney.saber
07-29 07:59:58.137  8994  8994 I auditd  : avc=type=1400 audit(0.0:159645): avc:  denied  { read } for  comm="main" name="u:object_r:userdebug_or_eng_prop:s0" dev="tmpfs" ino=374 scontext=u:r:untrusted_app:s0:c232,c256,c512,c768 tcontext=u:object_r:userdebug_or_eng_prop:s0 tclass=file permissive=0 app=com.adilhanney.saber
07-29 07:59:58.165  8994  8994 I auditd  : avc=type=1400 audit(0.0:159646): avc:  denied  { read } for  comm="binder:8994_2" name="u:object_r:qemu_sf_lcd_density_prop:s0" dev="tmpfs" ino=308 scontext=u:r:untrusted_app:s0:c232,c256,c512,c768 tcontext=u:object_r:qemu_sf_lcd_density_prop:s0 tclass=file permissive=0 app=com.adilhanney.saber
07-29 07:59:58.165  8994  8994 I auditd  : avc=type=1400 audit(0.0:159647): avc:  denied  { read } for  comm="binder:8994_2" name="u:object_r:qemu_sf_lcd_density_prop:s0" dev="tmpfs" ino=308 scontext=u:r:untrusted_app:s0:c232,c256,c512,c768 tcontext=u:object_r:qemu_sf_lcd_density_prop:s0 tclass=file permissive=0 app=com.adilhanney.saber
07-29 07:59:58.313  8994  8994 I auditd  : avc=type=1400 audit(0.0:159648): avc:  denied  { read } for  comm="dilhanney.saber" name="u:object_r:userdebug_or_eng_prop:s0" dev="tmpfs" ino=374 scontext=u:r:untrusted_app:s0:c232,c256,c512,c768 tcontext=u:object_r:userdebug_or_eng_prop:s0 tclass=file permissive=0 app=com.adilhanney.saber
07-29 07:59:58.365  8994  8994 I auditd  : avc=type=1400 audit(0.0:159649): avc:  denied  { read } for  comm="dilhanney.saber" name="max_map_count" dev="proc" ino=18395929 scontext=u:r:untrusted_app:s0:c232,c256,c512,c768 tcontext=u:object_r:proc_max_map_count:s0 tclass=file permissive=0 app=com.adilhanney.saber
07-29 07:59:58.461  8994  8994 I wm_on_create_called: [Token=57889329,Component Name=com.adilhanney.saber.MainActivity,Reason=performCreate,time=127ms]
07-29 07:59:58.462  8994  8994 I wm_on_start_called: [Token=57889329,Component Name=com.adilhanney.saber.MainActivity,Reason=handleStartActivity,time=0ms]
07-29 07:59:58.464  8994  8994 I wm_on_resume_called: [Token=57889329,Component Name=com.adilhanney.saber.MainActivity,Reason=RESUME_ACTIVITY,time=0ms]
07-29 07:59:58.474  8994  8994 I wm_on_top_resumed_gained_called: [Token=57889329,Component Name=com.adilhanney.saber.MainActivity,Reason=topStateChangedWhenResumed]
07-29 07:59:58.492  8994  8994 I viewroot_draw_event: [window=VRI[MainActivity],event=Canceling draw. cancelDueToPreDrawListener=true cancelDueToSync=false]
07-29 07:59:58.634  8994  8994 I viewroot_draw_event: [window=VRI[MainActivity],event=Draw frame after cancel]
07-29 07:59:58.639  8994  8994 I viewroot_draw_event: [window=VRI[MainActivity],event=reportDrawFinished seqId=0]
07-29 07:59:58.826  8994  9024 I viewroot_draw_event: [window=VRI[MainActivity],event=Transaction not synced due to no frame drawn]
07-29 08:00:10.282  8994  8994 I view_enqueue_input_event: [eventType=Motion - Cancel,action=com.adilhanney.saber/com.adilhanney.saber.MainActivity]
07-29 08:00:10.292  8994  8994 I wm_on_top_resumed_lost_called: [Token=57889329,Component Name=com.adilhanney.saber.MainActivity,Reason=topStateChangedWhenResumed]
07-29 08:00:10.330  8994  8994 I wm_on_paused_called: [Token=57889329,Component Name=com.adilhanney.saber.MainActivity,Reason=performPause,time=0ms]
07-29 08:00:10.995  8994  8994 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]
07-29 08:00:10.995  8994  8994 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]
07-29 08:00:10.995  8994  8994 I viewroot_draw_event: [window=VRI[MainActivity],event=Not drawing due to not visible]
07-29 08:00:11.007  8994  8994 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]
07-29 08:00:11.007  8994  8994 I wm_on_stop_called: [Token=57889329,Component Name=com.adilhanney.saber.MainActivity,Reason=STOP_ACTIVITY_ITEM,time=2ms]
07-29 08:00:11.013  8994  8994 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]
07-29 08:00:18.718  8994  8994 I wm_on_restart_called: [Token=57889329,Component Name=com.adilhanney.saber.MainActivity,Reason=performRestart,time=0ms]
07-29 08:00:18.719  8994  8994 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]
07-29 08:00:18.719  8994  8994 I wm_on_start_called: [Token=57889329,Component Name=com.adilhanney.saber.MainActivity,Reason=handleStartActivity,time=0ms]
07-29 08:00:18.719  8994  8994 I wm_on_resume_called: [Token=57889329,Component Name=com.adilhanney.saber.MainActivity,Reason=RESUME_ACTIVITY,time=1ms]
07-29 08:00:18.719  8994  8994 I wm_on_top_resumed_gained_called: [Token=57889329,Component Name=com.adilhanney.saber.MainActivity,Reason=topWhenResuming]
07-29 08:00:18.726  8994  8994 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]
07-29 08:00:18.733  8994  8994 I viewroot_draw_event: [window=VRI[MainActivity],event=Start draw after previous draw not visible]
07-29 08:00:18.751  8994  8994 I viewroot_draw_event: [window=VRI[MainActivity],event=reportDrawFinished seqId=0]
07-29 08:00:20.492  8994  8994 I view_enqueue_input_event: [eventType=Motion - Cancel,action=com.adilhanney.saber/com.adilhanney.saber.MainActivity]
07-29 08:00:20.500  8994  8994 I wm_on_top_resumed_lost_called: [Token=57889329,Component Name=com.adilhanney.saber.MainActivity,Reason=topStateChangedWhenResumed]
07-29 08:00:20.532  8994  8994 I wm_on_paused_called: [Token=57889329,Component Name=com.adilhanney.saber.MainActivity,Reason=performPause,time=1ms]
07-29 08:00:21.201  8994  8994 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]
07-29 08:00:21.201  8994  8994 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]
07-29 08:00:21.202  8994  8994 I viewroot_draw_event: [window=VRI[MainActivity],event=Not drawing due to not visible]
07-29 08:00:21.209  8994  8994 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]
07-29 08:00:21.210  8994  8994 I wm_on_stop_called: [Token=57889329,Component Name=com.adilhanney.saber.MainActivity,Reason=STOP_ACTIVITY_ITEM,time=2ms]
07-29 08:00:21.211  8994  8994 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]
07-29 08:01:26.411  8994  8994 I wm_on_restart_called: [Token=57889329,Component Name=com.adilhanney.saber.MainActivity,Reason=performRestart,time=0ms]
07-29 08:01:26.411  8994  8994 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]
07-29 08:01:26.411  8994  8994 I wm_on_start_called: [Token=57889329,Component Name=com.adilhanney.saber.MainActivity,Reason=handleStartActivity,time=0ms]
07-29 08:01:26.419  8994  8994 I wm_on_resume_called: [Token=57889329,Component Name=com.adilhanney.saber.MainActivity,Reason=RESUME_ACTIVITY,time=1ms]
07-29 08:01:26.419  8994  8994 I wm_on_top_resumed_gained_called: [Token=57889329,Component Name=com.adilhanney.saber.MainActivity,Reason=topWhenResuming]
07-29 08:01:26.419  8994  8994 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]
07-29 08:01:26.425  8994  8994 I viewroot_draw_event: [window=VRI[MainActivity],event=Start draw after previous draw not visible]
07-29 08:01:26.443  8994  8994 I viewroot_draw_event: [window=VRI[MainActivity],event=reportDrawFinished seqId=0]
07-29 08:01:30.280  8994  9024 I viewroot_draw_event: [window=VRI[MainActivity],event=Transaction not synced due to no frame drawn]
07-29 08:01:34.495  8994  8994 I wm_on_top_resumed_lost_called: [Token=57889329,Component Name=com.adilhanney.saber.MainActivity,Reason=topStateChangedWhenResumed]
07-29 08:01:34.502  8994  8994 I view_enqueue_input_event: [eventType=Motion - Cancel,action=com.adilhanney.saber/com.adilhanney.saber.MainActivity]
07-29 08:01:36.482  8994  8994 I wm_on_paused_called: [Token=57889329,Component Name=com.adilhanney.saber.MainActivity,Reason=performPause,time=0ms]
07-29 08:01:36.497  8994  8994 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]
07-29 08:01:36.498  8994  8994 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]
07-29 08:01:36.499  8994  8994 I viewroot_draw_event: [window=VRI[MainActivity],event=Not drawing due to not visible]
07-29 08:01:36.506  8994  8994 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]
07-29 08:01:36.506  8994  8994 I wm_on_stop_called: [Token=57889329,Component Name=com.adilhanney.saber.MainActivity,Reason=STOP_ACTIVITY_ITEM,time=2ms]
07-29 08:01:36.510  8994  8994 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]
07-29 08:05:25.402  8994  8994 I wm_on_restart_called: [Token=57889329,Component Name=com.adilhanney.saber.MainActivity,Reason=performRestart,time=0ms]
07-29 08:05:25.405  8994  8994 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]
07-29 08:05:25.405  8994  8994 I wm_on_start_called: [Token=57889329,Component Name=com.adilhanney.saber.MainActivity,Reason=handleStartActivity,time=4ms]
07-29 08:05:25.410  8994  8994 I wm_on_resume_called: [Token=57889329,Component Name=com.adilhanney.saber.MainActivity,Reason=RESUME_ACTIVITY,time=3ms]
07-29 08:05:25.411  8994  8994 I wm_on_top_resumed_gained_called: [Token=57889329,Component Name=com.adilhanney.saber.MainActivity,Reason=topWhenResuming]
07-29 08:05:25.411  8994  8994 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]
07-29 08:05:25.419  8994  8994 I viewroot_draw_event: [window=VRI[MainActivity],event=Start draw after previous draw not visible]
07-29 08:05:25.430  8994  8994 I viewroot_draw_event: [window=VRI[MainActivity],event=reportDrawFinished seqId=0]
07-29 08:05:27.109  8994  9024 I viewroot_draw_event: [window=VRI[MainActivity],event=Transaction not synced due to no frame drawn]
07-29 08:05:33.896  8994  8994 I view_enqueue_input_event: [eventType=Motion - Cancel,action=com.adilhanney.saber/com.adilhanney.saber.MainActivity]
07-29 08:05:33.904  8994  8994 I wm_on_top_resumed_lost_called: [Token=57889329,Component Name=com.adilhanney.saber.MainActivity,Reason=topStateChangedWhenResumed]
07-29 08:05:34.930  8994  8994 I wm_on_paused_called: [Token=57889329,Component Name=com.adilhanney.saber.MainActivity,Reason=performPause,time=0ms]
07-29 08:05:34.957  8994  8994 I wm_on_stop_called: [Token=57889329,Component Name=com.adilhanney.saber.MainActivity,Reason=STOP_ACTIVITY_ITEM,time=1ms]
07-29 08:05:35.119  8994  8994 I wm_on_destroy_called: [Token=57889329,Component Name=com.adilhanney.saber.MainActivity,Reason=performDestroy,time=162ms]
07-29 08:05:35.120  8994  8994 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]
07-29 08:05:35.121  8994  8994 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]
07-29 08:05:35.121  8994  8994 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]
07-29 08:05:42.124 10601 10601 I wm_on_create_called: [Token=53902149,Component Name=com.adilhanney.saber.MainActivity,Reason=performCreate,time=106ms]
07-29 08:05:42.125 10601 10601 I wm_on_start_called: [Token=53902149,Component Name=com.adilhanney.saber.MainActivity,Reason=handleStartActivity,time=0ms]
07-29 08:05:42.126 10601 10601 I wm_on_resume_called: [Token=53902149,Component Name=com.adilhanney.saber.MainActivity,Reason=RESUME_ACTIVITY,time=0ms]
07-29 08:05:42.136 10601 10601 I wm_on_top_resumed_gained_called: [Token=53902149,Component Name=com.adilhanney.saber.MainActivity,Reason=topStateChangedWhenResumed]
07-29 08:05:42.156 10601 10601 I viewroot_draw_event: [window=VRI[MainActivity],event=Canceling draw. cancelDueToPreDrawListener=true cancelDueToSync=false]
07-29 08:05:42.248 10601 10601 I viewroot_draw_event: [window=VRI[MainActivity],event=Draw frame after cancel]
07-29 08:05:42.253 10601 10601 I viewroot_draw_event: [window=VRI[MainActivity],event=reportDrawFinished seqId=0]
07-29 08:05:42.457 10601 10632 I viewroot_draw_event: [window=VRI[MainActivity],event=Transaction not synced due to no frame drawn]
07-29 08:06:44.804 10601 10601 I wm_on_top_resumed_lost_called: [Token=53902149,Component Name=com.adilhanney.saber.MainActivity,Reason=topStateChangedWhenResumed]
07-29 08:06:44.807 10601 10601 I wm_on_paused_called: [Token=53902149,Component Name=com.adilhanney.saber.MainActivity,Reason=performPause,time=0ms]
07-29 08:06:44.863 10601 10601 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]
07-29 08:06:44.864 10601 10601 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]
07-29 08:06:44.864 10601 10601 I viewroot_draw_event: [window=VRI[MainActivity],event=Not drawing due to not visible]
07-29 08:06:44.870 10601 10601 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]
07-29 08:06:44.871 10601 10601 I wm_on_stop_called: [Token=53902149,Component Name=com.adilhanney.saber.MainActivity,Reason=STOP_ACTIVITY_ITEM,time=2ms]
07-29 08:06:44.887 10601 10601 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]
07-29 08:06:45.516 10601 10601 I wm_on_restart_called: [Token=53902149,Component Name=com.adilhanney.saber.MainActivity,Reason=performRestart,time=0ms]
07-29 08:06:45.517 10601 10601 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]
07-29 08:06:45.518 10601 10601 I wm_on_start_called: [Token=53902149,Component Name=com.adilhanney.saber.MainActivity,Reason=handleStartActivity,time=1ms]
07-29 08:06:45.519 10601 10601 I wm_on_resume_called: [Token=53902149,Component Name=com.adilhanney.saber.MainActivity,Reason=RESUME_ACTIVITY,time=1ms]
07-29 08:06:45.520 10601 10601 I wm_on_top_resumed_gained_called: [Token=53902149,Component Name=com.adilhanney.saber.MainActivity,Reason=topWhenResuming]
07-29 08:06:45.537 10601 10601 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]
07-29 08:06:45.547 10601 10601 I viewroot_draw_event: [window=VRI[MainActivity],event=Start draw after previous draw not visible]
07-29 08:06:45.551 10601 10601 I viewroot_draw_event: [window=VRI[MainActivity],event=reportDrawFinished seqId=0]
07-29 08:06:45.553 10601 10601 I viewroot_draw_event: [window=VRI[MainActivity],event=Not drawing due to screen off]
07-29 08:06:45.589 10601 10601 I viewroot_draw_event: [window=VRI[MainActivity],event=Resumed drawing after screen turned on]
07-29 08:06:59.656 10601 10632 I viewroot_draw_event: [window=VRI[MainActivity],event=Transaction not synced due to no frame drawn]
07-29 08:07:01.030 10601 10601 I view_enqueue_input_event: [eventType=Motion - Cancel,action=com.adilhanney.saber/com.adilhanney.saber.MainActivity]
07-29 08:07:01.038 10601 10601 I wm_on_top_resumed_lost_called: [Token=53902149,Component Name=com.adilhanney.saber.MainActivity,Reason=topStateChangedWhenResumed]
07-29 08:07:01.080 10601 10601 I wm_on_paused_called: [Token=53902149,Component Name=com.adilhanney.saber.MainActivity,Reason=performPause,time=1ms]
07-29 08:07:01.739 10601 10601 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]
07-29 08:07:01.739 10601 10601 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]
07-29 08:07:01.740 10601 10601 I viewroot_draw_event: [window=VRI[MainActivity],event=Not drawing due to not visible]
07-29 08:07:01.742 10601 10601 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]
07-29 08:07:01.743 10601 10601 I wm_on_stop_called: [Token=53902149,Component Name=com.adilhanney.saber.MainActivity,Reason=STOP_ACTIVITY_ITEM,time=1ms]
07-29 08:07:01.749 10601 10601 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]
07-29 08:13:19.845 10601 10601 I wm_on_restart_called: [Token=53902149,Component Name=com.adilhanney.saber.MainActivity,Reason=performRestart,time=0ms]
07-29 08:13:19.849 10601 10601 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]
07-29 08:13:19.849 10601 10601 I wm_on_start_called: [Token=53902149,Component Name=com.adilhanney.saber.MainActivity,Reason=handleStartActivity,time=5ms]
07-29 08:13:19.855 10601 10601 I wm_on_resume_called: [Token=53902149,Component Name=com.adilhanney.saber.MainActivity,Reason=RESUME_ACTIVITY,time=2ms]
07-29 08:13:19.856 10601 10601 I wm_on_top_resumed_gained_called: [Token=53902149,Component Name=com.adilhanney.saber.MainActivity,Reason=topWhenResuming]
07-29 08:13:19.856 10601 10601 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]
07-29 08:13:19.862 10601 10601 I viewroot_draw_event: [window=VRI[MainActivity],event=Start draw after previous draw not visible]
07-29 08:13:19.876 10601 10601 I viewroot_draw_event: [window=VRI[MainActivity],event=reportDrawFinished seqId=0]
--------- beginning of main
07-29 08:13:23.089 10601 10649 I flutter : WARNING: SaberSyncInterface: Failed to get sync file from remote file: Exception: Decryption failed for Saber/
07-29 08:13:23.113 10601 10649 I flutter : WARNING: SaberSyncInterface: Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
07-29 08:13:23.114 10601 10649 I flutter : WARNING: SaberSyncInterface: Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
07-29 08:13:23.115 10601 10649 I flutter : WARNING: SaberSyncInterface: Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
07-29 08:13:23.116 10601 10649 I flutter : WARNING: SaberSyncInterface: Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
07-29 08:13:23.116 10601 10649 I flutter : WARNING: SaberSyncInterface: Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
07-29 08:13:23.117 10601 10649 I flutter : WARNING: SaberSyncInterface: Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
07-29 08:13:23.118 10601 10649 I flutter : WARNING: SaberSyncInterface: Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
07-29 08:13:23.119 10601 10649 I flutter : WARNING: SaberSyncInterface: Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
07-29 08:13:23.120 10601 10649 I flutter : WARNING: SaberSyncInterface: Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
07-29 08:13:23.120 10601 10649 I flutter : WARNING: SaberSyncInterface: Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
07-29 08:13:23.122 10601 10649 I flutter : WARNING: SaberSyncInterface: Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
07-29 08:13:23.123 10601 10649 I flutter : WARNING: SaberSyncInterface: Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
07-29 08:13:23.124 10601 10649 I flutter : WARNING: SaberSyncInterface: Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
07-29 08:13:23.125 10601 10649 I flutter : WARNING: SaberSyncInterface: Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
07-29 08:13:23.126 10601 10649 I flutter : WARNING: SaberSyncInterface: Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
07-29 08:13:23.126 10601 10649 I flutter : WARNING: SaberSyncInterface: Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
--------- switch to events
07-29 08:13:24.530 10601 10632 I viewroot_draw_event: [window=VRI[MainActivity],event=Transaction not synced due to no frame drawn]
07-29 08:13:26.635 10601 10601 I view_enqueue_input_event: [eventType=Motion - Cancel,action=com.adilhanney.saber/com.adilhanney.saber.MainActivity]
07-29 08:13:26.654 10601 10601 I wm_on_top_resumed_lost_called: [Token=53902149,Component Name=com.adilhanney.saber.MainActivity,Reason=topStateChangedWhenResumed]
07-29 08:13:27.651 10601 10601 I wm_on_paused_called: [Token=53902149,Component Name=com.adilhanney.saber.MainActivity,Reason=performPause,time=0ms]
--------- switch to main
07-29 08:13:28.032 10601 10601 D VRI[MainActivity]: visibilityChanged oldVisibility=true newVisibility=false
--------- switch to events
07-29 08:13:28.067 10601 10601 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]
07-29 08:13:28.068 10601 10601 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]
07-29 08:13:28.068 10601 10601 I viewroot_draw_event: [window=VRI[MainActivity],event=Not drawing due to not visible]
07-29 08:13:28.079 10601 10601 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]
07-29 08:13:28.079 10601 10601 I wm_on_stop_called: [Token=53902149,Component Name=com.adilhanney.saber.MainActivity,Reason=STOP_ACTIVITY_ITEM,time=2ms]
07-29 08:13:28.080 10601 10601 I viewroot_draw_event: [window=VRI[MainActivity],event=applyTransactionOnDraw applyImmediately]

@QubaB
Copy link
Contributor

QubaB commented Jul 29, 2024

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).

My nextcloud login looks like
image

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.

@morrisjuosu
Copy link

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.

@QubaB
Copy link
Contributor

QubaB commented Jul 29, 2024

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?

@morrisjuosu
Copy link

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.

@QubaB
Copy link
Contributor

QubaB commented Jul 29, 2024

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.

@morrisjuosu
Copy link

I have tried both. I have removed it from all devices and next cloud. Then one at a time added devices. Still doesnt work.

@QubaB
Copy link
Contributor

QubaB commented Jul 29, 2024

And if you test everything only on one device (which was not working)?

@morrisjuosu
Copy link

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.

@QubaB
Copy link
Contributor

QubaB commented Jul 29, 2024

I tested this (worked once)

  1. login to nextcloud
  2. create few notes (they are uploaded)
  3. logout nextcloud. close Saber
  4. Run Saber
  5. delete notes in Saber
  6. login to nextcloud. Notes are not synced with error "Invalid of corrupted pad block".
  7. Press
    image
    button and notes are synchronized.

I am not able to create sequence which works every time. Unfortunately I have no more free time to investigate the problem.

@morrisjuosu
Copy link

morrisjuosu commented Jul 29, 2024

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.

@morrisjuosu
Copy link

morrisjuosu commented Jul 29, 2024

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.

@Catolampus
Copy link

Faced the same issue on 24.3, but 23.3 works cool.

@JustDj-Git
Copy link

JustDj-Git commented Jul 30, 2024

Same problem. Log shows this:

flutter: WARNING: SaberSyncInterface: Failed to get sync file from remote file: Exception: Decryption failed for Saber/
flutter: WARNING: SaberSyncInterface: Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block

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?

@morrisjuosu
Copy link

The problem seems to be fixed in 24.4

@Tamperold
Copy link

I can confirm that.
Version 24.4 works without any problems. Then there was a bug in 24.3.

The issue can now be closed.
Thanks guys!

@LaustDengsoe
Copy link

I can confirm that the new update has fixed it for me too!

@bryanpaget
Copy link

24.4 fixed it for me.

@fybx
Copy link
Contributor

fybx commented Aug 6, 2024

@n0name-o0o0 can you close this issue as it has been fixed by v0.24.4?

@Iey4iej3
Copy link

Iey4iej3 commented Sep 13, 2024

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.

@working-name
Copy link

@fybx This is not fixed, or there's a regression in 0.25.1.

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.

WARNING at 2024-10-31 18:09:31.488049
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.489115
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.489883
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.490595
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.491303
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.492
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.492701
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.493260
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.493546
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.493869
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.494178
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.494486
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.494777
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.495082
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.495506
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.495908
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.496221
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.496582
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.496867
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.497169
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.497459
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.497738
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.498062
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.498346
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.498626
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.498907
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.499197
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.499469
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.499758
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.500060
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.500356
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.500687
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.500979
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.501220
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.501481
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.501746
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.502065
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.502390
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

WARNING at 2024-10-31 18:09:31.502649
Failed to get sync file from remote file: Invalid argument(s): Invalid or corrupted pad block
Invalid argument(s): Invalid or corrupted pad block

@fybx
Copy link
Contributor

fybx commented Nov 1, 2024

@fybx This is not fixed, or there's a regression in 0.25.1.

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.

@Iey4iej3
Copy link

Iey4iej3 commented Nov 1, 2024

#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.

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

No branches or pull requests