Skip to content
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

Do not attempt to create additional template paths. #1646

Merged
merged 2 commits into from
Sep 17, 2021

Conversation

jasongrout
Copy link
Member

Fixes #1430

Many users are reporting that nbconvert 6.x has permission errors when queried or converting files. These seem to arise when nbconvert is installed as root, then used as a user. We hypothesize that the code removed in this commit, which attempts to create template directories throughout the jupyter path hierarchy, succeeds in creating template directories when running as root. Note that it creates the template directories with permission 700. Those permissions as root mean that regular users won’t be able to read these directories, and those are the sort of permission errors we are seeing reported.

This directory creation was originally introduced in #1028, where I think it was limited to a single user configuration directory (based on the PR discussion). In #1056, this code appears to have been copied over and applied to the entire Jupyter directory hierarchy.

CC @SylvainCorlay @maartenbreddels @MSeal

Fixes jupyter#1430

Many users are reporting that nbconvert 6.x has permission errors when queried or converting files. These seem to arise when nbconvert is installed as root, then used as a user. We hypothesize that the code removed in this commit, which attempts to create template directories throughout the jupyter path hierarchy, succeeds in creating template directories when running as root. Note that it creates the template directories with permission 700. Those permissions as root mean that regular users won’t be able to read these directories, and those are the sort of permission errors we are seeing reported.

This directory creation was originally introduced in jupyter#1028, where I think it was limited to a single user configuration directory (based on the PR discussion). In jupyter#1056, this code appears to have been copied over and applied to the entire Jupyter directory hierarchy.
@jasongrout jasongrout added this to the 6.2 milestone Sep 17, 2021
@maartenbreddels
Copy link
Collaborator

This was originally added in 48a4698 / #1028 (I just moved the method around in #1028). I agree with this PR.

@SylvainCorlay
Copy link
Member

We reviewed the PR together with @maartenbreddels and we think it is ready to go.

@maartenbreddels maartenbreddels merged commit 3e57a03 into jupyter:main Sep 17, 2021
@jasongrout
Copy link
Member Author

I'll release another RC with it so we can test it in the wild more too

casparvl added a commit to sara-nl/easybuild-easyconfigs that referenced this pull request Jan 17, 2022
….1.0, could cause permission denied errors when run in a shared environment. See jupyter/nbconvert#1430 . This was fixed in PR jupyter/nbconvert#1646 . Since many EasyBuild users work in shared environments, I think this is a relevant fix to have included.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Permission denied problem with nbconvert
3 participants