Closed gabegrand closed 3 months ago
Based on the errors, you do not seem to have access to the following file /afs/csail.mit.edu/u/g/grandg/.local/share/jupyter/runtime/kernel-v2-217919709HhxqFJEeGM.json'
Please can you verify such a directory exists and you have access to this directory /afs/csail.mit.edu/u/g/grandg/.local/share/jupyter/runtime
There is a tilde getting inserted into my paths at kernel start that is causing kernel start to fail downstream.
I'm not seeing these tilde anywhere except in the logs, are you getting this in the error messages as well? Please can you share the error message displayed in your Jupyter notebooks or the like?
Hi @DonJayamanne, thanks so much for the reply!
That directory does exist and I do seem to have permissions to access it.
grandg@align-3:~$ ls -lh /afs/csail.mit.edu/u/g/grandg/.local/share/jupyter/runtime/
total 19K
-rw-rw-r-- 1 grandg grandg 307 Jun 24 17:11 kernel-v2-20380624zD5k0a6M1lI.json
-rw-rw-r-- 1 grandg grandg 307 Jun 24 17:45 kernel-v2-2038062AyeEydJit6ws.json
-rw-rw-r-- 1 grandg grandg 307 Jul 2 10:35 kernel-v2-2139956LErxGG6rjcUE.json
...
However, I will note that the AFS filesystem /afs/csail.mit.edu/
here at MIT has a peculiar custom ACL setup that could easily be the source of this issue:
“Notably, AFS ignores most unix per-file permissions:” The owner bits rwx are applied to anyone who is granted access via the ACL. For most users, this means they can be ignored, with the exception of chmod +x to make something executable. Most ownership is also ignored, with the exception that the owner of a volume (for example, the unix-style owner of /afs/csail/u/e/example) automatically has a access to every subdirectory of the volume.
For this reason, I try not to store anything on /afs/csail.mit.edu
and instead use a local /raid
drive. Unfortunately, /afs/csail.mit.edu/
is configured as the machine's $HOME
directory, which mean I need to manually configure a whole set of Python/Jupyter-related env variables to point to /raid
.
Ideally, the jupyter/runtime/
dir would live on /raid
and not on AFS. I looked around extensively but wasn't able to determine which env variable to set to configure this -- do you know?
Just to follow up, the actual error message is below:
Failed to start the Kernel '.venv (Python 3.10.12)'.
View Jupyter log for further details. EACCES: permission denied, open '/afs/csail.mit.edu/u/g/grandg/.local/share/jupyter/runtime/kernel-v2-3124666VYujqxzx3G6q.json'
Thanks for the details, that definitely does help get a better idea of the issue. I have udpated the title, as it has nothing to do with tilde or the like, its jut the fact that you do not have access (as you highlighted earlier).
Please can you
Extensions: Install from VSIX
Hi @DonJayamanne, thanks for this. I've updated my local environment to use your patch and will be testing it over the next couple days -- I'll let you know how it goes.
@gabegrand Any luck?
Hi Don, sorry for the slow reply. Just confirming that this PR does appear to have fixed the issue!
Hi @DonJayamanne, after updating my VSCode client to the latest version I'm now experiencing this issue again - do I need to re-apply this patch?
@gabegrand The fix will be in the next stable release, right not it is only available in the pre-release version.
Applies To
What happened?
There is a tilde getting inserted into my paths at kernel start that is causing kernel start to fail downstream. I've googled around a lot and was unable to find how these paths are constructed, but these paths (with the tilde in the middle) are clearly wrong. Can anyone point me to the relevant config or environment variables?
VS Code Version
1.90.2
Jupyter Extension Version
2024.5.0
Jupyter logs
Coding Language and Runtime Version
No response
Language Extension Version (if applicable)
No response
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
Remote