I really got off on the wrong track here somehow with keys and sync. I just want to recover and start fresh. I have tried a lot of things. This is the latest attempt to fix:
( I already tried to purge so here I nuked the local/share atuin directory)
bkelly@penguin:~/.local/share $ atuin store verify
Verifying local store can be decrypted with the current key
Local store encryption verified OK
bkelly@penguin:~/.local/share $ atuin key
gallery climb drift drill faint catalog news good essay diesel nerve gun caution shoulder ostrich spike adjust eternal spell merit face prepare distance brisk
ok so it seems here the store verify command created a new key I didn’t want so I did this:
bkelly@penguin:~/.local/share $ atuin store rekey abcxyz
Re-encrypting store with specified key
Store rewritten. Saving new key
ok that seemed to work
bkelly@penguin:~/.local/share $ atuin store verify
Verifying local store can be decrypted with the current key
Local store encryption verified OK
Very nice.
atuin login -u loginid
Please enter password:
IMPORTANT
If you are already logged in on another machine, you must ensure that the key you use here is the same as the key you used there.
You can find your key by running ‘atuin key’ on the other machine
Do not share this key with anyone
Read more here: Setting up Sync | Atuin Docs
Please enter encryption key [blank to use existing key file]: abcxyz
Logged in!
bkelly@penguin:~/.local/share $ atuin store verify
Verifying local store can be decrypted with the current key
Local store encryption verified OK
bkelly@penguin:~/.local/share $ atuin sync
Downloading 15445 records from 01959ff678f57270b33084bd9a5dc729/history
[00:00:25] [########################################################################] 15,445/15,445 (0.0s)Downloading 2 records from 0195a308ea6f7fb283afe61a5a594f96/history
[00:00:00] [##################################################################################] 2/2 (0.0s)Downloading 33 records from 0195a30b2ab97e50a5ccc8c2f104f528/history
[00:00:00] [################################################################################] 33/33 (0.0s)Downloading 5 records from 0195a34c95767c42bbd52ae3c12a8162/history
[00:00:00] [##################################################################################] 5/5 (0.0s)Downloading 28 records from 0195a356640273e2943a706cf3ead066/history
[00:00:00] [################################################################################] 28/28 (0.0s)0/15518 up/down to record store
Sync complete! 15528 items in history database, force: false
(I seem to have all these machines here from trying to start over, but anyways…)
And then i’m back to square one:
bkelly@penguin:~/.local/share $ atuin store verify
Verifying local store can be decrypted with the current key
Failed to verify local store encryption: attempting to decrypt with incorrect key. currently using k4.lid.kln7Z385c9, expecting k4.lid.GwgHNbt18mcv7Ac
Location:
crates/atuin-client/src/record/encryption.rs:132:9
(abreviated keys)
I am getting similar results on my two machines. No luck in getting this working. As mentioned I have tried other scenarios, purging rekeying and nothing seems to work. Thanks for any suggestions.