atuin: comand `atuin sync` not work

When I commandatuin sync ,prompt Error

> atuin sync
Error: encryption key is not a valid message pack encoding

Caused by:
    invalid type: newtype struct, expected Key

Location:
    atuin-client/src/encryption.rs:80:10

atuin key out this

> atuin key 
Error: could not load encryption key

Caused by:
   0: encryption key is not a valid message pack encoding
   1: invalid type: newtype struct, expected Key

Location:
    atuin-client/src/encryption.rs:80:10

cat key

> cat ~/.local/share/atuin/key
123

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (8 by maintainers)

Most upvoted comments

The encryption key isn’t valid, you need to remove that key (rm ~/.local/share/atuin/key) and login/register again. See the docs at https://github.com/ellie/atuin/blob/main/docs/sync.md

If you already have a machine that is logged in and successfully syncing, please login again on your new machine + use the key from your functioning machine. atuin key

Otherwise, register an account with a new username as I cannot help with lost keys