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

cannot mount due to "size overflow" #463

Open
fluca1978 opened this issue Oct 6, 2023 · 3 comments
Open

cannot mount due to "size overflow" #463

fluca1978 opened this issue Oct 6, 2023 · 3 comments

Comments

@fluca1978
Copy link

cryfs version 0.10.2 running on Ubuntu 23.04 thru KDE Valut.

Today my encrypted folder was unable to be unlocked by the vault application. I've tried to manually mount it on the command line, and cryfs complains about size overflow:

% cryfs ~/.local/share/plasma-vault/git.enc ~/tmp/mount                               
CryFS Version 0.10.2

Password: 
Deriving encryption key (this can take some time)...done
[2023-10-06 10:23:55.861] [Log] [error] Crashed: Deserialization failed - size overflow

% cryfs --version
CryFS Version 0.10.2

% du -hs ~/.local/share/plasma-vault/git.enc
4,5G    /home/luca/.local/share/plasma-vault/git.enc

I'm not aware of any update at the operating system level, however I've tried to update and still does not work.
I have backups, therefore I can experiment on this encrypted folder.

I've tried:

% cryfs --allow-filesystem-upgrade --allow-integrity-violations  ~/.local/share/plasma-vault/git.enc ~/tmp/mount   
CryFS Version 0.10.2

Password: 
Deriving encryption key (this can take some time)...done
[2023-10-06 10:25:49.696] [Log] [error] Crashed: Deserialization failed - size overflow

It worked fine as of yesterday.
In the case it is helpful, the following is the KDE vaul configuration file:

% cat ~/.config/plasmavaultrc                          
[/home/luca/.local/share/plasma-vault/git.enc]
activities=
backend=cryfs
lastError=
lastStatus=
mountPoint=/home/luca/git
name=git
offlineOnly=false


[EncryptedDevices]
/home/luca/.local/share/plasma-vault/git.enc=true

[UI-notice]
SkipNotice-cryfs-message=false
@jnm
Copy link

jnm commented Nov 20, 2023

In case it helps, I worked around Crashed: Deserialization failed - size overflow by removing (well, renaming) the directory ~/.local/share/cryfs/ as mentioned on #292.

I did not need to touch anything in ~/.local/share/plasma-vault/.

@X-m7
Copy link

X-m7 commented Feb 19, 2024

Just got hit by this issue as well, with CryFS 0.11.4 on Arch Linux, also through KDE Plasma Vaults, and renaming ~/.local/share/cryfs also got around the issue for me.

@knot126
Copy link

knot126 commented Mar 8, 2024

Also just got the same issue, running Manjaro, CryFS 0.11.4. Solved by removing ~/.local/share/cryfs.

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

4 participants