Question: When should we anticipate the updated linux terminal client (v1.0.197 or recent) to be updated and released via npm, or how can I download and install the latest release/pre-release of the linux terminal client today, other than building and installing from source?
Currently, the recent encryption change is causing decryption to fail in the joplin Linux terminal client, for any items that have been edited in the updated iOS app (or updated desktop client), and synced to other clients.
Now that I have updated the Joplin desktop app, and re-encrypted all notes, the desktop app is working. However this breaking change has crippled my joplin linux terminal client (my primary client) and disabled my workflow.
Joplin linux terminal client error message:
DecryptionWorker error, Unknown decryption method 5
Environment
Joplin version: joplin 1.0.161 (prod)
Platform: terminal client, linux
OS specifics: Ubuntu 18.04.4 LTS, bionic, 4.15.0-91-generic #92-Ubuntu SMP Fri Feb 28 11:09:48 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
&
Joplin version: 1.0.197
Platform: Joplin desktop app, linux
OS specifics: Ubuntu 18.04.4 LTS, bionic, 4.15.0-91-generic #92-Ubuntu SMP Fri Feb 28 11:09:48 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
&
Joplin version: 10.0.46 (updated with the past week)
Platform: iOS
Describe what you expected to happen
The Joplin terminal client should be released concurrently with other platform updates, especially when potentially breaking changes such as new encryption algorithms are introduced.
Alternately, perhaps an improved migration path would be to introduce the new encryption method as optional (recommended) in the iOS app (which updated automatically, and without notice started using the new encryption algo), until such a time as all user's devices may be updated simultaneously and only then should the data be re-encrypted.
Logfile
Previously, prior to updating joplin terminal to joplin@1.0.161
, the error message was like...
2020-03-31 14:01:10: "DecryptionWorker: error for: 1a52... (revisions)", "Error: Unknown decryption method: 5
Error: Unknown decryption method: 5
at EncryptionService.decrypt (/home/craig/.joplin-bin/lib/node_modules/joplin/lib/services/EncryptionService.js:363:52)
at EncryptionService.decryptAbstract_ (/home/craig/.joplin-bin/lib/node_modules/joplin/lib/services/EncryptionService.js:431:33)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async EncryptionService.decryptString (/home/craig/.joplin-bin/lib/node_modules/joplin/lib/services/EncryptionService.js:496:3)
at async Function.decrypt (/home/craig/.joplin-bin/lib/node_modules/joplin/lib/models/BaseItem.js:366:21)
at async DecryptionWorker.start (/home/craig/.joplin-bin/lib/node_modules/joplin/lib/services/DecryptionWorker.js:169:29)", "{"id":"1a52<...>","parent_id":"","item_type":0,"item_id":"","item_updated_time":0,"title_diff":"","body_diff":"","metadata_diff":"","encryption_cipher_text":"<...>{\"iv\":\"z/btRab9upFo01ynC9Z1Gg==\",\"v\":1,\"iter\":101,\"ks\":128,\"ts\":64,\"mode\":\"ccm\",\"adata\":\"\",\"cipher\":\"aes\",\"salt\":\"<...>=\",\"ct\":\"UY1V<...>\"}","encryption_applied":1,"updated_time":1585676636500,"created_time":1585676730747,"type_":13}"
Now, after updating joplin terminal to joplin@1.0.161
the error message is `DecryptionWorker: ... decryption has failed more than 2 times - skipping it``
2020-03-31 14:07:52: "DecryptionWorker: starting decryption..."
2020-03-31 14:07:52: "DecryptionWorker: 48e6c6c338774cc1a793c129bf6014fc decryption has failed more than 2 times - skipping it"
2020-03-31 14:07:52: "DecryptionWorker: e0bdbc62a0c4459eb159ea49996d41bc decryption has failed more than 2 times - skipping it"
2020-03-31 14:07:52: "DecryptionWorker: c60bd2fbc24645aa83dbc417e49c7e06 decryption has failed more than 2 times - skipping it"
2020-03-31 14:07:53: "DecryptionWorker: b48b554f91e64828b31cbaae51e0ace0 decryption has failed more than 2 times - skipping it"
2020-03-31 14:07:53: "DecryptionWorker: 32bb980258fa46dea29456b455191494 decryption has failed more than 2 times - skipping it"
2020-03-31 14:07:53: "DecryptionWorker: 533d2d24c71843daaf43c488a2074a19 decryption has failed more than 2 times - skipping it"
2020-03-31 14:07:53: "DecryptionWorker: 3be871a53d3a4257acd929d41aa7fdda decryption has failed more than 2 times - skipping it"
2020-03-31 14:07:53: "DecryptionWorker: 6d628afd8d6a4bb2ad54c9f72b987b10 decryption has failed more than 2 times - skipping it"
2020-03-31 14:07:53: "DecryptionWorker: de19cdbf924e4662b5c59ad333a33e17 decryption has failed more than 2 times - skipping it"
2020-03-31 14:07:53: "DecryptionWorker: 2dc9e22003014d0bb20278842d5e3afc decryption has failed more than 2 times - skipping it"
2020-03-31 14:07:53: "DecryptionWorker: 36b30b7b55104822a6edd7149e0c3309 decryption has failed more than 2 times - skipping it"
2020-03-31 14:07:53: "DecryptionWorker: d87313bfd5b94b499d2c746fa8909842 decryption has failed more than 2 times - skipping it"
2020-03-31 14:07:53: "DecryptionWorker: 679e75972a6142f7bd81391e21cbecba decryption has failed more than 2 times - skipping it"
2020-03-31 14:07:53: "DecryptionWorker: efd0faa4976248229b8070f67e061678 decryption has failed more than 2 times - skipping it"
2020-03-31 14:07:53: "DecryptionWorker: b1b10eca70e843349ce5aa4022a43853 decryption has failed more than 2 times - skipping it"
2020-03-31 14:07:53: "DecryptionWorker: b941007e1c214189b3daaceb73ffcbb2 decryption has failed more than 2 times - skipping it"
2020-03-31 14:07:53: "DecryptionWorker: 1a52d53a68414fdbbb0829a49762509d decryption has failed more than 2 times - skipping it"
2020-03-31 14:07:53: "DecryptionWorker: completed decryption."
Thanks!