kubescape / lens-extension

A Lens extension for viewing Kubescape security information
https://github.com/armosec/kubescape
Apache License 2.0
52 stars 6 forks source link

Extension in lens kept on showing initialising. #5

Closed siva143sp closed 1 year ago

siva143sp commented 2 years ago

Hi,

I am using Mac SO: catalina 10.15.7 intel i9 Lens: 5.5.4-latest.20220609.2 trying to add the extension and was able to add and it was showing the version 0.1.9 has been installed and enabled.

Once I connected to the cluster I was able to see the kubescape extesion. when I click on the its kept on showing initialising. When I click on the any of the resource to see the scape, its shows the below,

image

I also i tried multiple time by clearing off the cache of the lens etc..,

Also please find the data in the extension json files

image

Would you kindly help me out to sort this out.

Thanks in advanced! Shiva.B

amirmalka commented 2 years ago

@siva143sp From the output of kubescape-preference-store.json it does look like the extension wasn't installed properly

I suggest to run the commands below in your terminal, which will remove the files and open up Lens from the terminal. While the terminal is open, you should see Lens startup logs, as well as Kubescape logs or errors if there are any, so I would start troubleshooting from there.

rm -rf ~/Library/Application\ Support/Lens/extension-store/@kubescape/lens-extension/kubescape-report-store.json
rm -rf ~/Library/Application\ Support/Lens/extension-store/@kubescape/lens-extension/kubescape-preference-store.json
/Applications/Lens.app/Contents/MacOS/Lens
siva143sp commented 2 years ago

@amirmalka : thanks much for the response. please find the logs after executing the give commands,

:~ shiva_bhimireddy$ rm -rf ~/Library/Application\ Support/Lens/extension-store/@kubescape/lens-extension/kubescape-preference-store.json :~ shiva_bhimireddy$ rm -rf ~/Library/Application\ Support/Lens/extension-store/@kubescape/lens-extension/kubescape-report-store.json :~ shiva_bhimireddy$ /Applications/Lens.app/Contents/MacOS/Lens info: ▪ 📟 Setting Lens as protocol client for lens:// +0ms info: ▪ 📟 Protocol client register succeeded ✅ +2ms info: ▪ [EXTENSIONS-STORE]: LOADING from ... +14ms info: ▪ [EXTENSIONS-STORE]: LOADED from /Users/shiva_bhimireddy/Library/Application Support/Lens/lens-extensions.json +9ms info: ▪ [FILESYSTEM-PROVISIONER-STORE]: LOADING from ... +8ms info: ▪ [FILESYSTEM-PROVISIONER-STORE]: LOADED from /Users/shiva_bhimireddy/Library/Application Support/Lens/lens-filesystem-provisioner-store.json +6ms info: ▪ 🚀 Starting Lens from "/Applications/Lens.app/Contents/MacOS/Lens" +9ms info: ▪ 🐚 Syncing shell environment +0ms :~ shiva_bhimireddy$

siva143sp commented 2 years ago

Its also happening same with the latest version 2 as well.

Component stack:

at d (/Users/shiva_bhimireddy/.k8slens/extensions/kubescape--lens-extension/dist/renderer.js:1:33486)
at Details
at div
at div
at div
at DefaultedAnimate (http://44c5f39c67dfcf1f727ee6ecca508f88.localhost:61032/build/Lens.js?efb54d12584c4a7a3002:575192:9)
at NonInjectedAnimate
at NonInjectedDrawer (http://44c5f39c67dfcf1f727ee6ecca508f88.localhost:61032/build/Lens.js?efb54d12584c4a7a3002:594452:9)
at NonInjectedKubeObjectDetails (http://44c5f39c67dfcf1f727ee6ecca508f88.localhost:61032/build/Lens.js?efb54d12584c4a7a3002:605946:9)
at ObserverComponent (http://44c5f39c67dfcf1f727ee6ecca508f88.localhost:61032/build/Lens.js?efb54d12584c4a7a3002:240519:23)
at ErrorBoundary (http://44c5f39c67dfcf1f727ee6ecca508f88.localhost:61032/build/Lens.js?efb54d12584c4a7a3002:594915:9)
at observerComponent (http://44c5f39c67dfcf1f727ee6ecca508f88.localhost:61032/build/Lens.js?efb54d12584c4a7a3002:240471:16)
at ThemeProvider (http://44c5f39c67dfcf1f727ee6ecca508f88.localhost:61032/build/Lens.js?efb54d12584c4a7a3002:124521:24)
at Router (http://44c5f39c67dfcf1f727ee6ecca508f88.localhost:61032/build/Lens.js?efb54d12584c4a7a3002:457461:30)

Error stack:

TypeError: Cannot read properties of undefined (reading 'controls') at d.render (/Users/shiva_bhimireddy/.k8slens/extensions/kubescape--lens-extension/dist/renderer.js:1:33585) at qi (http://44c5f39c67dfcf1f727ee6ecca508f88.localhost:61032/build/Lens.js?efb54d12584c4a7a3002:456004:188) at pi (http://44c5f39c67dfcf1f727ee6ecca508f88.localhost:61032/build/Lens.js?efb54d12584c4a7a3002:456003:173) at ck (http://44c5f39c67dfcf1f727ee6ecca508f88.localhost:61032/build/Lens.js?efb54d12584c4a7a3002:456086:427) at bk (http://44c5f39c67dfcf1f727ee6ecca508f88.localhost:61032/build/Lens.js?efb54d12584c4a7a3002:456067:347) at ak (http://44c5f39c67dfcf1f727ee6ecca508f88.localhost:61032/build/Lens.js?efb54d12584c4a7a3002:456067:278) at Tj (http://44c5f39c67dfcf1f727ee6ecca508f88.localhost:61032/build/Lens.js?efb54d12584c4a7a3002:456067:138) at Lj (http://44c5f39c67dfcf1f727ee6ecca508f88.localhost:61032/build/Lens.js?efb54d12584c4a7a3002:456060:163) at http://44c5f39c67dfcf1f727ee6ecca508f88.localhost:61032/build/Lens.js?efb54d12584c4a7a3002:455940:115 at exports.unstable_runWithPriority (http://44c5f39c67dfcf1f727ee6ecca508f88.localhost:61032/build/Lens.js?efb54d12584c4a7a3002:471047:343)

963230432 commented 2 years ago

me too

amirmalka commented 1 year ago

@siva143sp please advise if the issue persists with the new version of the extension

siva143sp commented 1 year ago

This seems to be fixed, thanks much!

Thanks, Best Regards, Shiva.B


From: Amir Malka @.> Sent: Thursday, December 1, 2022 4:01:49 PM To: kubescape/lens-extension @.> Cc: siva143sp @.>; Mention @.> Subject: Re: [kubescape/lens-extension] Extension in lens kept on showing initialising. (Issue #5)

@siva143sphttps://github.com/siva143sp please advise if the issue persists with the new version of the extension

— Reply to this email directly, view it on GitHubhttps://github.com/kubescape/lens-extension/issues/5#issuecomment-1333552389, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKFZFQI6CJOFB25BEAI6XH3WLB5BLANCNFSM54ZBZC4A. You are receiving this because you were mentioned.Message ID: @.***>

amirmalka commented 1 year ago

@siva143sp Thanks for the feedback!