Trouble reading hardware encrypted tape volume with bextract
48 views
Skip to first unread message
Benedict Ecker
unread,
Sep 17, 2024, 7:44:21 AM9/17/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to bareos-users
Hello everybody,
I am trying to extract everything from a tape volume, which I encrypted prior with Bareos, so the encryption key for the volume is stored in the database.
Mounting the volume in the storage daemon works fine. However when I want to extract from the volume with bextract, I get the following error: "17-Sep-2024 13:36:44.793637 bextract (8): lib/crypto_cache.cc:53-0 Could not open crypto cache file. /var/lib/bareos/bareos-sd.9103.cryptoc ERR=Datei oder Verzeichnis nicht gefunden"
Can someone give me a hint as to what is the problem here? It's something small probably.
Thanks in advance.
Cheers!
Andreas Rogge
unread,
Sep 17, 2024, 7:55:10 AM9/17/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to bareos...@googlegroups.com
Hi Benedict,
when using one of the storage tools directly (i.e. anything without the
director being involved) you'll need a populated crypto-cache file.
The tool already told you where it expects the file, you just have to
populate it using bscrypto.
Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Komplementär: Bareos Verwaltungs-GmbH
Geschäftsführer: Stephan Dühr, Jörg Steffens, Philipp Storz
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to bareos-users
Hi Andreas,
Thanks for the quick reply!
I am not sure I understand how to correctly use bscrypto to generate and populate my crypto cache file. Maybe you can help out a little further.
When I run the program with bscrypto -p /var/lib/bareos-sd.9103.cryptoc it asks me to enter cache entries. But those are entries, which I don't know.
When I mount the tape in the storage daemon, the cryptoc file is automatically created and populated with the correct key. Do I need to mount every encrypted tape, so that the file is populated correctly?
Any help is apreciated.
Best Regards,
Benedict
Benedict Ecker
unread,
Sep 18, 2024, 3:52:58 AM9/18/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to bareos-users
Hi Andreas,
Thanks for the quick reply!
That already cleared some things up for me.
But I am not sure I completely understand, how I am supposed to populate the cryptoc file.
When I run bscrypto -p /var/lib/bareos-sd.9103.cryptoc the program asks me to enter cache entries. But I don't know the keys, since they are in the database.
When I mount an encrypted volume, the storage daemon creates the cache file with the respective key already in the cache file. Is the way to go to mount every single encrypted tape and fill the cache file from there?
Any help is apreciated.
Best Regards,
Benedict
Andreas Rogge schrieb am Dienstag, 17. September 2024 um 13:55:10 UTC+2: