openanalytics/shinyproxy-jupyter-notebook-demo

EFS integration with Jupyter Lab as a persistent storage

Opened this issue · 0 comments

Hi Team,

We are trying to use EFS as a persistent storage for Jupyter lab home folder.
But we are getting below error:

/usr/local/bin/start-notebook.sh: running hooks in /usr/local/bin/start-notebook.d
/usr/local/bin/start-notebook.sh: running /usr/local/bin/start-notebook.d/create_new_project.sh
/usr/local/bin/start-notebook.sh: running /usr/local/bin/start-notebook.d/start_mfa.sh
/usr/local/bin/start-notebook.sh: done running hooks in /usr/local/bin/start-notebook.d
Set username to: jovyan
usermod: no changes
Executing the command: jupyter lab --NotebookApp.token='' --NotebookApp.base_url=/app_direct_i/jupyter-notebook-lab-storage/_/
Traceback (most recent call last):
File "/opt/conda/lib/python3.7/site-packages/traitlets/traitlets.py", line 528, in get
value = obj._trait_values[self.name]
KeyError: 'runtime_dir'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/conda/bin/jupyter-lab", line 10, in
sys.exit(main())
File "/opt/conda/lib/python3.7/site-packages/jupyter_core/application.py", line 270, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "/opt/conda/lib/python3.7/site-packages/traitlets/config/application.py", line 663, in launch_instance
app.initialize(argv)
File "", line 2, in initialize
File "/opt/conda/lib/python3.7/site-packages/traitlets/config/application.py", line 87, in catch_config_error
return method(app, *args, **kwargs)
File "/opt/conda/lib/python3.7/site-packages/notebook/notebookapp.py", line 1766, in initialize
self.init_configurables()
File "/opt/conda/lib/python3.7/site-packages/notebook/notebookapp.py", line 1380, in init_configurables
connection_dir=self.runtime_dir,
File "/opt/conda/lib/python3.7/site-packages/traitlets/traitlets.py", line 556, in get
return self.get(obj, cls)
File "/opt/conda/lib/python3.7/site-packages/traitlets/traitlets.py", line 535, in get
value = self._validate(obj, dynamic_default())
File "/opt/conda/lib/python3.7/site-packages/jupyter_core/application.py", line 100, in _runtime_dir_default
ensure_dir_exists(rd, mode=0o700)
File "/opt/conda/lib/python3.7/site-packages/jupyter_core/utils/init.py", line 13, in ensure_dir_exists
os.makedirs(path, mode=mode)
File "/opt/conda/lib/python3.7/os.py", line 211, in makedirs
makedirs(head, exist_ok=exist_ok)
File "/opt/conda/lib/python3.7/os.py", line 211, in makedirs
makedirs(head, exist_ok=exist_ok)
File "/opt/conda/lib/python3.7/os.py", line 211, in makedirs
makedirs(head, exist_ok=exist_ok)
File "/opt/conda/lib/python3.7/os.py", line 221, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/home/jovyan/.local'

Do we know what is going on here and this can be fixed?