Lens fail to start on vnc

When running lens via vnc, whenever starting the lens image, it opens up the node interpreter instead of lens application. When running with DEBUG=true, the following logs are observed

  • ‘[’ -z ‘’ ‘]’
  • trap atexit EXIT
  • isEulaAccepted=1
  • ‘[’ -z /home/user/Downloads/OpenLens-6.5.2-366.x86_64.AppImage ‘]’
  • atexit
  • ‘[’ 1 == 1 ‘]’
  • ‘[’ 0 -eq 0 ‘]’
  • exec /tmp/.mount_OpenLe3ke4vQ/open-lens
    Welcome to Node.js v16.17.1.
    Type “.help” for more information.

Hello @rodion-lim-partior , thank you for reaching out to lens forums! i will update our development team about your issue!

1 Like

@rodion-lim-partior I see you are using an old OpenLens version which is not supported anymore. Did you test also with latest Lens Desktop version from https://k8slens.dev?

Hi @jakolehm, I’m getting the same error. Please find the stdout:
~/Downloads$ ./Lens-2024.4.230844-latest.x86_64.AppImage
Welcome to Node.js v18.17.1.
Type “.help” for more information.

Could you check if there is ELECTRON_RUN_AS_NODE environment variable set? If yes, please try to unset it before starting the AppImage.

@jakolehm, that fixed the problem. Thank you very much.

1 Like