Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

GZip gives error: java.util.zip.ZipException: invalid block type

hi,

I am getting the following error : java.util.zip.ZipException: invalid block type at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:164) at java.util.zip.GZIPInputStream.read(GZIPInputStream.java:117)

After I collect the ucs file using API calls. I check the content-range for each API call and i think i collected everything in the ucs file. How would i debug this to find out what is wrong?

thanks, wai

0
Rate this Question
Comments on this Question
Comment made 6 days ago by Tester 1

Just to clarify my question.

I am using BigIQ's API to collect the ucs file(s) and got java.util.zip.ZipException: invalid block type when i uncompress this ucs file, so that i can get to the device configuration file.

-wailing

0

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

Debug may take little wrong process for troubleshooting and it might create impact with existing traffic if device is in production, Correct me if i am wrong.

Personally I would recommend you use existing iApp feature in F5. Below link may help to generate UCS...

https://devcentral.f5.com/codeshare/f5-iapp-automated-backup-1114

0
Comments on this Answer
Comment made 6 days ago by Tester 1

I am actually using the API call that is documented in F5, namely https://<serverIP:443>/mgmt/cm/system/backup-download/<...>.ucs file. I am using the content-range in the API call to get the ucs file. I am testing now so there should be little traffic delay. I am very sure that the ucs file collected in API calls is not correct. I can manually download the ucs file and do an extraction and it work, but not the ucs file coming from the API calls. How can i debug the API call other than monitoring the content range value.

The link you send is using scp from that i can tell with a brief glance. Unfortunately, i cannot access TCL from my system.

-wai

0