lensapp / lens

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

Lens stuck at loading screen #7973

Open ivansf opened 8 months ago

ivansf commented 8 months ago

Describe the bug Without making any changes to configuration, Lens stops loading and sits in the loading screen without any throwing any errors.

To Reproduce Steps to reproduce the behavior:

  1. Load and authenticate with Lens.
  2. Lens operates normally
  3. Reopen application (maybe after 2 days)
  4. Lens will sit on splash screen

Expected behavior Lens should open

Screenshots image

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:

info:    Γû¬ Starting v2023.10.181418-latest of Lens... +0ms
info:    ▪ 🔌 Starting LensProxy +16ms
info:    Γû¬ [LENS-EXTENSIONS]: LOADING ... +13ms
info:    Γû¬ [LENS-EXTENSIONS]: LOADED from C:\Users\ivans\AppData\Roaming\Lens\lens-extensions.json +3ms
info:    Γû¬ [LENS-PROXY]: Proxy server has started at 127.0.0.1:59796 +14ms
info:    ▪ 🔎 Testing LensProxy connection ... +0ms
info:    Γû¬ [LENS-USER-STORE]: LOADING ... +19ms
info:    Γû¬ [LENS-USER-STORE]: LOADED from C:\Users\ivans\AppData\Roaming\Lens\lens-user-store.json +2ms
info:    Γû¬ [LENS-CLUSTER-STORE]: LOADING ... +2ms
info:    Γû¬ [LENS-CLUSTER-STORE]: LOADED from C:\Users\ivans\AppData\Roaming\Lens\lens-cluster-store.json +5ms
info:    Γû¬ ΓÜí LensProxy connection OK +13ms
info:    ▪ 📟 Setting protocol client for lens:// +7ms
info:    ▪ 📟 Protocol client register succeeded ✅ +1ms
info:    Γû¬ [CREATE-ELECTRON-WINDOW]: Loading content for window "splash" from file: C:\Program Files\Lens\resources\app.asar\static\splash.html... +27ms
info:    Γû¬ [LENS-FILESYSTEM-PROVISIONER-STORE]: LOADING ... +24ms
info:    Γû¬ [LENS-FILESYSTEM-PROVISIONER-STORE]: LOADED from C:\Users\ivans\AppData\Roaming\Lens\lens-filesystem-provisioner-store.json +1ms
info:    ▪ 🐚 Syncing shell environment +1ms
info:    Γû¬ [LENS-WEBLINK-STORE]: LOADING ... +1ms
info:    Γû¬ [LENS-WEBLINK-STORE]: LOADED from C:\Users\ivans\AppData\Roaming\Lens\lens-weblink-store.json +1ms
info:    Γû¬ [LENS-HOTBAR-STORE]: LOADING ... +22ms
info:    Γû¬ [LENS-HOTBAR-STORE]: LOADED from C:\Users\ivans\AppData\Roaming\Lens\lens-hotbar-store.json +1ms
info:    ▪ 🧩 Initializing extensions +6ms
info:    Γû¬ [EXTENSIONS-LOADER]: auto initializing extensions +1ms
Native extraction module not loaded, msgpackr will still run, but with decreased performance. A dynamic link library (DLL) initialization routine failed.
\\?\C:\Users\ivans\AppData\Local\Temp\f3ed0340-257d-466e-86d1-b882f91e3226.tmp.node
info:    Γû¬ [LENS-DESKTOP-KUBE] onActivate +1s
info:    Γû¬ [LDK-STORE]: LOADING ... +1ms
info:    Γû¬ [LDK-STORE]: LOADED from C:\Users\ivans\AppData\Roaming\Lens\extension-store\lens-desktop-kube-lens-extension\ldk-store.json +1ms
License main extension activated
info:    Γû¬ [SECURITY-PREFERENCES-STORE]: LOADING ... +1ms
info:    Γû¬ [SECURITY-PREFERENCES-STORE]: LOADED from C:\Users\ivans\AppData\Roaming\Lens\extension-store\oci-image-lens-extension\security-preferences-store.json +1ms
info:    Γû¬ [LENS-APPS] Main activated +1ms
info:    Γû¬ [SUPPORT-EXTENSION] activated +1ms
info:    Γû¬ [PREFERENCES-STORE]: LOADING ... +1ms
info:    Γû¬ [PREFERENCES-STORE]: LOADED from C:\Users\ivans\AppData\Roaming\Lens\extension-store\survey-lens-extension\preferences-store.json +0ms
info:    Γû¬ [TOUR-EXTENSION] activated +2ms
info:    Γû¬ [TIP-STORE]: LOADING ... +0ms
info:    Γû¬ [TIP-STORE]: LOADED from C:\Users\ivans\AppData\Roaming\Lens\extension-store\tour-lens-extension\tip-store.json +1ms
info:    Γû¬ [CLOUD-PROVIDER-SYNC-EXTENSION] activated +2ms
[ELECTRON-SYNC-STORE]: 2023-11-07T20:32:23.203Z - select-space-store ~ ElectronSyncStore:initialize, path C:\Users\ivans\AppData\Roaming\Lens\extension-store\lenscloud-lens-extension\select-space-store.json
[ELECTRON-SYNC-STORE]: 2023-11-07T20:32:23.203Z - select-space-store ~ ElectronSyncStore:initialize, model {"615ad939-92c6-4742-9c44-61ab56af4d85":{"spaceId":"147e4659-a77c-4761-a2ee-c44321dcadb4","isPersonalSpace":false,"spaceName":"production-aws-tsl"}}
[ELECTRON-SYNC-STORE]: 2023-11-07T20:32:23.203Z - select-space-store ~ ipcListen
[ELECTRON-SYNC-STORE]: 2023-11-07T20:32:23.204Z - startup-store ~ ElectronSyncStore:initialize, path C:\Users\ivans\AppData\Roaming\Lens\extension-store\lenscloud-lens-extension\startup-store.json
[ELECTRON-SYNC-STORE]: 2023-11-07T20:32:23.204Z - startup-store ~ ElectronSyncStore:initialize, model {"skipSignup":false}
[ELECTRON-SYNC-STORE]: 2023-11-07T20:32:23.204Z - startup-store ~ ipcListen
telemetry main extension activated
info:    Γû¬ [PREFERENCES-STORE]: LOADING ... +65ms
info:    Γû¬ [PREFERENCES-STORE]: LOADED from C:\Users\ivans\AppData\Roaming\Lens\extension-store\telemetry-lens-extension\preferences-store.json +1ms
info:    Γû¬ [LOCAL-METADATA-STORE]: LOADING ... +36ms
info:    Γû¬ [LOCAL-METADATA-STORE]: LOADED from C:\Users\ivans\AppData\Roaming\Lens\extension-store\lenscloud-lens-extension\local-metadata-store.json +1ms
info:    Γû¬ [RELEASE-NOTES-STORE]: LOADING ... +1ms
info:    Γû¬ [RELEASE-NOTES-STORE]: LOADED from C:\Users\ivans\AppData\Roaming\Lens\extension-store\lenscloud-lens-extension\release-notes-store.json +0ms
info:    Γû¬ [END-OF-TRIAL-STORE]: LOADING ... +1ms
info:    Γû¬ [END-OF-TRIAL-STORE]: LOADED from C:\Users\ivans\AppData\Roaming\Lens\extension-store\lenscloud-lens-extension\end-of-trial-store.json +0ms
info:    Γû¬ [GRACE-PERIOD-STORE]: LOADING ... +1ms
info:    Γû¬ [GRACE-PERIOD-STORE]: LOADED from C:\Users\ivans\AppData\Roaming\Lens\extension-store\lenscloud-lens-extension\grace-period-store.json +1ms
info:    Γû¬ [SPACES-SETTINGS-STORE]: LOADING ... +0ms
info:    Γû¬ [SPACES-SETTINGS-STORE]: LOADED from C:\Users\ivans\AppData\Roaming\Lens\extension-store\lenscloud-lens-extension\spaces-settings-store.json +1ms
info:    Γû¬ [LENS-SPACES-EXTENSION]: 11/7/2023, 12:32:23 PM Broadcasted spaces change to SpacesListener on renderer +48ms
warn:    Γû¬ [LENS-SPACES-EXTENSION]: 11/7/2023, 12:32:23 PM No spaces in SpaceSyncer disposeSpacesReaction, not changing selected space. +1ms
info:    Γû¬ [LENS-SPACES-EXTENSION]: 11/7/2023, 12:32:23 PM Lens Spaces Extension activated +4ms
info:    Γû¬ [LENS-SPACES-EXTENSION]: 11/7/2023, 12:32:23 PM [LENS-SPACES-EXTENSION] Registering cli +0ms
info:    Γû¬ [CLI] Registered command undefined teamwork +8ms
info:    Γû¬ [CLI] Registered command teamwork get-exec-credential <spaceName> <clusterId> +0ms
info:    Γû¬ [CLI] Registered command undefined clusters +1ms
info:    Γû¬ [CLI] Registered command clusters ls +0ms
info:    Γû¬ [CLI] Registered command clusters show <name> +0ms
info:    Γû¬ [CLI] Registered command clusters connect <name> +0ms
info:    Γû¬ [CLI] Registered command clusters disconnect <name> +0ms
info:    Γû¬ [CREATE-ELECTRON-WINDOW]: Window "splash" loaded +15ms
info:    Γû¬ [LENS-SECURITY] activated +43ms
info:    Γû¬ [LENS-SPACES-EXTENSION]: 11/7/2023, 12:32:23 PM loading remote spaces +205ms
info:    Γû¬ [LENS-SPACES-EXTENSION]: 11/7/2023, 12:32:23 PM Remote Spaces loaded +221ms
info:    Γû¬ [LENS-SPACES-EXTENSION]: 11/7/2023, 12:32:23 PM Broadcasted spaces change to SpacesListener on renderer +1ms
info:    Γû¬ [LENS-SPACES-EXTENSION]: 11/7/2023, 12:32:23 PM isLensCloudStatusOk on initialization returns true +80ms
info:    Γû¬ [LENS-SPACES-EXTENSION]: (from:TokenRefresher) 11/7/2023, 12:32:23 PM Detect token expires in 28732s (28732076.999902725ms), set refresh interval. +42ms
info:    Γû¬ [LENS-SPACES-EXTENSION]: (from:TokenRefresher) 11/7/2023, 12:32:23 PM Start token refresh iterator... scheduled next refresh 11/7/2023, 8:21:41 PM +0ms
info:    Γû¬ [LENS-SPACES-EXTENSION]: 11/7/2023, 12:32:26 PM Starting syncSpaceInterval... +3s

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.

mfarahy commented 8 months ago

I also have this issue.

image

OS: Windows 11 Lens Version: image