lens icon indicating copy to clipboard operation
lens copied to clipboard

Not able to connect to cluster

Open srishtirox opened this issue 1 year ago • 2 comments

Describe the bug When trying to connect to cluster it shows below error :

SSL validation failed for https://sts.us-east-2.amazonaws.com/ [Errno 2] No such file or directory

E0721 04:05:33.559758 5476 proxy_server.go:147] Error while proxying request: getting credentials: exec: executable aws failed with exit code 255

getting credentials: exec: executable aws failed with exit code 255

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior It should connect

Screenshots N/A

Environment (please complete the following information):

  • Lens Version: 5.3.4
  • OS: Windows
  • Installation method (e.g. snap or AppImage in Linux):

Logs: When you run the application executable from command line you will see some logging output. Please paste them here:

Your logs go here...

Kubeconfig: Quite often the problems are caused by malformed kubeconfig which the application tries to load. Please share your kubeconfig, remember to remove any secret and sensitive information.

your kubeconfig here

Additional context Add any other context about the problem here.

srishtirox avatar Jul 20 '22 22:07 srishtirox

getting credentials: exec: executable aws failed with exit code 255

This means that the aws CLI is failing which is why Lens cannot connect.

Does it work fine from the command line? If so, does running lens from the same command line resolve the issue?

Nokel81 avatar Jul 25 '22 13:07 Nokel81

I had the same issue just now. I believe after updating my config via "aws eks update-kubeconfig ...", it lost my read permissions for ./kube/config file. After adding them back it fixed my Lens Desktop.

Add read permissions back to config file:

chmod +r ~/.kube/config

josue avatar Sep 12 '22 18:09 josue

We also made some fixes to how env sync works. So closing for the time being

Nokel81 avatar Oct 11 '22 20:10 Nokel81