Not enough data available
Expected behavior
- Veracrypt should provide useful error messages
- optionally run without sudo, asking for the root password for privileged actions like formatting
Observed behavior
When Veracrypt is run on Arch Linux by a user without sudo permissions, an error is shown during the format process with the message: "Not enought data available" When the Format button is used again, the error mesage changes to: "VeraCrypt::File::Write:395"
Using Veracrypt on Debian (without sudo available) results in a proper error message about missing permissions. (Without sudo, Veracrypt needs to run entirely as root, which is an issue on its own)
Steps to reproduce
- Setup a new container with ext4 on Arch Linux
- Click format
- Dont be in the sudoers file
- Find weird error message
Screenshots
Your Environment
Please tell us more about your environment
VeraCrypt version: 1.26.24 (also tested with 1.26.20)
Operating system and version: Arch Linux
System type: 64-bit
The same error also happens every time if you enter the wrong password when unmounting.
Steps to reproduce:
- Mount a volume successfully.
- Click 'Unmount'.
- When it asks the for admin password, enter the wrong password (sometimes I enter the password for the volume by accident, or just have a typo).
- It shows the error "Not enough data available" and the volume is not unmounted.
- Now if you retry to unmount (with the correct admin password) it will always say "Broken pipe VeraCrypt::File::Write:395".
After this happens, it's in a broken state where VeraCrypt cannot mount or unmount this volume any more, until you restart the computer.