Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A JavaScript error occurred in the main process(help me #8107

Open
theCatBoyL opened this issue Oct 12, 2024 · 6 comments
Open

A JavaScript error occurred in the main process(help me #8107

theCatBoyL opened this issue Oct 12, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@theCatBoyL
Copy link

Describe the bug
A clear and concise description of what the bug is.
image

To Reproduce
Steps to reproduce the behavior:

  1. Download the original version of lens (latest)
  2. A JavaScript error occurred in the main process
  3. There is no this file/Users/climber /. K8slens/cli. The sock
  4. See error
    Uncaught Exception:
    Error: listen EACCES: permission denied /Users/climber/.k8slens/cli.sock
    at Server.setupListenHandle [as _listen2] (node:net:1882:21)
    at listenInCluster (node:net:1961:12)
    at Server.listen (node:net:2080:5)
    at /Applications/Lens 2.app/Contents/Resources/app.asar/node_modules/@hapi/hapi/lib/core.js:336:31
    at new Promise ()
    at module.exports.internals.Core._listen (/Applications/Lens 2.app/Contents/Resources/app.asar/node_modules/@hapi/hapi/lib/core.js:313:16)
    at module.exports.internals.Core._start (/Applications/Lens 2.app/Contents/Resources/app.asar/node_modules/@hapi/hapi/lib/core.js:287:24)
    at async run (/Applications/Lens 2.app/Contents/Resources/app.asar/node_modules/@lensapp/cli-lens-extension/dist/main.js:317:17)
    at async instantiate (/Applications/Lens 2.app/Contents/Resources/app.asar/node_modules/@lensapp/run-many/dist/index.js:131:5)
    at async Promise.all (index 6)

Environment (please complete the following information):

  • Lens Version: Lens: 2024.9.300059-latest
    Electron: 31.6.0
    Chrome: 126.0.6478.234
    Node: 20.17.0
    © 2024 Mirantis, Inc.
  • OS:mac os 2 GHz 四核Intel Core i5
  • Installation method (e.g. snap or AppImage in Linux):

image

Uploading image.png…

@theCatBoyL theCatBoyL added the bug Something isn't working label Oct 12, 2024
@sangbui1211
Copy link

the same issue on my screen

@theCatBoyL
Copy link
Author

the same issue on my screen

bro,how to fix this problem,do you have other suitable version ?

@theCatBoyL
Copy link
Author

ok,i had fixed this err, just give the enough authority (sudo chmod 777 /Users/xxx), try create the dictory by yourself(mkdir -p /Users/xxx/.k8slens) ,and (chmod 755 /Users/xxx/.k8slens), then restart the app, that's ok !!!

@clrothmann
Copy link

clrothmann commented Oct 14, 2024

Thank you all for your feedback. We are aware of this issue, and it will be addressed in an upcoming patch release. @theCatBoyL's workaround perfectly outlines the root cause, and in the meantime, you can use it as a temporary solution until the fix is available. We appreciate your patience!

@theCatBoyL
Copy link
Author

Thank you all for your feedback. We are aware of this issue, and it will be addressed in an upcoming patch release. @youDoned's workaround perfectly outlines the root cause, and in the meantime, you can use it as a temporary solution until the fix is available. We appreciate your patience!

it’s my honor, i love the app!

@sangbui1211
Copy link

Alternatively, you can use the following command for the terminal:
kubectl exec -it {pod-name} -n {namespace} -- /bin/sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants