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

SingleUser start up error #142

Open
jasondavindev opened this issue Jun 2, 2022 · 2 comments
Open

SingleUser start up error #142

jasondavindev opened this issue Jun 2, 2022 · 2 comments

Comments

@jasondavindev
Copy link

jasondavindev commented Jun 2, 2022

I'm using Jupyterhub + KubeSpawner for my workload. When I launch the container I face the error

    Traceback (most recent call last):
      File "/opt/conda/lib/python3.9/site-packages/tornado/web.py", line 1704, in _execute
        result = await result
      File "/opt/conda/lib/python3.9/site-packages/tornado/gen.py", line 234, in wrapper
        yielded = ctx_run(next, result)
      File "/opt/conda/lib/python3.9/site-packages/notebook/services/contents/handlers.py", line 116, in get
        model = yield maybe_future(self.contents_manager.get(
      File "/opt/conda/lib/python3.9/site-packages/s3contents/genericmanager.py", line 125, in get
        if path.startswith(self.parent.root_dir):
    AttributeError: 'SingleUserNotebookApp' object has no attribute 'root_dir'

I tried with options but the error remains

--NotebookApp.root_dir=
--SingleUserNotebookApp.root_dir=
--ServerApp.root_dir=

My Dockerfile

FROM jupyterhub/k8s-singleuser-sample:1.2.0
...
RUN pip3 install s3contents
...
@burakovsky
Copy link

I have a similar problem when run Classic Jupyter Notebook:

Traceback (most recent call last):
      File "/home/lyte/.local/lib/python3.8/site-packages/tornado/web.py", line 1713, in _execute
        result = await result
      File "/home/lyte/.local/lib/python3.8/site-packages/tornado/gen.py", line 234, in wrapper
        yielded = ctx_run(next, result)
      File "/home/lyte/.local/lib/python3.8/site-packages/notebook/services/contents/handlers.py", line 111, in get
        model = yield maybe_future(self.contents_manager.get(
      File "/home/lyte/.local/lib/python3.8/site-packages/s3contents/genericmanager.py", line 126, in get
        if path.startswith(self.parent.root_dir):
    AttributeError: 'NotebookApp' object has no attribute 'root_dir'

It looks like root_dir is only JupyterLab config option (according to documentation it was added as a substitute for notebook_dir), because when I added c.NotebookApp.root_dir = "" parameter I saw this warning message in logs:

Config option `root_dir` not recognized by `NotebookApp`.  Did you mean `notebook_dir`?

I fixed it by removing this JupyterLab workaround

@djuarezg
Copy link
Contributor

djuarezg commented Apr 5, 2023

Any news on this?

I had to upgrade to more recent versions.

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

No branches or pull requests

3 participants