Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error : gzip: stdin: not in gzip format #160

Closed
wiZzwise opened this issue Jul 13, 2018 · 8 comments
Closed

Error : gzip: stdin: not in gzip format #160

wiZzwise opened this issue Jul 13, 2018 · 8 comments

Comments

@wiZzwise
Copy link

Hello,

I have an error when i run this command :MQ_ARCHIVE=IBM_MQ_9.0.0.0_LINUX_X86-64_TRIAL.tar.gz make build-advancedserver

The output is :

  • false
  • DIR_EXTRACT=/tmp/mq
  • mkdir -p /tmp/mq
  • cd /tmp/mq
  • curl -LO http://build:80/IBM_MQ_9.0.0.0_LINUX_X86-64_TRIAL.tar.gz
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 3892 100 3892 0 0 364k 0 --:--:-- --:--:-- --:--:-- 380k
  • tar -zxvf ./IBM_MQ_9.0.0.0_LINUX_X86-64_TRIAL.tar.gz

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

The command '/bin/sh -c chmod u+x /usr/local/bin/install-mq.sh && sleep 1 && install-mq.sh' returned a non-zero code: 2
build-server
build

Thanks for your help.

@wiZzwise
Copy link
Author

Outside the container i can execute tar -zxvf ./IBM_MQ_9.0.0.0_LINUX_X86-64_TRIAL.tar.gz successfully inside downloads directory. So i suspect that the curl -LO http://build:80/IBM_MQ_9.0.0.0_LINUX_X86-64_TRIAL.tar.gz do not download the entire file.

Thanks for your help.

@cra1gl1
Copy link

cra1gl1 commented Jul 13, 2018

I have the exact same issue. Looks like the issue is with the temporarily created network and/or the web server that's supposed to host the tar.gz.

@wiZzwise
Copy link
Author

Thanks for your response.

@wiZzwise
Copy link
Author

Any workaround for this issue ?

@parrobe
Copy link
Member

parrobe commented Jul 18, 2018

Hi @faissalwise,

When we see the error gzip: stdin: not in gzip format it means that the curl command has failed to download the archive file from the temporary nginx http server we have started. The most common cause of this is that the archive file in the downloads directory does not have world read permissions on it so the curl command cannot download it. Please check that the permissions for this archive file allow anyone to read it.

On a side note, if i remember correctly the 9 LTS archive you are using does not contain debian installation files but instead contains rpm install files. This will be a problem later on when the install script attempts to install MQ as it will try and do it using apt install which will not work with rpm install files. A possible workaround would be to change the base image from ubuntu:16.04 to centos:latest which will cause the install scripts to use rpm to install instead.

@wiZzwise
Copy link
Author

Hi @parrobe ,
It's resolved,my problem was the proxy in the curl command,so i use curl with noproxy option and that works.

Thanks.

@patelniks58
Copy link

@faissalwise
What you have done in local to resolve this issue ?
Other than changing the base image from ubuntu:16.04 to centos:latest
I am having the same issue still

@arthurbarr
Copy link
Member

arthurbarr commented Feb 20, 2021

Can you please clarify the name of the tar.gz file you are using, and that you've checked it's downloaded correctly (is really a valid file)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants