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

[krew] Installation of release v0.4.4 fails with DNS lookup issue #860

Open
dfgrosso opened this issue Sep 2, 2024 · 1 comment
Open

Comments

@dfgrosso
Copy link

dfgrosso commented Sep 2, 2024

I'm getting the error below while running the command .\krew install krew on a Windows command prompt:

Updated the local copy of plugin index. Installing plugin: krew W0902 12:18:56.272683 17532 install.go:164] failed to install plugin "krew": install failed: failed to unpack into staging dir: failed to unpack the plugin archive: failed to obtain plugin archive: failed to download "https://github.com/kubernetes-sigs/krew/releases/download/v0.4.4/krew-windows_amd64.tar.gz": Get "https://objects.githubusercontent.com/github-production-release-asset-2e65be/140747457/d88da622-a593-45e6-892f-acd66b83a6fc?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240902%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240902T111856Z&X-Amz-Expires=300&X-Amz-Signature=ce723e2c02002d5b5198663b7ea1eb46ed6eb1d2c1f622590e7ec80797d25791&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=140747457&response-content-disposition=attachment%3B%20filename%3Dkrew-windows_amd64.tar.gz&response-content-type=application%2Foctet-stream": dial tcp: lookup objects.githubusercontent.com on 192.168.1.254:53: no such host failed to install some plugins: [krew]: install failed: failed to unpack into staging dir: failed to unpack the plugin archive: failed to obtain plugin archive: failed to download "https://github.com/kubernetes-sigs/krew/releases/download/v0.4.4/krew-windows_amd64.tar.gz": Get "https://objects.githubusercontent.com/github-production-release-asset-2e65be/140747457/d88da622-a593-45e6-892f-acd66b83a6fc?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20240902%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240902T111856Z&X-Amz-Expires=300&X-Amz-Signature=ce723e2c02002d5b5198663b7ea1eb46ed6eb1d2c1f622590e7ec80797d25791&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=140747457&response-content-disposition=attachment%3B%20filename%3Dkrew-windows_amd64.tar.gz&response-content-type=application%2Foctet-stream": dial tcp: lookup objects.githubusercontent.com on 192.168.1.254:53: no such host

I can install the previous version successfully.

@dfgrosso
Copy link
Author

dfgrosso commented Sep 2, 2024

Nevermind. It seems like my ISP's connection had a manually set DNS server (8.8.8.8) and the install script (git client maybe) is assuming the DNS server is available at the default gw IP. Setting the DNS server for DHCP in my WAN connection solved the issue.

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

1 participant