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.
> To view this discussion visit
https://groups.google.com/d/msgid/bareos-users/faf07f25-4490-4ef3-bca7-1ff8616cd125n%40googlegroups.com.