lens icon indicating copy to clipboard operation
lens copied to clipboard

tls: handshake failure

Open sarce666 opened this issue 2 years ago • 7 comments

hello

after a change of my kube config i get this error in lens when i try to connect wityh a shell in a pod error: unable to upgrade connection: error dialing backend: remote error: tls: handshake failure

with that command : exec kubectl exec -i -t -n neo4j cpi-0 -c neo4j -- sh -c "clear; (bash || ash || sh)"

if i execute it on a terminal on my device it work perfectly

is there a temp folder when i can remove the certificate in my kube config i did change the name of the cluster , in lens i can connect but not with shell ssh on pods thanks

sarce666 avatar Mar 18 '22 11:03 sarce666

Did you change the config while Lens was running?

What sort of change did you make?

Nokel81 avatar Mar 21 '22 14:03 Nokel81

hello yes i change the config , i change the kube config file ( i change the host name ) when i start lens since then i can connect to the cluster but i have this error with connecting on the shell , it looks llike lens kept certificate in temp ? because the command lens is supposed to launched exec kubectl exec -i -t -n neo4j cpi-0 -c neo4j -- sh -c "clear; (bash || ash || sh)" if i do it oin a terminal it works perfectly i tried to deinstall et resintall it but same issue

sarce666 avatar Mar 21 '22 16:03 sarce666

on lens :

Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish
sdfsdf@M1p004cpi ~> exec /usr/local/bin/kubectl exec -i -t -n neo4j cpi-0 -c neo4j -- sh -c "clear; (bash || ash || sh)"
error: unable to upgrade connection: error dialing backend: remote error: tls: handshake failure
Terminal will auto-close in 15 seconds ...

sarce666 avatar Mar 21 '22 16:03 sarce666

same here

tungtt1006 avatar Mar 31 '23 07:03 tungtt1006

same here

andrei-bamboi avatar Jun 08 '23 07:06 andrei-bamboi

same here

GenLN avatar Aug 09 '23 13:08 GenLN

@Nokel81 I'm getting this error. From the logs I found these 2 errors that seem like they may be related:

error: W1011 16:40:40.826174   46156 dial.go:72] using custom dialer with no TLSClientConfig. Defaulting to InsecureSkipVerify
error: E1011 16:40:43.915653   46156 proxy_server.go:147] Error while proxying request: error dialing backend: remote error: tls: handshake failure

what can we do to fix this? I tried clearing out some caches but couldn't figure out a work around. As others have said I can connect directly just fine, it looks like it's the proxy that's the issue. Is there a way I can disable it when I try to run a shell?

hahn-kev avatar Oct 11 '23 09:10 hahn-kev