DEV Community

Diego Carrasco Gubernatis
Diego Carrasco Gubernatis

Posted on • Originally published at diegocarrasco.com on

Fixed: When using Jupyter on WSL2 on Windows 11 I get "Kernel won't start", and throws "Permissions assignment failed for...

Error

Kernel won't start, throws "Permissions assignment failed for secure file" error

Error in WSL2 on Windows 11

RuntimeError: Permissions assignment failed for secure file: '/home/d-carrasco/.local/share/jupyter/runtime/jpserver-12836.json'. Got '0o677' instead of '0o0600'.

How to fix

  1. Terminate your Notebook server.

  2. Run export JUPYTER_RUNTIME_DIR=/tmp on your WSL2 terminal.

  3. Start Notebook server as you normally do. (Note that this assumes you're not already setting the runtime directory in some other fashion).

(source: https://github.com/jupyter/notebook/issues/5058#issuecomment-554687632)

Reference

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay