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
Terminate your Notebook server.
Run
export JUPYTER_RUNTIME_DIR=/tmp
on your WSL2 terminal.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)
Top comments (0)