yeah I figured that out afterwards the files that were failingchceksum were all 0 size on the restore. The mostly match up with the files with the Compressed header size error. But not always it’s even weirder so a specific example doing a restore one of the problem files:
The restored file has 0 size, but the joblog shows a restored size that’s non-zero even though it still showed error. root@myth:/tmp/bareos-restores# stat mnt/xvdg/home/mpalen/public_html/var/resizes/Bolivia/bolivia/impedidos/07-22-08\ 064.jpg File: mnt/xvdg/home/mpalen/public_html/var/resizes/Bolivia/bolivia/impedidos/07-22-08 064.jpg Size: 0 Blocks: 0 IO Block: 4096 regular empty file Device: 252,5 Inode: 26611710 Links: 1 Access: (0644/-rw-r--r--) Uid: (55637/ UNKNOWN) Gid: (55637/ UNKNOWN) Access: 2023-07-02 02:09:03.000000000 -0400 Modify: 2020-02-01 17:57:47.000000000 -0500 Change: 2026-02-09 12:44:15.585422074 -0500 Birth: 2026-02-09 12:44:15.585422074 -0500 The job log has many lines like and then says it restored a size different than the origonal, but that restored size is non-zero. 2026-02-09 12:44:14 myth-fd JobId 115093: Error: Compressed header size error. comp_len=61266, message_length=14685 2026-02-09 12:44:14 myth-fd JobId 115093: Error: Compressed header size error. comp_len=64376, message_length=65498 2026-02-09 12:44:14 myth-fd JobId 115093: Error: Compressed header size error. comp_len=64468, message_length=65590 2026-02-09 12:44:14 myth-fd JobId 115093: Error: Compressed header size error. comp_len=52209, message_length=53116 2026-02-09 12:44:14 myth-fd JobId 115093: Error: Compressed header size error. comp_len=60520, message_length=61642 2026-02-09 12:44:14 myth-fd JobId 115093: Error: Compressed header size error. comp_len=60938, message_length=62060 2026-02-09 12:44:14 myth-fd JobId 115093: Error: Compressed header size error. comp_len=61158, message_length=62242 2026-02-09 12:44:14 myth-fd JobId 115093: Error: Compressed header size error. comp_len=61213, message_length=62335 2026-02-09 12:44:14 myth-fd JobId 115093: Error: Compressed header size error. comp_len=61154, message_length=62276 2026-02-09 12:44:14 myth-fd JobId 115093: Error: Compressed header size error. comp_len=61202, message_length=62324 2026-02-09 12:44:14 myth-fd JobId 115093: Error: Compressed header size error. comp_len=61305, message_length=62422 2026-02-09 12:44:14 myth-fd JobId 115093: Error: Compressed header size error. comp_len=60837, message_length=61959 2026-02-09 12:44:14 myth-fd JobId 115093: Error: Compressed header size error. comp_len=60723, message_length=61845 2026-02-09 12:44:14 myth-fd JobId 115093: Error: Compressed header size error. comp_len=60710, message_length=61832 2026-02-09 12:44:14 myth-fd JobId 115093: Error: Compressed header size error. comp_len=60754, message_length=61876 2026-02-09 12:44:14 myth-fd JobId 115093: Error: Compressed header size error. comp_len=60667, message_length=61720 2026-02-09 12:44:14 myth-fd JobId 115093: Error: Compressed header size error. comp_len=61309, message_length=62431 2026-02-09 12:44:14 myth-fd JobId 115093: Error: Compressed header size error. comp_len=61191, message_length=62313 2026-02-09 12:44:14 myth-fd JobId 115093: Error: Compressed header size error. comp_len=61352, message_length=62474 2026-02-09 12:44:14 myth-fd JobId 115093: Error: Compressed header size error. comp_len=61139, message_length=62261 2026-02-09 12:44:14 myth-fd JobId 115093: Error: Compressed header size error. comp_len=63626, message_length=64748 2026-02-09 12:44:14 myth-fd JobId 115093: Error: Compressed header size error. comp_len=64058, message_length=44892 2026-02-09 12:44:14 myth-fd JobId 115093: Error: Compressed header size error. comp_len=61104, message_length=62226 2026-02-09 12:44:14 myth-fd JobId 115093: Error: Compressed header size error. comp_len=61072, message_length=62194 2026-02-09 12:44:14 myth-fd JobId 115093: Error: Compressed header size error. comp_len=60934, message_length=62056 2026-02-09 12:44:14 myth-fd JobId 115093: Error: Compressed header size error. comp_len=60488, message_length=61607 2026-02-09 12:44:14 myth-fd JobId 115093: Error: Compressed header size error. comp_len=61079, message_length=62201 2026-02-09 12:44:14 myth-fd JobId 115093: Error: Compressed header size error. comp_len=60926, message_length=62048 2026-02-09 12:44:14 myth-fd JobId 115093: Error: findlib/attribs.cc:379 File size of restored file /tmp/bareos-restores/mnt/xvdg/home/mpalen/public_html/var/albums/Bolivia/bolivia/impedidos/07-22-08 060.jpg not correct. Original 125535, restored 65536. One thing to note this is an older btrfs filesystem with compression turned on. All the other test restores (for which I have a large enough free space to test) restored fine. With the exception of another fileset from this same AWS host but that filesystem is ext3. It was much smaller, I did a new full backup and tested restore and it was fine. So I’m curious why this could happen, I could chalk it up to a fluke. I would like to have a way to test restores for larger restores for whcih I don’t have TBytes of idle disk around just in case. Given this has been a long running always incremental system where there any bugged versions in the last few years? The client is gentoo, all my ohter tests were windows, or Ubuntu. Brock Palen [email protected] www.mlds-networks.com Websites, Linux, Hosting, Joomla, Consulting > On Feb 9, 2026, at 10:55 AM, Bruno Friedmann (bruno-at-bareos) > <[email protected]> wrote: > > Hi Brock, could you check what sha1sum is recorded in the database especially > for those file. > > Seems that "da39a3ee5e6b4b0d3255bfef95601890afd80709" hash correspond to > empty files. > > > On Saturday, 7 February 2026 at 21:14:22 UTC+1 Brock Palen wrote: > Oh and not all files are at issue, I ran sha1sum on the soruce host and the > restored data about half the files don’t match. > > > Brock Palen > [email protected] > www.mlds-networks.com > Websites, Linux, Hosting, Joomla, Consulting > > > > > On Feb 7, 2026, at 3:10 PM, 'Brock Palen' via bareos-users > > <[email protected]> wrote: > > > > I did a restore test on a host that has been using AI jobs for a while so a > > lot of long lived files have been coppied form media to media for a while, > > but in the restore I got a bunch of errors and the many retored files have > > 0 size. > > > > On the host: > > # ls -l P1020370.JPG > > -rw-r--r-- 1 mlds-www mlds-www 2735024 Feb 1 2020 P1020370.JPG > > > > Restore > > # ls -l P1020370.JPG > > ---------- 1 root wheel 0 Feb 6 15:24 P1020370.JPG > > > > > > > > 06-Feb 15:46 myth-fd JobId 114962: Error: Compressed header size error. > > comp_len=61092, message_length=62214 > > 06-Feb 15:46 myth-fd JobId 114962: Error: Compressed header size error. > > comp_len=61039, message_length=62161 > > 06-Feb 15:46 myth-fd JobId 114962: Error: Compressed header size error. > > comp_len=64376, message_length=65498 > > 06-Feb 15:46 myth-fd JobId 114962: Error: Compressed header size error. > > comp_len=64549, message_length=65671 > > 06-Feb 15:46 myth-fd JobId 114962: Error: Compressed header size error. > > comp_len=61025, message_length=62147 > > 06-Feb 15:46 myth-fd JobId 114962: Error: Compressed header size error. > > comp_len=60966, message_length=62088 > > 06-Feb 15:46 myth-fd JobId 114962: Error: Compressed header size error. > > comp_len=63805, message_length=64927 > > > > > > Rather than just forcing a new full backup is there a way to check my > > volumes? > > Or a way to do it as part of a job? > > > > (and this is why you test your backups). > > > > > > Brock Palen > > [email protected] > > www.mlds-networks.com > > Websites, Linux, Hosting, Joomla, Consulting > > > > > > > > -- > > 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 [email protected]. > > To view this discussion visit > > https://groups.google.com/d/msgid/bareos-users/C6F19DC3-8E89-4227-9F8F-2D2AEB62DF32%40mlds-networks.com. > > > > > -- > 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 [email protected]. > To view this discussion visit > https://groups.google.com/d/msgid/bareos-users/faf07f25-4490-4ef3-bca7-1ff8616cd125n%40googlegroups.com. -- 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 [email protected]. To view this discussion visit https://groups.google.com/d/msgid/bareos-users/D60BE1FE-74B2-4DC1-89B4-48E3DA28CC30%40mlds-networks.com.
