Lens isn't opening

Hello. What’s the problem?

Hi @maxpain177,
Thanks a lot for reaching out and sharing the screenshot — we’re happy to help get Lens working for you again.

To better understand what might be going wrong, we’d appreciate a few more details:

  • Which version of Lens are you using?
  • What is your operating system?
  • Did this issue start after an update of Lens?

It would also be super helpful if you could try launching Lens from the terminal and then share any messages or errors that appear there. That information can give us important clues about what’s happening.

Hey there! Same was happening to me, did not have proper time to find the real issue, seems something with lens not able to validate my license.
I use snap to install, ( my version 2025.5.81206-latest)

my fix:
ps aux | grep lens | awk ‘{print $2}’ | xargs kill -9
rm -r ~/snap/kontena-lens/
kontena-lens & (or just open lens one more time)

Hope it helps.
regards

OS: Macos Version 15.5 (24F74) intel

  1. v2025.6.21515-latest
  2. macOS
  3. No
info:    ▪ Starting v2025.6.21515-latest of Lens... +3ms
info:    ▪ [BASE-STORE]: saving /Users/maxpain/Library/Application Support/Lens/lens-user-store.json... +17ms
info:    ▪ [LOCAL-STORAGE]: initialized +12ms
info:    ▪ 🔌 Starting LensProxy +11ms
info:    ▪ [BASE-STORE]: saving /Users/maxpain/Library/Application Support/Lens/lens-cluster-store.json... +8ms
info:    ▪ [INTERNAL-PROXY-MAIN]: Proxy server has started at 127.0.0.1:61263 +9ms
info:    ▪ 🔎 Testing LensProxy connection ... +0ms
(node:7163) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 removal-of-state listeners added to [IpcMainImpl]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
(Use `Lens --trace-warnings ...` to show where the warning was created)
(node:7163) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 removal-of-state-with-prefix listeners added to [IpcMainImpl]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
(node:7163) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 changes-of-state listeners added to [IpcMainImpl]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
info:    ▪ ⚡ LensProxy connection OK +20ms
warn:    ▪ [LENS-CORE-MAIN]: Excluded expired certificate: -----BEGIN CERTIFICATE-----REDACTED-----END CERTIFICATE-----
 +2ms
warn:    ▪ [LENS-CORE-MAIN]: Excluded expired certificate: -----BEGIN CERTIFICATE-----REDACTED-----END CERTIFICATE-----
 +0ms
warn:    ▪ [LENS-CORE-MAIN]: Excluded expired certificate: -----BEGIN CERTIFICATE-----REDACTED-----END CERTIFICATE-----
 +1ms
warn:    ▪ [LENS-CORE-MAIN]: Excluded expired certificate: -----BEGIN CERTIFICATE-----REDACTED-----END CERTIFICATE-----
 +1ms
warn:    ▪ [LENS-CORE-MAIN]: Excluded a total of 4 certificates +1ms
info:    ▪ [RUN-MANY-PERFORMANCE-LOGGING]: Running runnables for "before-application-is-loading-injection-token" took 84.06 ms.

Individual runnables took:
- lens-core-main:setup-system-ca                           	82.12 ms
- internal-proxy-main:run-setup-lens-proxy                 	78.01 ms
- cluster-common:storage-initialization                    	55.88 ms
- lens-core-main:setup-cluster-state-broadcasting          	55.86 ms
- local-storage-feature:run-initialization-of-local-storage	30.81 ms
- user-preferences:storage-initialization                  	26.37 ms
- messaging:start-listening-of-channels                    	0.47 ms
- lens-core-main:log-version-on-start                      	0.14 ms  +0ms
[7163:0606/225709.114310:ERROR:platform_util_mac.mm(258)] Unable to set login item: The operation couldn’t be completed. Operation not permitted
info:    ▪ 📟 Setting protocol client for lens:// +13ms
info:    ▪ 📟 Protocol client register succeeded ✅ +0ms
info:    ▪ [BASE-STORE]: saving /Users/maxpain/Library/Application Support/Lens/lens-filesystem-provisioner-store.json... +1ms
info:    ▪ 🐚 Syncing shell environment +6ms
info:    ┏ [UNIX-SHELL-ENV]: running against /bin/zsh +0ms
info:    ┃ [1] {
info:    ┃ [2]   command: ` '/Applications/Lens.app/Contents/MacOS/Lens' -p '"9e6a4df681fd4745bfa9d4762ff43ab1" + JSON.stringify(process.env) + "9e6a4df681fd4745bfa9d4762ff43ab1"'`,
info:    ┃ [3]   shellArgs: [ '-l', '-i' ]
info:    ┗ [4] }
info:    ▪ [CREATE-ELECTRON-WINDOW]: Loading content for window "splash" from file: /Applications/Lens.app/Contents/Resources/app.asar/static/splash.html... +50ms
info:    ▪ [RUN-MANY-PERFORMANCE-LOGGING]: Running runnables for "after-window-is-opened" took 18.88 ms.

Individual runnables took:
- lens-core-main:show-dock-for-first-opened-window	0.1 ms +17ms
info:    ▪ [RUN-MANY-PERFORMANCE-LOGGING]: Running runnables for "after-window-is-opened" took 2.52 ms.

Individual runnables took:
- lens-core-main:show-dock-for-first-opened-window	0.1 ms +0ms
info:    ▪ [TOKEN-REFRESHER]: forceRefresh() refreshing tokens... +41ms
info:    ▪ [CREATE-ELECTRON-WINDOW]: Window "splash" loaded +17ms
info:    ▪ [SHELL-SYNC]: Synced shell env +13ms
info:    ▪ 🧩 Initializing extensions +1ms
info:    ▪ [EXTENSIONS-LOADER]: auto initializing extensions +0ms
info:    ▪ [LENS-DESKTOP-KUBE] onActivate +142ms
info:    ▪ [BASE-STORE]: saving /Users/maxpain/Library/Application Support/Lens/extension-store/lens-desktop-kube-lens-extension/ldk-store.json... +1ms
info:    ▪ [BASE-STORE]: saving /Users/maxpain/Library/Application Support/Lens/extension-store/oci-image-lens-extension/security-preferences-store.json... +27ms
error:   ┏ [LENS-DESKTOP-KUBE] Failed to check lima folder: ENOENT: no such file or directory, access '/Users/maxpain/.k8slens/lima' +8ms
error:   ┃ [ 1] Error: ENOENT: no such file or directory, access '/Users/maxpain/.k8slens/lima'
error:   ┃ [ 2]     at async Object.access (node:internal/fs/promises:600:10)
error:   ┃ [ 3]     at async LocalDevClusterMainExtension.shouldDisableExtension (/Applications/Lens.app/Contents/Resources/app.asar/node_modules/@lensapp/lens-desktop-kube-lens-extension/dist/main.js:2:2303373)
error:   ┃ [ 4]     at async LocalDevClusterMainExtension.onActivate (/Applications/Lens.app/Contents/Resources/app.asar/node_modules/@lensapp/lens-desktop-kube-lens-extension/dist/main.js:2:2297209)
error:   ┃ [ 5]     at async Promise.all (index 0)
error:   ┃ [ 6]     at async ExtensionLoader.loadExtensions (/Applications/Lens.app/Contents/Resources/app.asar/node_modules/@lensapp/core-common/dist/index.js:1919:5)
error:   ┃ [ 7]     at async run (/Applications/Lens.app/Contents/Resources/app.asar/node_modules/@lensapp/core-main/dist/index.js:453:7)
error:   ┃ [ 8]     at async instantiate (/Applications/Lens.app/Contents/Resources/app.asar/node_modules/@lensapp/run-many/dist/index.js:210:5)
error:   ┃ [ 9]     at async Promise.all (index 16)
error:   ┃ [10]     at async runMany (/Applications/Lens.app/Contents/Resources/app.asar/node_modules/@lensapp/run-many/dist/index.js:231:9)
error:   ┃ [11]     at async instantiate (/Applications/Lens.app/Contents/Resources/app.asar/node_modules/@lensapp/application/dist/index.js:90:5)
error:   ┗ [12] { errno: -2, code: 'ENOENT', syscall: 'access', path: '/Users/maxpain/.k8slens/lima' }
info:    ▪ [LENS-SECURITY] activated +2ms
info:    ▪ [LENS-DESKTOP-KUBE] extracting virtual machine runtime files ... +0ms
info:    ▪ [RUN-MANY-PERFORMANCE-LOGGING]: Running runnables for "on-load-of-application" took 378.25 ms.

Individual runnables took:
- lens-core-main:initialize-extensions                                      	219.82 ms
- lens-core-main:setup-shell                                                	138.85 ms
- lens-core-main:show-loading                                               	127.35 ms
- lens-id:initialize-lens-cloud-status-store-runnable                       	121.88 ms
- lens-id:initialize-auth-token-store-runnable                              	116.58 ms
- local-storage-feature:write-changed-local-storage                         	76.96 ms
- lens-core-main:setup-deep-linking                                         	65.17 ms
- lens-core-main:setup-developer-tools-in-development-environment           	64.36 ms
- token-refresher:start-token-refresher-on-load                             	52.36 ms
- user-preferences-main-feature:setup-sync-open-at-login-with-os            	10.71 ms
- lens-cluster-status:start-for-update-lens-cloud-status-startable-stoppable	7.88 ms
- lens-core-main:init-file-system-provisioner-store                         	5.46 ms
- lens-core-main:start-tray                                                 	5.14 ms
- token-refresher:start-for-force-token-refresh-startable-stoppable         	2.17 ms
- token-refresher:start-for-lens-cloud-status-update-startable-stoppable    	2.12 ms
- lens-core-main:start-reactive-tray-menu-items                             	1.01 ms
- lens-license:setup-lens-license                                           	1.01 ms
- telemetry-for-cluster-connect-feature:start-tracking-cluster-connections  	0.35 ms
- lens-core-main:start-reactive-tray-menu-icon                              	0.32 ms
- electron-main:start-syncing-theme-from-operating-system                   	0.27 ms
- lens-core-main:start-watching-if-update-should-happen-on-quit             	0.27 ms
- application-menu-main:start-application-menu                              	0.15 ms
- electron-main:setup-quit-on-power-shutdown                                	0.13 ms
- theme-main-feature:setup-system-theme-type-updater-emitter                	0.09 ms
- lens-core-main:setup-ipc-main-handlers                                    	0.09 ms
- lens-core-main:setup-main-window-visibility-after-activation              	0.02 ms
- lens-core-main:setup-intercept-unhandled-exceptions                       	0.01 ms   +39ms
Checking for update
info:    ▪ [CREATE-ELECTRON-WINDOW]: Loading content for window "first-application-window" from url: https://lens.app:61263... +29ms
info:    ▪ [CLUSTER-CONNECT-PROXY]: Starting cluster connect proxy +2ms
info:    ▪ [LENS-CLI-MAIN]: [CLI] Registered command teamwork get-exec-credential <spaceName> <clusterId> +0ms
info:    ▪ [LENS-CLI-MAIN]: [CLI] Registered command undefined teamwork +0ms
info:    ▪ [LENS-CLI-MAIN]: [CLI] Registered command clusters connect <name> +0ms
info:    ▪ [LENS-CLI-MAIN]: [CLI] Registered command clusters disconnect <name> +0ms
info:    ▪ [LENS-CLI-MAIN]: [CLI] Registered command clusters ls +0ms
info:    ▪ [LENS-CLI-MAIN]: [CLI] Registered command clusters show <name> +0ms
info:    ▪ [LENS-CLI-MAIN]: [CLI] Registered command undefined clusters +0ms
info:    ▪ [KUBE-CONFIG-SYNC-MANAGER]: starting requested syncs +5ms
info:    ▪ [RUN-MANY-PERFORMANCE-LOGGING]: Running runnables for "after-window-is-opened" took 7.81 ms.

Individual runnables took:
- lens-core-main:show-dock-for-first-opened-window	3.02 ms +1ms
info:    ▪ [CLUSTER-CONNECT-PROXY]: Proxy started, listening on port 61268 +0ms
info:    ┏ [KUBE-CONFIG-SYNC-MANAGER]: starting sync of file/folder +13ms
info:    ┗ [1] { filePath: '/Users/maxpain/Library/Application Support/Lens/kubeconfigs' }
info:    ┏ [KUBE-CONFIG-SYNC-MANAGER]: starting sync of file/folder +0ms
info:    ┗ [1] { filePath: '/Users/maxpain/.kube' }
info:    ▪ [CREATE-ELECTRON-WINDOW]: Window "first-application-window" loaded +73ms
Update for version 2025.6.21515-latest is not available (latest version: 2025.6.21515-latest, downgrade is disallowed).
info:    ▪ [TOKEN-REFRESHER]: Detect token expires in 28799s (28798996.99997902ms), set refresh interval. +400ms
info:    ▪ [TOKEN-REFRESHER]: Start token refresh iterator... scheduled next refresh 6/7/2025, 6:47:33 AM +1ms
info:    ▪ [TOKEN-REFRESHER]: Successfully got new TokenSet +358ms
info:    ▪ [TOKEN-REFRESHER]: Estimated time difference between client and server is -1 seconds +0ms
info:    ▪ [TOKEN-REFRESHER]: Refresh(). got new tokens.. rescheduled next refresh 6/7/2025, 6:47:33 AM +0ms
info:    ▪ [TOKEN-REFRESHER]: New tokens saved to store... +20ms
warn:    ▪ [RUN-MANY-OF-SLOW-RUNNABLES]: Slow runnable encountered: "lens-core-main:show-initial-window" (after-application-is-loaded-injection-token) +19s

Hmm nothing too suspicious in the logs… Could you try running Lens with

DEBUG=true /Applications/Lens.app/Contents/MacOS/Lens