You are not logged in.

#1 2023-12-14 22:59:59

disk-destroyer
Member
Registered: 2023-12-14
Posts: 4

Veracrypt errors - "Broken pipe" and "Not enough data available"

Hi. I recently installed Arch, and wanted to use Veracrypt. I installed it, and launched it (using the GUI), before creating a new Veracrypt volume. When I tried to mount the volume, I got the error "Not enough data available". I tried mounting the volume using the CLI, and got the following error:

/usr/include/c++/12.2.0/bits/stl_vector.h:1123: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = char; _Alloc = std::allocator<char>; reference = char&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.

While writing this post, I tried again (from the GUI) and got a different error:

Broken pipe

VeraCrypt::File::Write:384

Now, it seems that when I try to mount from the GUI, I get the "broken pipe" error, and when I mount from the CLI, I get the "Not enough data available" message and the long error message above.

I have tried rebooting, reinstalling Veracrypt, and updating my system.
Can anyone give me some advice on this?

Thank you smile

Edit: Tried mounting the volume with root privileges (using the CLI) and it worked. I would still like to work out what's causing this issue though, as if I use this method, I need to be logged in as root to do anything inside the volume, which is pretty inconvenient.

Last edited by disk-destroyer (2023-12-14 23:12:09)

Offline

#2 2023-12-15 21:22:11

account2
Member
Registered: 2019-05-20
Posts: 10

Re: Veracrypt errors - "Broken pipe" and "Not enough data available"

I'm getting this too, following a system update. I'm guessing the last update to the VeraCrypt package or something else messed something up.

Curiously, I only get the

```
Broken pipe

VeraCrypt::File::Write:384
```

error when trying to "Mount Favorite Volumes"; when trying to mount individual volumes, one by one (still from the GUI), they mount without error.

Offline

#3 2023-12-18 18:09:10

account2
Member
Registered: 2019-05-20
Posts: 10

Re: Veracrypt errors - "Broken pipe" and "Not enough data available"

And, today, it works! The error seems to've been fixed on my side.

Offline

#4 2023-12-24 13:23:34

disk-destroyer
Member
Registered: 2023-12-14
Posts: 4

Re: Veracrypt errors - "Broken pipe" and "Not enough data available"

After updating everything, I still have this issue.
Don't know what's going on here.

Offline

#5 2024-01-02 18:08:36

curious.liberal
Member
Registered: 2024-01-02
Posts: 1

Re: Veracrypt errors - "Broken pipe" and "Not enough data available"

Unfortunately I am still experiencing this issue too. I decided to run veracrypt from the terminal to see the output of the error message and received the following (hope this helps):

/usr/include/c++/12.2.0/bits/stl_vector.h:1123: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = char; _Alloc = std::allocator<char>; reference = char&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.

Offline

#6 2025-03-20 15:16:56

garlic
Member
Registered: 2025-03-20
Posts: 1

Re: Veracrypt errors - "Broken pipe" and "Not enough data available"

I found the root cause of the above mentioned issue:
The user running Veracrypt wasn't part of the sudoers file. Thus, Veracrypt wasn't able to run as root but didn't return a meaningful error message.
You can use 'visudo' command to adjust the file accordingly, eg. uncomment the line that allows all users being part of the 'wheel' group to use sudo.

Offline

#7 2025-03-20 17:07:02

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,076

Re: Veracrypt errors - "Broken pipe" and "Not enough data available"

which was basically confirmed over the course of the 2 year old thread already.

Closing this old thread.

Offline

Board footer

Powered by FluxBB