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

Lens crashes on startup #8126

Open
arielmanka opened this issue Nov 13, 2024 · 7 comments
Open

Lens crashes on startup #8126

arielmanka opened this issue Nov 13, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@arielmanka
Copy link

Describe the bug
Lens displays errors on startup
Component stack:

at le (https://lens.app:62060/build/lens.js?a4d206b170f2c4d92ccd:2:196021)
at ri (https://lens.app:62060/build/lens.js?a4d206b170f2c4d92ccd:2:262434)
at div
at https://lens.app:62060/build/lens.js?a4d206b170f2c4d92ccd:8:10672081
at div
at div
at div
at l (https://lens.app:62060/build/lens.js?a4d206b170f2c4d92ccd:8:1402964)
at b (https://lens.app:62060/build/lens.js?a4d206b170f2c4d92ccd:8:9663813)
at main
at div
at y.getProps (https://lens.app:62060/build/lens.js?a4d206b170f2c4d92ccd:8:12239051)
at I (https://lens.app:62060/build/lens.js?a4d206b170f2c4d92ccd:8:1396458)
at G (https://lens.app:62060/build/lens.js?a4d206b170f2c4d92ccd:8:6477477)
at I (https://lens.app:62060/build/lens.js?a4d206b170f2c4d92ccd:8:1396458)
at l (https://lens.app:62060/build/lens.js?a4d206b170f2c4d92ccd:8:1402964)
at re (https://lens.app:62060/build/lens.js?a4d206b170f2c4d92ccd:2:855769)
at https://lens.app:62060/build/lens.js?a4d206b170f2c4d92ccd:8:12355780
at div
at https://lens.app:62060/build/lens.js?a4d206b170f2c4d92ccd:8:10459272
at t (https://lens.app:62060/build/lens.js?a4d206b170f2c4d92ccd:8:5455435)
at https://lens.app:62060/build/lens.js?a4d206b170f2c4d92ccd:8:12355780
at https://lens.app:62060/build/lens.js?a4d206b170f2c4d92ccd:8:9903851
at l (https://lens.app:62060/build/lens.js?a4d206b170f2c4d92ccd:8:1402964)

Error stack:

AssertionError [ERR_ASSERTION]: There must be some tab data for a kube resource tabId
at instantiate (https://lens.app:62060/build/lens.js?a4d206b170f2c4d92ccd:8:10428674)
at https://lens.app:62060/build/lens.js?a4d206b170f2c4d92ccd:8:12355606
at https://lens.app:62060/build/lens.js?a4d206b170f2c4d92ccd:2:318584
at B (https://lens.app:62060/build/lens.js?a4d206b170f2c4d92ccd:2:318648)
at https://lens.app:62060/build/lens.js?a4d206b170f2c4d92ccd:2:323585
at Object.inject (https://lens.app:62060/build/lens.js?a4d206b170f2c4d92ccd:2:322482)
at Object.u [as inject] (https://lens.app:62060/build/lens.js?a4d206b170f2c4d92ccd:2:317866)
at Object.getCurrentTitle (https://lens.app:62060/build/lens.js?a4d206b170f2c4d92ccd:8:10451646)
at https://lens.app:62060/build/lens.js?a4d206b170f2c4d92ccd:8:10668460
at ct (https://lens.app:62060/build/lens.js?a4d206b170f2c4d92ccd:8:1450747)

To Reproduce
Steps to reproduce the behavior:

  1. Closed Lens because it wasn't refreshing cluster overview page
  2. Start Lens either as regular user or as Administrator
  3. Error is displayed

Expected behavior
Application should start normally

Screenshots
lens_1

Environment (please complete the following information):

  • Lens Version: 2024.10.171859-latest
  • Electron: 31.6.0
  • OS: Windows 11 Pro
  • Installation method: Windows installer

Kubeconfig:
No issue with kubeconfig. It used to work for a few days and just crushed now. No recent changes to kubeconfig

Additional context
Lens is very slow to load resources. Tabs behavior is erratic. Sometimes clicking opens new tab, other times it overwrites currently displayed tab

@arielmanka arielmanka added the bug Something isn't working label Nov 13, 2024
@carminoplata
Copy link

Hi,

I'm dealing with same issue. I tried to uninstall and install Lens again but the same error has been showed at startup.
In addition, each time I'm going to reinstall Lens, I'm facing with this issue #5773

@Tixon123
Copy link

Hello arielmanka,

Thank you for reaching out to Lens GitHub!

This is a bug we are currently fixing. A patch should be released in the next few days for it. It is caused when our storage gets into a corrupted state (due to the aforementioned bug).

Please delete the folder /Library/Application Support/Lens/lens-local-storage-v2 (for MacOS), and restart Lens. You will be able to bypass the problem with it.

In Windows, the folder would be at:

/Users/USERNAME/AppData/Roaming/Lens/lens-local-storage-v2
or
/Users/USERNAME/AppData/Local/Lens/lens-local-storage-v2

Best Regards,
Tikhon Kudinov
Lens Support Engineer
Mirantis, Inc

@carminoplata
Copy link

Hi @Tixon123,

Thanks a lot for your fast reply. Your solution worked at least for making Lens able to restart.
Currently I have just got another issue which came up before Lens crash. I'm not able to see in Lens my EKS configuration although using kubectl commands I don't have any problems.

Lens complains with the following error:
"Failed to load /api/v1/events: Failed to GET "https://127.0.0.1:52531/api-kube/api/v1/namespaces/art-sdp-server/events?limit=500": Internal Server Error (500)"

@panuhorsmalahti
Copy link
Contributor

@carminoplata can you describe your issue a bit more (or even make a new GitHub issue with more information), such as can you connect to the cluster at all, are you using the AWS EKS or the Local Kubeconfigs section in the navigator? Maybe post a screenshot?

@carminoplata
Copy link

carminoplata commented Nov 18, 2024

The Lens' navigator shows that it is able to connect with cluster but there is something bad in the communication with some internal server:
immagine

Regarding the configuraions, I'm using local kubeconfings so the eks configuration is downloaded and added at local configs

@Nokel81
Copy link
Collaborator

Nokel81 commented Nov 19, 2024

Would you be able to provide logs for that cluster? You can get them by using the application menu and doing "Help > Export Support Logs". Thanks.

@carminoplata
Copy link

In the attachment, you can find the required logs.
With a fast investigation, I found the following error in the file lens-renderer-root-frame.log

2024-11-18T09:47:08.421Z error: [KUBE-CLUSTER-RESOURCES]: Error while listing resources from /apis/apiextensions.k8s.io/v1/customresourcedefinitions: B [Error]: Failed to GET "https://127.0.0.1:52531/api-kube/apis/apiextensions.k8s.io/v1/customresourcedefinitions?limit=500": Internal Server Error (500) at https://lens.app:52531/build/lens.js?a4d206b170f2c4d92ccd:8:9686045 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async T.fetch (https://lens.app:52531/build/lens.js?a4d206b170f2c4d92ccd:8:9897196) at async T.fetchParsed (https://lens.app:52531/build/lens.js?a4d206b170f2c4d92ccd:8:9899088) at async T.get (https://lens.app:52531/build/lens.js?a4d206b170f2c4d92ccd:8:9897870) at async _.listWithFullResponse (https://lens.app:52531/build/lens.js?a4d206b170f2c4d92ccd:8:9951376) at async _.chunkedList (https://lens.app:52531/build/lens.js?a4d206b170f2c4d92ccd:8:9950965) at async https://lens.app:52531/build/lens.js?a4d206b170f2c4d92ccd:8:9968498 { method: 'get', pathname: 'https://127.0.0.1:52531/api-kube/apis/apiextensions.k8s.io/v1/customresourcedefinitions?limit=500', statusText: 'Internal Server Error', status: 500, body: 'dial tcp: lookup 0390286914202335BBFA0FBAAB1B464A.gr7.eu-south-1.eks.amazonaws.com: no such host\n' }

lens-logs-1732105968946.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants