bextract failing trying to restore catalog

20 views
Skip to first unread message

wizh...@gmail.com

unread,
Jan 21, 2025, 5:14:12 PMJan 21
to bareos-users
I run the following

bextract -b ~/bootstrap.bsr FileStorage-0001 /tmp/

I get theses errors and the sql file is empty

bextract: stored/butil.cc:305-0 Using device: "FileStorage-0001" for reading.
21-Jan 22:12 bextract JobId 0: Ready to read from volume "Full-0002" on device "FileStorage-0001" (/var/lib/bareos/storage/file).
21-Jan 22:12 bextract JobId 0: Forward spacing Volume "Full-0002" to file:block 0:208.
bextract JobId 0: -rw-r--r--   1 bareos   bareos      18565666 2025-01-21 22:07:00  /tmp//var/lib/bareos/bareos.sql
21-Jan 22:12 bextract JobId 0: Error: Unknown stream=32 ignored. This shouldn't happen!
21-Jan 22:12 bextract JobId 0: Error: Unknown stream=32 ignored. This shouldn't happen!
21-Jan 22:12 bextract JobId 0: Error: Unknown stream=32 ignored. This shouldn't happen!
21-Jan 22:12 bextract JobId 0: Error: Unknown stream=32 ignored. This shouldn't happen!
21-Jan 22:12 bextract JobId 0: Error: Unknown stream=32 ignored. This shouldn't happen!

Any ideas why that would be?

Using bareos-dir Version: 24.0.1~pre19.3e3a7a6a2 (08 January 2025) Ubuntu 24.04.1 LTS

Sebastian Sura

unread,
Jan 22, 2025, 1:25:37 AMJan 22
to bareos...@googlegroups.com

Hello wizhippo,

Is it possible that you backed up your data with encryption turned on ? `stream=32` is supposed to be `STREAM_ENCRYPTED_FILE_COMPRESSED_DATA`.
I think bextract does not currently support extracting encrypted data.  Feel free to open an issue about it here: https://github.com/bareos/bareos/issues

Best Regards
Sebastian Sura

Am 21.01.25 um 23:14 schrieb wizh...@gmail.com:
Using bareos-dir Version: 24.0.1~pre19.3e3a7a6a2 (08 January 2025) Ubuntu 24.04.1 LTS --
You received this message because you are subscribed to the Google Groups "bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/bareos-users/3983e9b0-e8b9-4a89-807e-0dc6c61730a8n%40googlegroups.com.
-- 
 Sebastian Sura                  sebasti...@bareos.com
 Bareos GmbH & Co. KG            Phone: +49 221 630693-0
 https://www.bareos.com
 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

wizh...@gmail.com

unread,
Jan 22, 2025, 8:34:55 AMJan 22
to bareos-users
Correct I am using encryption.  If you cannot use bextract on encrypted volumes how are you supose to recover them?

I have tried this for example

bscan -v -b /tmp/bootstrap.bsr -m -s FileStorage-0001

I get error that it cannot update the media record., but it inserts the files an job.  I can't restore in my tests from that as it complains there is not volume

bscan: stored/butil.cc:305-0 Using device: "FileStorage-0001" for reading.
22-Jan 13:31 bscan JobId 0: Ready to read from volume "Full-0001" on device "FileStorage-0001" (/var/lib/bareos/storage/file).
bscan: stored/bscan.cc:322-0 Using Database: bareos, User: bareos
22-Jan 13:31 bscan JobId 0: Forward spacing Volume "Full-0001" to file:block 0:163006.
bscan: stored/bscan.cc:601-0 SOS_LABEL: Found Job record for JobId: 1
bscan: stored/bscan.cc:1173-0 Fileset "Catalog" already exists.
bscan: stored/bscan.cc:1289-0 Updated Job termination record for JobId=1 Level=Full TermStat=T
22-Jan 13:31 bscan JobId 0: End of Volume at file 0 on device "FileStorage-0001" (/var/lib/bareos/storage/file), Volume "Full-0001"
bscan (0): stored/bscan.cc:363-0 ========== JobId=0 ========
bscan: stored/bscan.cc:1101-0 Could not update media record. ERR=
22-Jan 13:31 bscan JobId 0: End of all volumes.
bscan: stored/bscan.cc:1101-0 Could not update media record. ERR=
bscan: stored/bscan.cc:735-0 End of all Volumes. VolFiles=0 VolBlocks=0 VolBytes=162,902
Records added or updated in the catalog:
      0 Media
      0 Pool
      1 Job
    121 File
      0 RestoreObject
22-Jan 13:31 bscan JobId 0: Releasing device "FileStorage-0001" (/var/lib/bareos/storage/file).



Unable to get Job Volume Parameters. ERR=cats/sql_get.cc:408 No volumes found for JobId=1 Unable to construct a valid BootStrapRecord. Cannot continue.

Andreas Rogge

unread,
Jan 22, 2025, 10:21:39 AMJan 22
to bareos...@googlegroups.com
Am 22.01.25 um 14:34 schrieb wizh...@gmail.com:
> Correct I am using encryption.  If you cannot use bextract on encrypted
> volumes how are you supose to recover them?
I may be nitpicking, but this is not an encrypted volume (which would
have worked fine with bextract) but a volume containing an encrypted
backup job.
I guess someone should add that limitation (i.e. bextract being unable
to decrypt data records) to the documentation.

> I have tried this for example
>
> bscan -v -b /tmp/bootstrap.bsr -m -s FileStorage-0001
When you bscan just the job, bscan will not see the volume-label and
thus it can't add the volume to the catalog.

Maybe you can use "-V Full-0001" instead of the BSR to scan the whole
volume?
Otherwise you might be able either edit the BSR to add the add the label
block or create a new BSR that will just read the label block.

Best Regards,
Andreas

--
Andreas Rogge andrea...@bareos.com
Bareos GmbH & Co. KG Phone: +49 221-630693-86
http://www.bareos.com
Reply all
Reply to author
Forward
0 new messages