Describe the bug
Dear lens develop team:
I updated my lens app to ver 4.0.0.
but I can't find pod logs and terminal button.
Screenshots

Environment (please complete the following information):
Hi,
I have the same problem about pod logs on windows 10 desktop.
detailed screenshots in attachment.
Logs and terminal buttons are now run as extensions and it seems that those are not loaded properly on your environment. If you open Developer tools (View / Toggle Developer Tools), do you see this line in the console:
info: [EXTENSION]: enabled [email protected]
Or do you see any errors there?
Thanks for your reply.
yes, I saw an error in the console:

@nevalla
Thanks for your reply!
Yes, there are a lot of errors, and some of them is about "lens-pod-menu":
extension-loader.ts:282 [EXTENSIONS-LOADER]: can't load extension main at C:\Users\AAbdullinov\AppData\Roaming\Lens\node_modules\lens-pod-menu\dist\renderer.js: Error: Cannot find module 'C:\Users\AAbdullinov\AppData\Roaming\Lens\node_modules\lens-pod-menu\dist\renderer.js'
Require stack:
- electron/js2c/renderer_init Object
value @ Lens.js:2
extension-loader.ts:283 Error: Cannot find module 'C:\Users\AAbdullinov\AppData\Roaming\Lens\node_modules\lens-pod-menu\dist\renderer.js'
Require stack:
- electron/js2c/renderer_init
at Module._resolveFilename (internal/modules/cjs/loader.js:797)
at Function.i._resolveFilename (electron/js2c/renderer_init.js:43)
at Module._load (internal/modules/cjs/loader.js:690)
at Function.Module._load (electron/js2c/asar.js:769)
at Module.require (internal/modules/cjs/loader.js:852)
at require (internal/modules/cjs/helpers.js:74)
at e.value (extension-loader.ts:279)
at extension-loader.ts:245
at extension-loader.ts:244
at Be (mobx.module.js:928)
value @ Lens.js:2
@pydr if you go into /home/dev/snap/kontena-lens/144/.config/Lens/node_modules/lens-pod-menu/ do you see dist folder and renderer.js in dist?
Hello @nevalla .
I checked this dir, but there is no any file.
cd /home/dev/snap/kontena-lens/144/.config/Lens/node_modules/lens-pod-menu/
cd: no such file or directory: /home/dev/snap/kontena-lens/144/.config/Lens/node_modules/lens-pod-menu/
ll /home/dev/snap/kontena-lens/144/.config/Lens/node_modules
total 0
I'm Homebrew and same issue. Just as I was loving it :-(
$ brew info lens
lens: 4.0.0
https://k8slens.dev/
/usr/local/Caskroom/lens/4.0.0 (118B)
From: https://github.com/Homebrew/homebrew-cask/blob/HEAD/Casks/lens.rb
==> Name
Lens
==> Description
Kubernetes IDE
==> Artifacts
Lens.app (App)
==> Analytics
install: 1,447 (30 days), 5,275 (90 days), 11,380 (365 days)
On Mac I fixed it by renaming /Users/myusername/Library/Application Support/Lens to _Lens (so we have a backup)
Remove the application completely, redownloading it, reinstalling it.
Could someone start Lens from command line using LOG_LEVEL=debug, see https://docs.k8slens.dev/v4.0.1/faq/#how-can-i-see-more-verbose-logs for more details.
Hey @jakolehm .
Thanks for your reply.
I ran lens app with debug mode, and I got some logs:
➜ ~ LOG_LEVEL=debug /snap/kontena-lens/145/kontena-lens
info: 🚀 Starting Lens from "/home/dev/.config/Lens"
warn: APPIMAGE env is not defined, current application is not an AppImage
STORE MIGRATION (/home/dev/.config/Lens/config.json): 2.1.0-beta.4
info: [STORE]: LOADED from /home/dev/.config/Lens/config.json
STORE MIGRATION (/home/dev/.config/Lens/lens-cluster-store.json): 2.0.0-beta.2
STORE MIGRATION (/home/dev/.config/Lens/lens-cluster-store.json): 2.4.1
STORE MIGRATION (/home/dev/.config/Lens/lens-cluster-store.json): 2.6.0-beta.2
STORE MIGRATION (/home/dev/.config/Lens/lens-cluster-store.json): 2.6.0-beta.3
STORE MIGRATION (/home/dev/.config/Lens/lens-cluster-store.json): 2.7.0-beta.0
STORE MIGRATION (/home/dev/.config/Lens/lens-cluster-store.json): 2.7.0-beta.1
STORE MIGRATION (/home/dev/.config/Lens/lens-cluster-store.json): 3.6.0-beta.1
STORE MIGRATION (/home/dev/.config/Lens/lens-cluster-store.json): 4.0.1
info: [STORE]: LOADED from /home/dev/.config/Lens/lens-cluster-store.json
info: [STORE]: LOADED from /home/dev/.config/Lens/lens-workspace-store.json
info: [STORE]: LOADED from /home/dev/.config/Lens/lens-extensions.json
info: [STORE]: LOADED from /home/dev/.config/Lens/lens-filesystem-provisioner-store.json
debug: Lookup new free port..
debug: New port found: 43209
info: LensProxy server has started at http://localhost:43209
debug: [EXTENSIONS-LOADER]: load on main
info: [EXTENSION-DISCOVERY] watching extension add/remove in /home/dev/.k8slens/extensions
info: [EXTENSION-DISCOVERY] loading extensions from /home/dev/.config/Lens
debug: [EXTENSION-DISCOVERY]: 6 extensions loaded {"folderPath":"/home/dev/.config/Lens/extensions","extensions":[{"id":"/home/dev/.config/Lens/node_modules/kube-object-event-status/package.json","absolutePath":"/home/dev/.config/Lens/extensions/kube-object-event-status","manifestPath":"/home/dev/.config/Lens/node_modules/kube-object-event-status/package.json","manifest":{"name":"kube-object-event-status","version":"0.1.0","description":"Adds kube object status from events","renderer":"dist/renderer.js","lens":{"metadata":{},"styles":[]},"scripts":{"build":"webpack --config webpack.config.js","dev":"npm run build --watch","test":"echo NO TESTS"},"dependencies":{},"devDependencies":{"@k8slens/extensions":"file:../../src/extensions/npm/extensions","ts-loader":"^8.0.4","typescript":"^4.0.3","webpack":"^4.44.2","mobx":"^5.15.5","react":"^16.13.1"}},"isBundled":true,"isEnabled":true},{"id":"/home/dev/.config/Lens/node_modules/lens-license/package.json","absolutePath":"/home/dev/.config/Lens/extensions/license-menu-item","manifestPath":"/home/dev/.config/Lens/node_modules/lens-license/package.json","manifest":{"name":"lens-license","version":"0.1.0","description":"License menu item","main":"dist/main.js","scripts":{"build":"webpack -p","dev":"webpack --watch","test":"jest --passWithNoTests --env=jsdom src $@"},"dependencies":{},"devDependencies":{"@k8slens/extensions":"file:../../src/extensions/npm/extensions","@types/webpack":"^4.41.17","jest":"^26.6.3","mobx":"^5.15.5","react":"^16.13.1","ts-loader":"^8.0.4","ts-node":"^9.0.0","typescript":"^4.0.3","webpack":"^4.44.2"}},"isBundled":true,"isEnabled":true},{"id":"/home/dev/.config/Lens/node_modules/lens-metrics-cluster-feature/package.json","absolutePath":"/home/dev/.config/Lens/extensions/metrics-cluster-feature","manifestPath":"/home/dev/.config/Lens/node_modules/lens-metrics-cluster-feature/package.json","manifest":{"name":"lens-metrics-cluster-feature","version":"0.1.0","description":"Lens metrics cluster feature","renderer":"dist/renderer.js","lens":{"metadata":{},"styles":[]},"scripts":{"build":"webpack --config webpack.config.js","dev":"npm run build --watch","test":"jest --passWithNoTests --env=jsdom src $@"},"dependencies":{"semver":"^7.3.2"},"devDependencies":{"@k8slens/extensions":"file:../../src/extensions/npm/extensions","jest":"^26.6.3","mobx":"^5.15.5","react":"^16.13.1","ts-loader":"^8.0.4","typescript":"^4.0.3","webpack":"^4.44.2"}},"isBundled":true,"isEnabled":true},{"id":"/home/dev/.config/Lens/node_modules/lens-node-menu/package.json","absolutePath":"/home/dev/.config/Lens/extensions/node-menu","manifestPath":"/home/dev/.config/Lens/node_modules/lens-node-menu/package.json","manifest":{"name":"lens-node-menu","version":"0.1.0","description":"Lens node menu","renderer":"dist/renderer.js","lens":{"metadata":{},"styles":[]},"scripts":{"build":"webpack --config webpack.config.js","dev":"npm run build --watch","test":"jest --passWithNoTests --env=jsdom src $@"},"dependencies":{},"devDependencies":{"@k8slens/extensions":"file:../../src/extensions/npm/extensions","jest":"^26.6.3","mobx":"^5.15.5","react":"^16.13.1","ts-loader":"^8.0.4","typescript":"^4.0.3","webpack":"^4.44.2"}},"isBundled":true,"isEnabled":true},{"id":"/home/dev/.config/Lens/node_modules/lens-pod-menu/package.json","absolutePath":"/home/dev/.config/Lens/extensions/pod-menu","manifestPath":"/home/dev/.config/Lens/node_modules/lens-pod-menu/package.json","manifest":{"name":"lens-pod-menu","version":"0.1.0","description":"Lens pod menu","renderer":"dist/renderer.js","lens":{"metadata":{},"styles":[]},"scripts":{"build":"webpack --config webpack.config.js","dev":"npm run build --watch","test":"jest --passWithNoTests --env=jsdom src $@"},"dependencies":{},"devDependencies":{"@k8slens/extensions":"file:../../src/extensions/npm/extensions","jest":"^26.6.3","mobx":"^5.15.5","react":"^16.13.1","ts-loader":"^8.0.4","typescript":"^4.0.3","webpack":"^4.44.2"}},"isBundled":true,"isEnabled":true},{"id":"/home/dev/.config/Lens/node_modules/lens-telemetry/package.json","absolutePath":"/home/dev/.config/Lens/extensions/telemetry","manifestPath":"/home/dev/.config/Lens/node_modules/lens-telemetry/package.json","manifest":{"name":"lens-telemetry","version":"0.1.0","description":"Lens telemetry","main":"dist/main.js","renderer":"dist/renderer.js","lens":{"metadata":{},"styles":[]},"scripts":{"build":"webpack -p","dev":"webpack --watch","test":"jest --passWithNoTests --env=jsdom src $@"},"dependencies":{},"devDependencies":{"@k8slens/extensions":"file:../../src/extensions/npm/extensions","@types/analytics-node":"^3.1.3","analytics-node":"^3.4.0-beta.3","jest":"^26.6.3","mobx":"^5.15.5","node-machine-id":"^1.1.12","react":"^16.13.1","ts-loader":"^8.0.4","typescript":"^4.0.3","universal-analytics":"^0.4.23","webpack":"^4.44.2"}},"isBundled":true,"isEnabled":true}]}
debug: [EXTENSION-DISCOVERY]: 0 extensions loaded {"folderPath":"/home/dev/.k8slens/extensions","extensions":[]}
info: [EXTENSION-INSTALLER] installing dependencies at /home/dev/.config/Lens
[EXTENSIONS-LOADER]: can't load extension main at /home/dev/.config/Lens/node_modules/lens-license/dist/main.js: Error: Cannot find module '/home/dev/.config/Lens/node_modules/lens-license/dist/main.js'
Require stack:
- /snap/kontena-lens/145/resources/app.asar/static/build/main.js
- {
extension: {
id: '/home/dev/.config/Lens/node_modules/lens-license/package.json',
absolutePath: '/home/dev/.config/Lens/extensions/license-menu-item',
manifestPath: '/home/dev/.config/Lens/node_modules/lens-license/package.json',
manifest: {
name: 'lens-license',
version: '0.1.0',
description: 'License menu item',
main: 'dist/main.js',
scripts: [Object],
dependencies: {},
devDependencies: [Object]
},
isBundled: true,
isEnabled: true
}
}
Trace: Error: Cannot find module '/home/dev/.config/Lens/node_modules/lens-license/dist/main.js'
Require stack:
- /snap/kontena-lens/145/resources/app.asar/static/build/main.js
-
at Module._resolveFilename (internal/modules/cjs/loader.js:797:17)
at Function.o._resolveFilename (electron/js2c/browser_init.js:281:681)
at Module._load (internal/modules/cjs/loader.js:690:27)
at Function.Module._load (electron/js2c/asar.js:769:28)
at Module.require (internal/modules/cjs/loader.js:852:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Ln.requireExtension (/snap/kontena-lens/145/resources/app.asar/static/build/main.js:1:144605)
at Object.fireImmediately (/snap/kontena-lens/145/resources/app.asar/static/build/main.js:1:144096)
at executeAction (/snap/kontena-lens/145/resources/app.asar/node_modules/mobx/lib/mobx.js:927:19)
at Reaction@81 (/snap/kontena-lens/145/resources/app.asar/node_modules/mobx/lib/mobx.js:914:16) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/snap/kontena-lens/145/resources/app.asar/static/build/main.js',
undefined
]
}
at Ln.requireExtension (/snap/kontena-lens/145/resources/app.asar/static/build/main.js:1:144719)
at Object.fireImmediately (/snap/kontena-lens/145/resources/app.asar/static/build/main.js:1:144096)
at executeAction (/snap/kontena-lens/145/resources/app.asar/node_modules/mobx/lib/mobx.js:927:19)
at Reaction@81 (/snap/kontena-lens/145/resources/app.asar/node_modules/mobx/lib/mobx.js:914:16)
at reactionRunner (/snap/kontena-lens/145/resources/app.asar/node_modules/mobx/lib/mobx.js:2157:13)
at Reaction.onInvalidate (/snap/kontena-lens/145/resources/app.asar/node_modules/mobx/lib/mobx.js:2137:13)
at Reaction.runReaction (/snap/kontena-lens/145/resources/app.asar/node_modules/mobx/lib/mobx.js:1772:26)
at runReactionsHelper (/snap/kontena-lens/145/resources/app.asar/node_modules/mobx/lib/mobx.js:1909:35)
at reactionScheduler (/snap/kontena-lens/145/resources/app.asar/node_modules/mobx/lib/mobx.js:1887:47)
at runReactions (/snap/kontena-lens/145/resources/app.asar/node_modules/mobx/lib/mobx.js:1892:5)
[EXTENSIONS-LOADER]: can't load extension main at /home/dev/.config/Lens/node_modules/lens-telemetry/dist/main.js: Error: Cannot find module '/home/dev/.config/Lens/node_modules/lens-telemetry/dist/main.js'
Require stack:
- /snap/kontena-lens/145/resources/app.asar/static/build/main.js
- {
extension: {
id: '/home/dev/.config/Lens/node_modules/lens-telemetry/package.json',
absolutePath: '/home/dev/.config/Lens/extensions/telemetry',
manifestPath: '/home/dev/.config/Lens/node_modules/lens-telemetry/package.json',
manifest: {
name: 'lens-telemetry',
version: '0.1.0',
description: 'Lens telemetry',
main: 'dist/main.js',
renderer: 'dist/renderer.js',
lens: [Object],
scripts: [Object],
dependencies: {},
devDependencies: [Object]
},
isBundled: true,
isEnabled: true
}
}
Trace: Error: Cannot find module '/home/dev/.config/Lens/node_modules/lens-telemetry/dist/main.js'
Require stack:
- /snap/kontena-lens/145/resources/app.asar/static/build/main.js
-
at Module._resolveFilename (internal/modules/cjs/loader.js:797:17)
at Function.o._resolveFilename (electron/js2c/browser_init.js:281:681)
at Module._load (internal/modules/cjs/loader.js:690:27)
at Function.Module._load (electron/js2c/asar.js:769:28)
at Module.require (internal/modules/cjs/loader.js:852:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Ln.requireExtension (/snap/kontena-lens/145/resources/app.asar/static/build/main.js:1:144605)
at Object.fireImmediately (/snap/kontena-lens/145/resources/app.asar/static/build/main.js:1:144096)
at executeAction (/snap/kontena-lens/145/resources/app.asar/node_modules/mobx/lib/mobx.js:927:19)
at Reaction@81 (/snap/kontena-lens/145/resources/app.asar/node_modules/mobx/lib/mobx.js:914:16) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/snap/kontena-lens/145/resources/app.asar/static/build/main.js',
undefined
]
}
at Ln.requireExtension (/snap/kontena-lens/145/resources/app.asar/static/build/main.js:1:144719)
at Object.fireImmediately (/snap/kontena-lens/145/resources/app.asar/static/build/main.js:1:144096)
at executeAction (/snap/kontena-lens/145/resources/app.asar/node_modules/mobx/lib/mobx.js:927:19)
at Reaction@81 (/snap/kontena-lens/145/resources/app.asar/node_modules/mobx/lib/mobx.js:914:16)
at reactionRunner (/snap/kontena-lens/145/resources/app.asar/node_modules/mobx/lib/mobx.js:2157:13)
at Reaction.onInvalidate (/snap/kontena-lens/145/resources/app.asar/node_modules/mobx/lib/mobx.js:2137:13)
at Reaction.runReaction (/snap/kontena-lens/145/resources/app.asar/node_modules/mobx/lib/mobx.js:1772:26)
at runReactionsHelper (/snap/kontena-lens/145/resources/app.asar/node_modules/mobx/lib/mobx.js:1909:35)
at reactionScheduler (/snap/kontena-lens/145/resources/app.asar/node_modules/mobx/lib/mobx.js:1887:47)
at runReactions (/snap/kontena-lens/145/resources/app.asar/node_modules/mobx/lib/mobx.js:1892:5)
info: [STORE]: SAVING /home/dev/.config/Lens/config.json
^Cinfo: APP:QUIT
info: SERVICE:QUIT
4.0.3 will likely have better error handling so we then should be able to see the actual root cause / error for this.
here is a debug log from Windows 10
`console.js:124 info: [STORE]: LOADED from C:\Users\MyUsername\AppData\Roaming\Lens\config.json
console.js:124 info: [STORE]: LOADED from C:\Users\MyUsername\AppData\Roaming\Lens\lens-workspace-store.json
console.js:124 info: [STORE]: LOADED from C:\Users\MyUsername\AppData\Roaming\Lens\lens-cluster-store.json
console.js:124 info: [STORE]: LOADED from C:\Users\MyUsername\AppData\Roaming\Lens\lens-extensions.json
console.js:124 info: [STORE]: LOADED from C:\Users\MyUsername\AppData\Roaming\Lens\lens-filesystem-provisioner-store.json
console.js:124 info: [WORKSPACE-STORE] requesting initial state sync
console.js:124 info: [CLUSTER-STORE] requesting initial state sync
console.js:124 info: [CLUSTER-STORE] start to listen (1)
console.js:124 info: [WORKSPACE-STORE] starting to listen state events
extension-loader.ts:282 [EXTENSIONS-LOADER]: can't load extension main at C:\Users\MyUsername\AppData\Roaming\Lens\node_modules\kube-object-event-statusdistrenderer.js: Error: Cannot find module 'C:\Users\MyUsername\AppData\Roaming\Lens\node_modules\kube-object-event-statusdistrenderer.js'
Require stack:
Thanks for the logs. I think we need to wait until 4.0.3 to get the actual error.
Until 4.0.3 is released, is there a way to disable auto updates for 3.6.9? That was the last version that worked for me, but every time I shut down, it automatically upgrades to 4.0.1. Very frustrating.
I'd like to echo frustration. These capabilities render the product far less useful, and this should be mitigated within a day and corrected in short order -- instead we're a week on. There are people supporting critical systems, and not being able to restore this feature set without using a workaround outside the software's capabilities is pants.
Yep, same situation. Looking to downgrade :)
We are having trouble reproducing the issue, not everyone is experiencing it. In the mean time I believe the workaround suggested by @stijlbreuk above should work, though you may have to add back your clusters after. The corresponding path on Linux is ~/.config/Lens, and on Windows is C:\Users\myusername\AppData\Roaming\Lens
The workaround specified above does not work for me. I removed the AppData\Roaming\Lens folder, uninstalled Lens 3.6.9. Downloaded Lens 4.0.2 and the problem is still present. My only workaround is to install 3.6.9 and to never shut it off, otherwise it automatically updates to 4.0.2 and the problem. returns.
I finally managed to reproduce this by doing a fresh install of Lens 4.0.2 in offline mode. It seems that one in-tree extension wants to pull "semver" dependency from network and that causes problems if internet connection is down (or blocked by firewall).
The workaround for macOS users:
You can now start / stop Lens and not worry about an automagic update you can't disable -- feature request?
You can now start / stop Lens and not worry about an automagic update you can't disable -- feature request?
This is tracked in #1768
I finally managed to reproduce this by doing a fresh install of Lens 4.0.2 in offline mode. It seems that one in-tree extension wants to pull "semver" dependency from network and that causes problems if internet connection is down (or blocked by firewall).
One can never assume the network is reliable and things will work in order as expected. For instance, if I install an update, Little Snitch will block it from outbound comms until I allow it. I imagine that will have a high tendency to disrupt the order in which these things happen.
That said, I did restore and reinstall a couple times with no success.
@jhcook agreed, relying to an external service is a bug. It's just really difficult sometimes to spot these kind of bugs.
I see that this issue is "fixed" in v4.0.3, but logs and terminal button are still not available. If this is closed, what's the solution? This wasn't a problem before v4.0.0.
Also, I get the following error when opening 4.0.3:

Most helpful comment
Until 4.0.3 is released, is there a way to disable auto updates for 3.6.9? That was the last version that worked for me, but every time I shut down, it automatically upgrades to 4.0.1. Very frustrating.