Hi Joshua,

I'm a bit surprized by your result. I've just redone a test on EL9 with 
bareos 22.1.7 and it works fine

su bareos -s /usr/bin/bash -c "/usr/sbin/bextract -i /tmp/file.list -V 
Full-0001 /var/lib/bareos/storage /var/tmp/bareos_restore"
bextract: stored/butil.cc:304-0 Using device: "/var/lib/bareos/storage" for 
reading.
14-May 09:28 bextract JobId 0: Ready to read from volume "Full-0001" on 
device "FileStorage" (/var/lib/bareos/storage).
bextract JobId 0: -rw-r--r--   1 bareos   bareos         83452 2025-05-14 
09:09:17  /var/tmp/bareos_restore/var/lib/bareos/bareos.sql
14-May 09:28 bextract JobId 0: End of Volume at file 0 on device 
"FileStorage" (/var/lib/bareos/storage), Volume "Full-0001"
14-May 09:28 bextract JobId 0: End of all volumes.
14-May 09:28 bextract JobId 0: Releasing device "FileStorage" 
(/var/lib/bareos/storage).
1 files restored.

So what might happen, be sure all the files you want to restore are exactly 
on this volume (-V can be a list of volumes), maybe you have a file that 
overlaps on a second volume ?

On Tuesday, 13 May 2025 at 19:34:48 UTC+2 Joshua Myles wrote:

> I'm trying to use bextract to pull a few files out of a Bareos volume that 
> is no longer in the catalog. bls on this volume works fine, but bextract 
> fails a bit into the second restored file.
>
> [root@bareos-sd-pub-test ~]# bextract -i file.list -V 
> pauling-AI-Consolidated-4324  /var/lib/bareos/storage /mnt/pauling_restore
> bextract: stored/butil.cc:304-0 Using device: "/var/lib/bareos/storage" 
> for reading.
> 13-May 13:27 bextract JobId 0: Ready to read from volume 
> "pauling-AI-Consolidated-4324" on device "FileStorage" 
> (/var/lib/bareos/storage).
> bextract JobId 0: -rw-rw-r--   1 1016     1016             107 2023-07-20 
> 10:36:55  /mnt/pauling_restore/data/redacted/CONTROL
> bextract JobId 0: -rw-rw-r--   1 1016     1016        11789547 2023-07-20 
> 10:36:55  /mnt/pauling_restore/data/redacted/beta
> Segmentation fault (core dumped)
> [root@bareos-sd-pub-test ~]#
>
> dmesg says this:
>
> [Tue May 13 13:31:03 2025] bextract[20209]: segfault at 0 ip 
> 00007f29758528e6 sp 00007ffd49524e00 error 6 in 
> libbareosfind.so.22.1.7[7f2975842000+15000]
> [Tue May 13 13:31:03 2025] Code: 5b 5d 41 5c 41 5d 41 5e 41 5f c3 66 0f 1f 
> 84 00 00 00 00 00 8b 53 0c 48 39 c2 75 99 f6 43 08 02 75 a1 f3 0f 1e fa 48 
> 8b 43 18 <83> 00 01 b8 03 00 00 00 eb ae 48 8b 1b 48 8d 3d 36 24 00 00 e8 b1
>
> Any thoughts here? Same on Bareos 22.1.6 and 22.1.7 subscription, RHEL 8 
> and 9. Not sure how to debug bextract specifically.
>
> Josh
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/bareos-users/75e9d127-defe-4737-8c94-3dea324113efn%40googlegroups.com.

Reply via email to