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

Cannot unpack the gzip file #1

Open
maiok opened this issue Nov 12, 2021 · 6 comments
Open

Cannot unpack the gzip file #1

maiok opened this issue Nov 12, 2021 · 6 comments

Comments

@maiok
Copy link

maiok commented Nov 12, 2021

Hi.

Thanks for this example. I try to build this Dockerfile, but I have the issue with unpack of gzip file. Also I try unpack directly via MacOS native tool, but I got a message "Unsupported format".

Do you know, how can I solved this? Maybe gzip file is damaged.

Thank you.
Mario

➜  arm64 git:(master) ✗ docker build . -t elyalvarado/elasticsearch:6.8
[+] Building 2.0s (11/22)                                                                                                              
 => [internal] load build definition from Dockerfile                                                                              0.0s
 => => transferring dockerfile: 120B                                                                                              0.0s
 => [internal] load .dockerignore                                                                                                 0.0s
 => => transferring context: 2B                                                                                                   0.0s
 => [internal] load metadata for docker.io/library/centos:8                                                                       1.5s
 => [internal] load build context                                                                                                 0.0s
 => => transferring context: 751B                                                                                                 0.0s
 => CACHED [builder  1/11] FROM docker.io/library/centos:8@sha256:a27fd8080b517143cbbbab9dfb7c8571c40d67d534bbdee55bd6c473f432b1  0.0s
 => CANCELED [stage-1 2/8] RUN for iter in {1..10}; do       yum update --setopt=tsflags=nodocs -y &&       yum install --setopt  0.4s
 => CACHED [builder  2/11] RUN set -eux ;     tini_bin="" ;     case "$(arch)" in         aarch64) tini_bin='tini-arm64' ;;       0.0s
 => CACHED [builder  3/11] RUN mkdir /usr/share/elasticsearch                                                                     0.0s
 => CACHED [builder  4/11] WORKDIR /usr/share/elasticsearch                                                                       0.0s
 => CACHED [builder  5/11] COPY elasticsearch-6.8.16-SNAPSHOT-linux-aarch64.tar.gz /opt/                                          0.0s
 => ERROR [builder  6/11] RUN tar zxf /opt/elasticsearch-6.8.16-SNAPSHOT-linux-aarch64.tar.gz --strip-components=1                0.3s
------
 > [builder  6/11] RUN tar zxf /opt/elasticsearch-6.8.16-SNAPSHOT-linux-aarch64.tar.gz --strip-components=1:
#13 0.335 
#13 0.335 gzip: stdin: not in gzip format
#13 0.335 tar: Child returned status 1
#13 0.336 tar: Error is not recoverable: exiting now
------
executor failed running [/bin/sh -c tar zxf /opt/elasticsearch-6.8.16-SNAPSHOT-linux-aarch64.tar.gz --strip-components=1]: exit code: 2
@elyalvarado
Copy link
Owner

You need to to install the Git extension for LFS: https://git-lfs.github.com/ to be able to download the zip files

@maiok
Copy link
Author

maiok commented Dec 3, 2021

Thanks a lot ;) It works!

@raulsanchez-gig
Copy link

I've the same issue as @maiok reported, but this time I get an error:

➜  elasticsearch-docker-arm64 git:(main) git lfs pull -I elasticsearch-6.8.16-SNAPSHOT-linux-aarch64.tar.gz     
batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.                                                  
error: failed to fetch some objects from 'https://github.com/elyalvarado/elasticsearch-docker-arm64.git/info/lfs'

It's the first time I use lfs, so I'm not very sure how this works unfortunately, could you elaborate further?

@matus-krska
Copy link

You need to to install the Git extension for LFS: https://git-lfs.github.com/ to be able to download the zip files

Hello, I installed it, tried to build the image again and same error, did I miss some step?

@matus-krska
Copy link

You need to to install the Git extension for LFS: https://git-lfs.github.com/ to be able to download the zip files

Hello, I installed it, tried to build the image again and same error, did I miss some step?

Oh never mind I didn't clone the project through Git LFS. Now I tried and I get the same error as @gravelmuncha2K

@elyalvarado
Copy link
Owner

I'm out of quota for using LFS, so you'll have to wait until next month, or alternatively you could try and compile the binary yourself by following the instructions on #3

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

4 participants