Clarity upgrade throws exception Unexpected end of ZLIB input stream
search cancel

Clarity upgrade throws exception Unexpected end of ZLIB input stream

book

Article ID: 373389

calendar_today

Updated On:

Products

Clarity PPM On Premise Clarity PPM SaaS

Issue/Introduction

When starting the Clarity upgrade the below error is thrown on extracting the install.jar file with jar -xvf command: 

java.io.EOFException: Unexpected end of ZLIB input stream
        at java.base/java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:245)
        at java.base/java.util.zip.InflaterInputStream.read(InflaterInputStream.java:159)
        at java.base/java.util.zip.ZipInputStream.read(ZipInputStream.java:197)
        at java.base/java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:143)
        at jdk.jartool/sun.tools.jar.Main.extractFile(Main.java:1456)
        at jdk.jartool/sun.tools.jar.Main.extract(Main.java:1363)
        at jdk.jartool/sun.tools.jar.Main.run(Main.java:409)
        at jdk.jartool/sun.tools.jar.Main.main(Main.java:1680)

Environment

Any Supported Releases

Cause

Open the ISO file with Clarity installer and compare the file size for install.jar to the extracted / copied file. You will see a difference in size due to an issue with ISO mounting limits

Resolution

On Windows:

  1. Explicitly mount the ISO as a drive (you may have to remove system protection)
  2. Copy the file install.jar out and compare the file size
  3. Ensure the file is correct size before proceeding with extract and install

On Linux:

  • Mount without using the ISO compression syntax ( -t iso9660)
  • Mount ISO on a local system and copy the install.jar to the Linux application server via SSH

Additional Information

Example solution on Linux:

  • After mounting the clarity installer ISO in Linux system - The size of the install.jar is 270Mb. Whereas when mounted on local workstation the size of the install.Jar is 8664389 KB(8.664389 GB).
  • The following command was used to mount the ISO:
  • sudo mount -t iso9660 -o loop CLARITY_PPM_1613.iso /data/third_party/Clarity1613/clarity