Microsoft Windows [Version 10.0.19045.4651]
(c) Microsoft Corporation. All rights reserved.
C:\Users\ekeryell>
Now, digging into log file in C:\Users\ekeryell\AppData\Roaming\OpenLens\logs\lens.log, I see the following:
debug: Set kubectl version 1.26.6 for cluster version v1.26.15-eks-db838b0 using version map
debug: Acquired a lock for 1.26.6
info: Downloading kubectl 1.26.6 from https://storage.googleapis.com/kubernetes-release/release/v1.26.6/bin/windows/amd64/kubectl.exe to C:\Users\ekeryell\AppData\Roaming\OpenLens\binaries\kubectl\1.26.6\kubectl.exe
info: [CLUSTER]: refresh {"accessible":true,"disconnected":false,"id":"75dc202c61a8c97802f34df9e0d47927","name":"<cluster-name>","online":true,"ready":true}
error: [KUBECTL]: failed to download kubectl connect ETIMEDOUT x.x.x.x:443 {"code":"ETIMEDOUT","name":"RequestError","stack":"RequestError: connect ETIMEDOUT x.x.x.x:443\n at ClientRequest.<anonymous> (C:\\Users\\ekeryell\\AppData\\Local\\Programs\\open-lens\\resources\\app.asar\\node_modules\\@k8slens\\core\\static\\build\\library\\main.js:3233:111)\n at Object.onceWrapper (node:events:628:26)\n at ClientRequest.emit (node:events:525:35)\n at ClientRequest.emit (node:domain:489:12)\n at origin.emit (C:\\Users\\ekeryell\\AppData\\Local\\Programs\\open-lens\\resources\\app.asar\\node_modules\\@k8slens\\core\\static\\build\\library\\main.js:492:20)\n at TLSSocket.socketErrorListener (node:_http_client:481:9)\n at TLSSocket.emit (node:events:513:28)\n at TLSSocket.emit (node:domain:489:12)\n at emitErrorNT (node:internal/streams/destroy:157:8)\n at emitErrorCloseNT (node:internal/streams/destroy:122:3)\n at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1247:16)","timings":{"error":1722850748558,"lookup":1722850727514,"phases":{"dns":1,"total":21045,"wait":0},"socket":1722850727513,"start":1722850727513}}
debug: [KUBECTL]: Releasing lock for 1.26.6
info: [SHELL-SESSION]: PTY for 75dc202c61a8c97802f34df9e0d47927:18eb4e71-9089-475b-9151-1de0327602ee is started with PID=24908
... so the problem ends up being the following:
OpenLens detects a new kubectl version
it tries to download it
it fails (for whatever reason, certainly because I am behind a proxy)
First it stays a few second on:
... then I get Windows command prompt:
Now, digging into log file in
C:\Users\ekeryell\AppData\Roaming\OpenLens\logs\lens.log
, I see the following:... so the problem ends up being the following:
Solution
Disable download of kubectl binaries
It works now!