Permission denied path outside the home folder in Jupyterhub but working from terminal

27 views
Skip to first unread message

Lukas Lehnert

unread,
Sep 13, 2021, 8:20:46 AM9/13/21
to Project Jupyter

Dear members of the Jupyter group,

I am using Jupyterhub on a linux server and have the following issue with when trying to access a path outside my home folder.
If I try to change my directory to the RAID (mounted at /data/...) I always get the error that permission is denied. The strange thing is that I can access the same path from RStudio and the terminal without any error:

Jupyterhub (with python3 kernel):
import os
os.chdir("/data/projects/Students/Master/")
---------------------------------------------------------------------------
PermissionError Traceback (most recent call last) <ipython-input-9-28cd65e1ac4e> in <module> 1 import os ----> 2 os.chdir("/data/projects/Students/Master/") PermissionError: [Errno 13] Permission denied: '/data/projects/Students/Master/'

In R:
> setwd("/data/projects/Students/Master/")
> list.dirs() [1] "." "./APV"

Does anyone have an idea, what the reason is?

Thank you!

Lukas

Lukas Lehnert

unread,
Sep 13, 2021, 8:26:43 AM9/13/21
to Project Jupyter
I just solved it by restarting the Jupyterhub service.

Thank you

Lukas

Dinakar Chennubotla

unread,
Sep 13, 2021, 8:40:13 AM9/13/21
to Project Jupyter
Great,

Thank you sharing information

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/15a7fbf0-b762-4b75-ae4b-85f46a8d1ee1n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages