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

Top comments (0)