Error unzipping file (This may be due to a large zip file): invalid block type

Pooja Pandey September 15, 2017

I get this error while restoring ~4GB xml backup : 

Error unzipping file (This may be due to a large zip file): invalid block type

2 answers

0 votes
Pooja Pandey September 16, 2017

The ownership of the file is same with which the application runs. 

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 16, 2017

Check the file ownership - that can cause a spurious block error.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 16, 2017

Ok, can you try unzipping the file manually to see what errors happen on a command line?

Like 秦勇君 likes this
Pooja Pandey September 16, 2017

This is the error that I get >

Archive: Confluence-space-export-173007-1768.xml.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
note: Confluence-space-export-173007-1768.xml.zip may be a plain executable, not an archive
unzip: cannot find zipfile directory in one of Confluence-space-export-173007-1768.xml.zip or
Confluence-space-export-173007-1768.xml.zip.zip, and cannot find Confluence-space-export-173007-1768.xml.zip.ZIP, period.

WW
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 19, 2022

I know it's 5 years later, but...

I'm having this same problem.

I believe it is because I'm rekeying the space using the PowerShell script found on the How to copy or rename a space in Confluence article. However, I altered the script to only unzip the entities.xml and the exportDescriptor.properties files, which is where the space keys are. Then the script updates the .zip file.

I had noticed that the bash script provided in the same article includes the unzipping and rezipping of the files, but the PowerShell script assumed the file was already unzipped. Maybe it's got something to do with this problem? Maybe the bash script handles the file differently somehow?

I could not find anything about the error and PowerShell by googling. Literally nothing.

I found a lot about the error and Java. Since Confluence is in Java, it seems that the problem would lie there. Except the bash script works, so, I don't know.

Long story on why I'm using PowerShell now instead of bash.

If anyone has any ideas as to what might be wrong or if I can change something in PowerShell, that'd be really helpful!

If I need to create a new question for this, I can do that, too.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events