-
Notifications
You must be signed in to change notification settings - Fork 556
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
nbconvert failed: [Errno 13] Permission denied #1167
Comments
I should include what versions we're using, right?
|
Thanks for providing all those details -- the versions and what was tried eliminates a lot of things to investigate as you're on the latest version. So in doing in a little refresher on how data paths work in nbconvert, the logic today is supposed to try each path 1-by-1 until it finds one it can use for the local cache. However when the data path is missing completely it tries to make the missing directories before using them. I can reproduce the issue you have by making the parent directory ( To fix your particular setup I believe making sure that userA has write permissions to The logic here predates my involvement in the project but we've been making some larger fixes / rewrites of these things for the 6.0 release. I'll tag this as a bug for the 6.0 milestone. |
@MSeal Thank you for looking into it!
That was my assumption, however I don't understand why is not
In my testing it didn't matter if
We have a multi-user environment and Jupyter has been deployed as our system user |
Hmm, I'm not sure there. In my local tests I ran tonight it behaved as you just explained / expected it to in terms of directory it tries first. Can you check the permissions and owners on each of the directories for The code involved is rather more complicated than it needs to be. Can you also check |
I'm going to close this issue as there's been no follow up in several months. Please post if you want to reopen with additional detials. |
Hi! I am currently using singularity to set up a jupyter notebook in a server HPC environment as this would be usable by us not root users.
If you could encapsulate the problem like that it would simply be fixed. Please do that! |
So now I have hand fixed this shit!
What did keep you from applying such a simple fix? |
That is not a fix the problem and has side-effects of silently ignoring config that is often important to proper execution of template conversions. A better thing to investigate is determining what template paths you don't have permissions to and why your user doesn't have read permissions to those paths. If there's a good reason for this we could discuss what could change. Since the issue was closed the template and config loading code was substantially overhauled, though read requirements to template paths remains present. |
I define a fix as to fix one problem. And sure it might build up new problems. |
I add a warning to the fix, but a warning is all you should actually throw. Not an error. |
The warning would be like this: |
I've been trying to figure out the root cause of this for a while, but I can't see what's wrong with our config. When trying to export a notebook as PDF from JupyterLab I am getting a permission denied error:
/software/jupyterhub
is where we deployed JupyterLab andshare/jupyter
is in the data path, but I don't understand why~/.local/share/jupyter
isn't tried first:If
/software/jupyterhub/share/jupyter
exists and is writeable touserA
, the directoriesnbconvert/templates/latex
get created and the conversion works (but only foruserA
):If
/software/jupyterhub/share/jupyter
is NOT writeable touserA
, nbconvert works for all users as expected.Any ideas?
The text was updated successfully, but these errors were encountered: