Clarity Upgrade fails with "zip END header not found"
search cancel

Clarity Upgrade fails with "zip END header not found"

book

Article ID: 367202

calendar_today

Updated On:

Products

Clarity PPM On Premise Clarity PPM SaaS

Issue/Introduction

Error message is thrown during Clarity upgrade: 

5/07/24 4:48 PM (Target) Target "_install-release" started.

5/07/24 4:48 PM (Jar) error while reading original manifest in file: /opt/cappm/CLARITY_PPM_1613/install-packages/16.1.3/package.jar due to zip END header not found

5/07/24 4:48 PM (UnknownElement) Task "jar" finished with error.

org.apache.tools.ant.BuildException: Problem reading /opt/cappm/CLARITY_PPM_1613/install-packages/16.1.3/package.jar

                at org.apache.tools.ant.types.ZipScanner.fillMapsFromArchive(ZipScanner.java:73) ~[ant.jar:?]

                at org.apache.tools.ant.types.ArchiveScanner.scanme(ArchiveScanner.java:347) ~[ant.jar:?]

                at org.apache.tools.ant.types.ArchiveScanner.getResource(ArchiveScanner.java:284) ~[ant.jar:?]

                at org.apache.tools.ant.util.ResourceUtils.selectSources(ResourceUtils.java:217) ~[ant.jar:?]

                at org.apache.tools.ant.util.ResourceUtils.selectOutOfDateSources(ResourceUtils.java:164) ~[ant.jar:?]

                at org.apache.tools.ant.util.ResourceUtils.selectOutOfDateSources(ResourceUtils.java:124) ~[ant.jar:?]

                at org.apache.tools.ant.util.ResourceUtils.selectOutOfDateSources(ResourceUtils.java:96) ~[ant.jar:?]

                at org.apache.tools.ant.taskdefs.Zip.selectOutOfDateResources(Zip.java:1544) ~[ant.jar:?]

                at org.apache.tools.ant.taskdefs.Zip.getResourcesToAdd(Zip.java:1435) ~[ant.jar:?]

Caused by: java.util.zip.ZipException: archive is not a ZIP archive

Cause

New Clarity version install files did not get extracted well or got corrupt on copy/move. 

Resolution

  1. Delete the current install files for the new version
  2. Get the Clarity ISO open again and copy the files to the server, and extract them fully.
  3. Once done, rerun the upgrade again