Namita Neema:
root@kubernetes-worker:~# curl -L <https://github.com/etcd-io/etcd/releases/download/v3.3.11/etcdv3.3.11-linux-amd64.tar.gz> -o etcd-v3.3.11-linux-amd64.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9 100 9 0 0 17 0 --:--:-- --:--:-- --:--:-- 17
root@kubernetes-worker:~# tar xzvf etcd-v3.3.11-linux-amd64.tar.gz
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Nick:
Try this (correct link for download):
curl -L <https://github.com/etcd-io/etcd/releases/download/v3.3.11/etcd-v3.3.11-linux-amd64.tar.gz> -o etcd-v3.3.11-linux-amd64.tar.gz
tar xzvf etcd-v3.3.11-linux-amd64.tar.gz
Namita Neema:
yes, it worked. Thanks a lot. Can you please share how you identified this problem.
Nick:
First of all, I’ve checked the URI and opened it - your URI gave an error “Not found”. Then I’ve checked that the downloaded file has a small size (ls -al) and thus tar couldn’t unarchive the file (and throw an error).
I opened GitHub and saw that the URI has a different format. Then I’ve fixed and opened the correct URI. The downloaded file had another size and tar unarchived it without problems.