Get an "Headers Error" when testing the downloaded Jira backup's archive.

Issue #25 resolved
gitadmin@goodstream.eu created an issue

I get error when testing the downloaded Jira backup archive, with Confluence backup archive, all is fine.
Reproduced for all Jira backup archives.

C:\Users\xxx>C:\"Program Files"\7-Zip\7z.exe t e:\Backup\Atlassian\JIRA\J
IRA-backup-22-05-2019.zip

7-Zip [64] 16.04 : Copyright (c) 1999-2016 Igor Pavlov : 2016-10-04

Scanning the drive for archives:
1 file, 4990936640 bytes (4760 MiB)

Testing archive: e:\Backup\Atlassian\JIRA\JIRA-backup-22-05-2019.zip

WARNINGS:
Headers Error

--
Path = e:\Backup\Atlassian\JIRA\JIRA-backup-22-05-2019.zip
Type = zip
WARNINGS:
Headers Error
Physical Size = 4990936640
64-bit = +

Everything is Ok

Archives with Warnings: 1

Warnings: 1
Files: 11662
Size:       6702623924
Compressed: 4990936640

Maybe this link will be usefull: https://confluence.atlassian.com/jirakb/scheduled-backup-corrupted-randomly-827356680.html

But in my case I don’t have any prallel launched scripts.

Comments (6)

  1. Dario B

    Are you able to unzip the file or it fails? Looking at above text it seems to be a warning message only:

    Everything is Ok
    
    Archives with Warnings: 1
    
  2. gitadmin@goodstream.eu reporter

    Yes, it able to unzip.

    But I want to organize automatically testing archive that was downloaded.

    It works for Confluence and doesn't work for Jira archive.

  3. Dario B

    Hi @gitadmin@goodstream.eu ,

    I am able to reproduce the issue. I can see that randomly the archive file shows an header error when using 7z:

    7z t JIRA-backup-19-06-2019.zip 
    
    7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
    p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,8 CPUs Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz (906E9),ASM,AES-NI)
    
    Scanning the drive for archives:
    1 file, 292936 bytes (287 KiB)
    
    Testing archive: JIRA-backup-19-06-2019.zip
    
    WARNINGS:
    Headers Error
    
    --
    Path = JIRA-backup-19-06-2019.zip
    Type = zip
    WARNINGS:
    Headers Error
    Physical Size = 292936
    
    Everything is Ok
    
    Archives with Warnings: 1
    

    However I can also see that the header error is only shown when using 7z.

    If I use zip -T, unzip -t or file or any other tool, I don’t get any mention of the header error:

    $ file JIRA-backup-19-06-2019.zip 
    JIRA-backup-19-06-2019.zip: Zip archive data, at least v2.0 to extract
    
    $ zip -T JIRA-backup-19-06-2019.zip 
    test of JIRA-backup-19-06-2019.zip OK
    
    
    $ unzip -t JIRA-backup-19-06-2019.zip 
    Archive:  JIRA-backup-19-06-2019.zip
        testing: entities.xml             OK
        testing: activeobjects.xml        OK
        testing: data/attachments/XXXX/10000/XXXX-5/10000   OK
        testing: data/avatars/10800_xxlarge@3x_8c059345-39fc-4320-bd62-ed1560426c89.png   OK
        testing: data/avatars/10500_small@3x_4fa859dc-ec44-4c9a-b177-6bc136b34d3e.png   OK
        testing: data/avatars/10500_xlarge_4fa859dc-ec44-4c9a-b177-6bc136b34d3e.png   OK
        testing: data/avatars/10501_xsmall_64014e7f-c3e6-4537-8661-cda2afaba69a.png   OK
        testing: data/avatars/10500_xsmall_4fa859dc-ec44-4c9a-b177-6bc136b34d3e.png   OK
        testing: data/avatars/10500_small_4fa859dc-ec44-4c9a-b177-6bc136b34d3e.png   OK
        testing: data/avatars/10501_large@3x_64014e7f-c3e6-4537-8661-cda2afaba69a.png   OK
        testing: data/avatars/10800_xxlarge@2x_8c059345-39fc-4320-bd62-ed1560426c89.png   OK
        testing: data/avatars/10800_xxlarge_8c059345-39fc-4320-bd62-ed1560426c89.png   OK
        testing: data/avatars/10501_xxlarge@3x_64014e7f-c3e6-4537-8661-cda2afaba69a.png   OK
        testing: data/avatars/10800_xlarge_8c059345-39fc-4320-bd62-ed1560426c89.png   OK
        testing: data/avatars/10500_xxlarge_4fa859dc-ec44-4c9a-b177-6bc136b34d3e.png   OK
        testing: data/avatars/10800_xsmall_8c059345-39fc-4320-bd62-ed1560426c89.png   OK
        testing: data/avatars/10800_small@3x_8c059345-39fc-4320-bd62-ed1560426c89.png   OK
        testing: data/avatars/10501_small@3x_64014e7f-c3e6-4537-8661-cda2afaba69a.png   OK
        testing: data/avatars/10800_xxxlarge@2x_8c059345-39fc-4320-bd62-ed1560426c89.png   OK
        testing: data/avatars/10800_small_8c059345-39fc-4320-bd62-ed1560426c89.png   OK
        testing: data/avatars/10500_xxlarge@2x_4fa859dc-ec44-4c9a-b177-6bc136b34d3e.png   OK
        testing: data/avatars/10800_large@3x_8c059345-39fc-4320-bd62-ed1560426c89.png   OK
        testing: data/avatars/10501_xxxlarge@2x_64014e7f-c3e6-4537-8661-cda2afaba69a.png   OK
        testing: data/avatars/10800_8c059345-39fc-4320-bd62-ed1560426c89.png   OK
        testing: data/avatars/10500_large@3x_4fa859dc-ec44-4c9a-b177-6bc136b34d3e.png   OK
        testing: data/avatars/10800_xxxlarge@3x_8c059345-39fc-4320-bd62-ed1560426c89.png   OK
        testing: data/avatars/10501_small_64014e7f-c3e6-4537-8661-cda2afaba69a.png   OK
        testing: data/avatars/10500_xxlarge@3x_4fa859dc-ec44-4c9a-b177-6bc136b34d3e.png   OK
        testing: data/avatars/10501_medium_64014e7f-c3e6-4537-8661-cda2afaba69a.png   OK
        testing: data/avatars/10500_xxxlarge@2x_4fa859dc-ec44-4c9a-b177-6bc136b34d3e.png   OK
        testing: data/avatars/10500_xxxlarge_4fa859dc-ec44-4c9a-b177-6bc136b34d3e.png   OK
        testing: data/avatars/10800_xxxlarge_8c059345-39fc-4320-bd62-ed1560426c89.png   OK
        testing: data/avatars/10501_xxlarge@2x_64014e7f-c3e6-4537-8661-cda2afaba69a.png   OK
        testing: data/avatars/10501_xxxlarge_64014e7f-c3e6-4537-8661-cda2afaba69a.png   OK
        testing: data/avatars/10500_medium_4fa859dc-ec44-4c9a-b177-6bc136b34d3e.png   OK
        testing: data/avatars/10501_xxxlarge@3x_64014e7f-c3e6-4537-8661-cda2afaba69a.png   OK
        testing: data/avatars/10800_medium_8c059345-39fc-4320-bd62-ed1560426c89.png   OK
        testing: data/avatars/10500_xxxlarge@3x_4fa859dc-ec44-4c9a-b177-6bc136b34d3e.png   OK
        testing: data/avatars/10501_xlarge_64014e7f-c3e6-4537-8661-cda2afaba69a.png   OK
        testing: data/avatars/10500_4fa859dc-ec44-4c9a-b177-6bc136b34d3e.png   OK
        testing: data/avatars/10501_xxlarge_64014e7f-c3e6-4537-8661-cda2afaba69a.png   OK
        testing: data/avatars/10501_64014e7f-c3e6-4537-8661-cda2afaba69a.png   OK
    No errors detected in compressed data of JIRA-backup-19-06-2019.zip.
    

    Therefore, I am not sure whether this is something related to 7z only, however a solution would be to test the archive using zip or unzip commands instead of 7z.

  4. Log in to comment