lens icon indicating copy to clipboard operation
lens copied to clipboard

Lens could not get the logs

Open sunset535 opened this issue 6 months ago • 17 comments

Image

error: Failed to load pods for tab: Failed to GET "****/pods?limit=500": Internal Server Error (500)

sunset535 avatar Jun 11 '25 01:06 sunset535

Dear @sunset535

Thanks for reporting a bug. We are working on your issue. Stand by for further updates.

Warm regards, Oleksandr from Lens

koshevka avatar Jun 11 '25 07:06 koshevka

I have no idea where to start resolving this issue, and I can't find this error in the logs.

sunset535 avatar Jun 12 '25 01:06 sunset535

@sunset535 may I ask you to check if logs work from kubectl?

koshevka avatar Jun 13 '25 11:06 koshevka

@sunset535 may I ask you to check if logs work from kubectl?

yes , its ok use kubectl in terminal

sunset535 avatar Jun 16 '25 02:06 sunset535

Image i get the log

sunset535 avatar Jun 16 '25 03:06 sunset535

Image

sunset535 avatar Jun 16 '25 04:06 sunset535

Hi @sunset535, thank you for reporting the issue! I can see a warning icon on your screenshot. Can you please hover over it and post the content of the info text? Other than that I can see you are not on the current stable version of Lens. Can you please update and tell us if the issue is still present?

clrothmann avatar Jun 17 '25 09:06 clrothmann

Image

Image my lens has update the lastest version

sunset535 avatar Jun 17 '25 12:06 sunset535

@sunset535 may I ask you to try to update Lens to the latest version 2025.6.261308 and let us know the result, please? As I can see, you're using 2025.6.21515

koshevka avatar Jul 08 '25 10:07 koshevka

it's not working

sunset535 avatar Jul 29 '25 12:07 sunset535

Image

sunset535 avatar Jul 29 '25 12:07 sunset535

Same in Lens: 2025.8.121212-latest. So annoying to restart 10-20 times per day.

roman-parkhunovskyi avatar Sep 02 '25 14:09 roman-parkhunovskyi

Yes, same here. every time I restart a deployment and a new pod was created I cannot access the logs of the new pod without restarting Lens.

Lens: 2025.8.121212-latest
Electron: 35.4.0
Chrome: 134.0.6998.205
Node: 22.15.0

yss14 avatar Sep 10 '25 08:09 yss14

Same issue - i have to restart Lens (on mac) 5 times a day or so as it fails to get logs for every pod I attempt to view logs for. For some reason the restart each time makes it work for a little longer.

fleetwoodstack avatar Oct 21 '25 14:10 fleetwoodstack

Same issue here.

from the log:

Tried to inject non-registered injectable "f8b029fa-5ede-4bd4-b89f-1b124d030da8:0ff843767bf8d05b4acfb4ea686584cf:/api/pods" 
-> "start-application" -> ... -> "kube-json-api" -> "create-kube-json-api" -> "legacy-fetch" -> "node-fetch-fetch"
  1. Initially, Lens works fine and can display pod logs
  2. After ~5 hours of running (based on timestamps in my logs from 05:24 to 08:45), the dependency injection system starts failing
  3. The failure affects multiple Kubernetes API endpoints, including: ◦ /api/pods/log (pod logs) ◦ /api/v1/events ◦ /apis/apiextensions.k8s.io/v1/customresourcedefinitions ◦ Various other watchers
  4. Pattern: The watch connections keep retrying every 5 seconds but consistently fail with the same injection error

This appears to be a memory/lifecycle management issue in Lens Desktop where: • Injectable dependencies (like the API client for fetching pod logs) get improperly disposed or unregistered • The app continues trying to use these dependencies, causing the failures

Hoping for a fix soon.

Thanks

pezzking avatar Oct 23 '25 05:10 pezzking

+1

Preen avatar Nov 12 '25 12:11 Preen

Any solution? Seems like this issue is outstanding for long time. Macbook M2 Pro

Lens: 2025.10.230725-latest Electron: 38.2.2 Chrome: 140.0.7339.133 Node: 22.19.0

diljot-mutti avatar Nov 21 '25 20:11 diljot-mutti