zoxide icon indicating copy to clipboard operation
zoxide copied to clipboard

`Could not deserialize database`: Slice had bytes remaining after deserialization

Open mrusme opened this issue 1 year ago • 3 comments

▲ ~ cd dotfi
zoxide: could not deserialize database

Caused by:
    Slice had bytes remaining after deserialization
▲ ~ ls ~/.local/share/zoxide
.rw-rw-rw- 75Ki mrus mrus 2023-07-20 09:07 db.zo
.rw-r--r--    0 mrus mrus 2023-02-24 01:51 tmp_Cym5ZBJcj1rw
.rw-r--r--    0 mrus mrus 2023-03-14 17:55 tmp_jXlKpg8mIl3H
▲ ~ zoxide --version
zoxide v0.9.1

mrusme avatar Jul 20 '23 16:07 mrusme

I cannot seem to be able to cd into any folder anymore btw.

mrusme avatar Jul 20 '23 16:07 mrusme

I'm not sure how, but it seems your database file has gotten corrupted. Unfortunately, the only fix is to delete the DB:

rm ~/.local/share/zoxide/db.zo

ajeetdsouza avatar Jul 20 '23 22:07 ajeetdsouza

@ajeetdsouza I temporarily moved it to .old to be able to resume work; Are you interested in any specifics of it? I clearly can't send you the whole file, but if you want me to look into it for some hints let me know!

mrusme avatar Jul 20 '23 22:07 mrusme