lensapp / lens

Lens - The way the world runs Kubernetes
https://k8slens.dev/
MIT License
22.3k stars 1.45k forks source link

Cannot use terminal after last update 2023.12.281947-latest #8000

Closed izecy closed 5 months ago

izecy commented 5 months ago

Describe the bug Cannot use terminal, stuck in Connecting ... state. Cannot execute to pod.

image image

To Reproduce Steps to reproduce the behavior:

  1. Go to File - Preferences - Terminal
  2. Default value is powershell.exe

image

  1. Try change to full path C:\Windows\System32\WindowsPowerShell\v1.0/powershell.exe
  2. Still not work

Expected behavior Terminal work normally.

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

MatGal01 commented 5 months ago

I have the same problem.

rauny-henrique commented 5 months ago

I have the same problem too.

dhorner71 commented 5 months ago

i have the same problem.

Lens Version: 2024.1.170738-latest Chrome: 114.0.5735.289 OS: windows 10 enterprise 19044.3803

lens.log entry: error: [SHELL-SESSION]: failed to open a local shell Failed to get directory containing kubectl: Error: Failed to symlink bundled kubectl {"stack":"Error: Failed to get directory containing kubectl: Error: Failed to symlink bundled kubectl\n at C:\Program Files\Lens\resources\app.asar\node_modules\@lensapp\core-main\dist\index.js:4085:15"}

based on other similar issues, i deleted everything under: C:\Users\\AppData\Roaming\Lens\binaries\kubectl and restarted lens. the bundled folder did reappear but with no content.

alexcherka commented 5 months ago

Lens Version: 2023.12.281947-latest Chrome: 114.0.5735.289 OS: Microsoft Windows 10 Pro 10.0.19045 Build 19045

I had the exact same issue for Windows. I was able to resolve by closing Lens application, deleting the C:\Users\\AppData\Roaming\Lens\binaries\kubectl folder and then relaunching Lens as Admin.

Hope this helps someone else!


Looks like the final result of the binaries should be a folder called bundled with a app shortcut to C:\Users\\AppData\Local\Programs\Lens\resources\x64 where the kubectl exe resides

MatGal01 commented 5 months ago

Thanks alexcherka .. working good!!

maximveksler commented 5 months ago

Same for me on Mac. Not good, very bad.

msa0311 commented 5 months ago

Thanks for reporting, a fix for this will be release soon.

msa0311 commented 5 months ago

Fixed with latest release: https://github.com/lensapp/lens/releases/tag/v2024.1.300751-latest

Please let us know if the issue persists!

nowakmax commented 5 months ago

Issue still persist. Lens Setup 2024.1.300751-latest version. Cant connect with pod terminal. Same error. image