Jupyterhub, tree is Ok but lab is 404, how to investigate?

Jupyterhub, tree is Ok but lab is 404, how to investigate ?

Hi folks,

I set up two servers for jupyterhub with jupyterlab , following official Installation from Ground procedure

There as identical as possible : same OS (Debian 10 from same proxmox template) , same users, same admin (me)

  • On the first one, jupyterlab works through /jupyter/home/<user>/lab URL path.
  • On the second one, it doesn’t, I get a 404.
  • On both of them /jupyter/home/<user>/tree works.

(<user> of course is not the real name)

I compared everything I’m thinking of

  • jupyterhub_config.py
  • package versions
  • jupyter extension list
  • same find /opt/jupyterhub -name "*lab*' | sort
  • Nothing in jupyterhub logs except a 404 GET /jupyter/user/<user>/lab?

No difference !

What I could miss to check ? I’m just searching for to understand how Jupyterhub processes to provide a 404 error.

Any help would be appreciated.

{'platform': 'Linux', 
'platform-release': '4.19.0-10-amd64', 
'platform-version': '#1 SMP Debian 4.19.132-1 (2020-07-24)', 
'architecture': 'x86_64'}


alembic==1.5.1
anyio==2.0.2
argon2-cffi==20.1.0
async-generator==1.10
attrs==20.3.0
Babel==2.9.0
backcall==0.2.0
bleach==3.2.1
certifi==2020.12.5
certipy==0.1.3
cffi==1.14.4
chardet==4.0.0
cryptography==3.3.1
decorator==4.4.2
defusedxml==0.6.0
entrypoints==0.3
idna==2.10
importlib-metadata==3.4.0
ipykernel==5.4.3
ipython==7.19.0
ipython-genutils==0.2.0
ipywidgets==7.6.3
jedi==0.18.0
Jinja2==2.11.2
json5==0.9.5
jsonschema==3.2.0
jupyter-client==6.1.11
jupyter-contrib-core==0.3.3
jupyter-contrib-nbextensions==0.5.1
jupyter-core==4.7.0
jupyter-highlight-selected-word==0.2.0
jupyter-latex-envs==1.4.6
jupyter-nbextensions-configurator==0.4.1
jupyter-server==1.2.2
jupyter-telemetry==0.1.0
jupyterhub==1.3.0
jupyterlab==3.0.5
jupyterlab-pygments==0.1.2
jupyterlab-server==2.1.2
jupyterlab-widgets==1.0.0
lxml==4.6.2
Mako==1.1.4
MarkupSafe==1.1.1
mistune==0.8.4
nbclassic==0.2.6
nbclient==0.5.1
nbconvert==6.0.7
nbformat==5.1.2
nest-asyncio==1.4.3
notebook==6.2.0
oauthlib==3.1.0
packaging==20.8
pamela==1.0.0
pandocfilters==1.4.3
parso==0.8.1
pexpect==4.8.0
pickleshare==0.7.5
pkg-resources==0.0.0
prometheus-client==0.9.0
prompt-toolkit==3.0.10
ptyprocess==0.7.0
pycparser==2.20
Pygments==2.7.4
pyOpenSSL==20.0.1
pyparsing==2.4.7
pyrsistent==0.17.3
python-dateutil==2.8.1
python-editor==1.0.4
python-json-logger==2.0.1
pytz==2020.5
PyYAML==5.4
pyzmq==21.0.1
requests==2.25.1
ruamel.yaml==0.16.12
ruamel.yaml.clib==0.2.2
Send2Trash==1.5.0
six==1.15.0
sniffio==1.2.0
SQLAlchemy==1.3.22
terminado==0.9.2
testpath==0.4.4
tornado==6.1
traitlets==5.0.5
typing-extensions==3.7.4.3
urllib3==1.26.2
wcwidth==0.2.5
webencodings==0.5.1
widgetsnbextension==3.5.1
zipp==3.4.0

Thanks

JupyterHub handles user authentication, and starting/stopping single-user servers. It then proxies everything from the single-user server. The 404 is therefore coming from your single-user server, which suggests JupyterLab isn’t installed properly in your user environment, which may be different from your JupyterHub environment. Can you check the list of installed packages?

I wanted to upgrade Jupyterlab this morning. But it seems some files are missing because I’m receiving the following message in terminal.

WARNING: Error parsing requirements for pyproj: [Errno 2] No such file or directory: '/opt/tljh/user/lib/python3.6/site-packages/pyproj-2.6.0.dist-info/METADATA'

I appreciate if there is anyone who might show me the light :slight_smile: for survival.

Best regards from Istanbul.

++Ahmet Anil Dindar

Same issue here. The following lines fixed it. Hope it will work for you.

conda install jupyterlab
conda install notebook