lensapp / lens

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

Disappearing Log and Shell menu #7860

Open dancooktoptal opened 1 year ago

dancooktoptal commented 1 year ago

Describe the bug

Error message on start up resulting in the Log, Shell, etc buttons missing from the pod menu.

To Reproduce

Steps to reproduce the behavior:

Every time I open Lens, I get this error dialog:

Could not load extensions: ENOENT: no such file or directory, stat C:\Users\MyUsername\AppData\Local\Programs\Lens\resources\extensions

image

Once Lens starts and I click on a pod, the Log and Shell buttons are missing from the menu.

image

So I am stuck without logs. Occasionally, the green Update button will appear.

image

If update Lens, the Log, Shell, etc buttons reappear (although typically my version number is not incremented). However, next time I open Lens, the error dialog appears and missing buttons have disappeared again. I have already tried reinstalling Lens multiple times but the problem persists.

Expected behavior Buttons should not disappear.

Environment (please complete the following information):

Logs: When you run the application executable from command line you will see some logging output. Please paste them here:

instrument.js:109 [WIN-CA]: Error injecting root CAs from Windows. Error: Invalid package C:\Users\MyUsername\AppData\Local\Programs\Lens\resources\electron.asar
(anonymous) @ instrument.js:109
instrument.js:109 [USER-STORE]: LOADING from  ...
instrument.js:109 [USER-STORE]: LOADED from C:\Users\MyUsername\AppData\Roaming\Lens\lens-user-store.json
instrument.js:109 [BOOTSTRAP-ROOT-FRAME]: initializing Registries
instrument.js:109 [BOOTSTRAP-ROOT-FRAME]: initializing EntitySettingsRegistry
instrument.js:109 [BOOTSTRAP-ROOT-FRAME]: initializing CatalogEntityDetailRegistry
instrument.js:109 [BOOTSTRAP-ROOT-FRAME]: initializing CatalogCategoryRegistryEntries
instrument.js:109 [BOOTSTRAP-ROOT-FRAME]: initializing Catalog
instrument.js:109 [EXTENSIONS-STORE]: LOADING from  ...
instrument.js:109 [EXTENSIONS-STORE]: LOADED from C:\Users\MyUsername\AppData\Roaming\Lens\lens-extensions.json
instrument.js:109 [FILESYSTEM-PROVISIONER-STORE]: LOADING from  ...
instrument.js:109 [FILESYSTEM-PROVISIONER-STORE]: LOADED from C:\Users\MyUsername\AppData\Roaming\Lens\lens-filesystem-provisioner-store.json
instrument.js:109 [BOOTSTRAP-ROOT-FRAME]: initializing IpcRendererListeners
instrument.js:109 [CLUSTER-STORE]: LOADING from  ...
instrument.js:109 [CLUSTER-STORE]: LOADED from C:\Users\MyUsername\AppData\Roaming\Lens\lens-cluster-store.json
instrument.js:109 [CLUSTER-STORE] requesting initial state sync
instrument.js:109 [HOTBAR-STORE]: LOADING from  ...
instrument.js:109 [HOTBAR-STORE]: LOADED from C:\Users\MyUsername\AppData\Roaming\Lens\lens-hotbar-store.json
instrument.js:109 [WEBLINK-STORE]: LOADING from  ...
instrument.js:109 [WEBLINK-STORE]: LOADED from C:\Users\MyUsername\AppData\Roaming\Lens\lens-weblink-store.json
instrument.js:109 [CLUSTER-STORE] start to listen (1)
instrument.js:109 [PROTOCOL ROUTER]: internal registering /preferences
instrument.js:109 [PROTOCOL ROUTER]: internal registering /
instrument.js:109 [PROTOCOL ROUTER]: internal registering /landing
instrument.js:109 [PROTOCOL ROUTER]: internal registering /landing/view/:group/:kind
instrument.js:109 [PROTOCOL ROUTER]: internal registering /cluster
instrument.js:109 [PROTOCOL ROUTER]: internal registering /entity/:entityId/settings
instrument.js:109 [PROTOCOL ROUTER]: internal registering /cluster/:clusterId
instrument.js:109 [PROTOCOL ROUTER]: internal registering /cluster/:clusterId/settings
instrument.js:109 [PROTOCOL ROUTER]: internal registering /extensions
instrument.js:109 [PROTOCOL ROUTER]: internal registering /extensions/install/:LENS_INTERNAL_EXTENSION_PUBLISHER_MATCH(@[A-Za-z0-9_]+)?/:LENS_INTERNAL_EXTENSION_NAME_MATCH
instrument.js:109 [StorageHelper]: loading finished for C:\Users\MyUsername\AppData\Roaming\Lens\lens-local-storage\app.json

Kubeconfig: Quite often the problems are caused by malformed kubeconfig which the application tries to load. Please share your kubeconfig, remember to remove any secret and sensitive information.

your kubeconfig here

Additional context Add any other context about the problem here.

zerowebcorp commented 1 year ago

Noticed the same issue on a new install. Log button is gone.

Jaff commented 1 year ago

I do not see error messages, but on M1 MacbookPro on Ventura (OS 13.5) I also do not see Logs or Shell menu buttons.

Jaff commented 1 year ago

Plugin installed, issue fixed.

marafa-sugarcrm commented 1 year ago

dupe of https://github.com/lensapp/lens/issues/7837 ?