jupyterhub / the-littlest-jupyterhub

Simple JupyterHub distribution for 1-100 users on a single server
https://tljh.jupyter.org
BSD 3-Clause "New" or "Revised" License
1.03k stars 339 forks source link

No login page after installation on custom server #812

Open slavistan opened 2 years ago

slavistan commented 2 years ago

Hi! I've followed the guide for how to install TLJH on a custom server and everything seems to have worked out flawlessly. Unfortunately, I cannot reach the JupyterHub Login page (step 5 in the guide). There's no response when trying to access the page from the outside and, in fact, I can't even curl -L localhost:8000 from inside the machine ("connection refused"). This suggests to me that the webserver may not be running at all and that something did go awry during the installation.

I've checked all the low-hanging fruit to no avail:

Here's the output of journalctl -u jupyterhub after a restart of the jupyterhub systemd service. There are a few logs (There is no current event loop, Not starting proxy, JupyterHub is now running at http://:8000) which look suspicious to me, but I really can't gauge whether they are something to worry about.

 systemd[1]: Started jupyterhub.service.
 python3[26530]: /opt/tljh/hub/lib/python3.10/site-packages/jupyterhub/app.py:2997: DeprecationWarning: There is no current event loop
 python3[26530]:   task = asyncio.ensure_future(self.launch_instance_async(argv))
 python3[26530]: [I 2022-04-28 08:14:40.875 JupyterHub app:2479] Running JupyterHub version 1.5.0
 python3[26530]: [I 2022-04-28 08:14:40.876 JupyterHub app:2509] Using Authenticator: firstuseauthenticator.firstuseauthenticator.FirstUseAuthenticator
 python3[26530]: [I 2022-04-28 08:14:40.876 JupyterHub app:2509] Using Spawner: traitlets.traitlets.UserCreatingSpawner-5.1.1
 python3[26530]: [I 2022-04-28 08:14:40.876 JupyterHub app:2509] Using Proxy: jupyterhub_traefik_proxy.toml.TraefikTomlProxy-0+unknown
 python3[26530]: [I 2022-04-28 08:14:40.883 JupyterHub app:1554] Loading cookie_secret from /opt/tljh/state/jupyterhub_cookie_secret
 python3[26530]: [I 2022-04-28 08:14:40.938 JupyterHub app:1858] Not using allowed_users. Any authenticated user will be allowed.
 python3[26530]: [I 2022-04-28 08:14:40.968 JupyterHub app:2546] Initialized 0 spawners in 0.002 seconds
 python3[26530]: [I 2022-04-28 08:14:40.971 JupyterHub app:2758] Not starting proxy
 python3[26530]: [I 2022-04-28 08:14:40.972 JupyterHub app:2794] Hub API listening on http://127.0.0.1:15001/hub/
 python3[26530]: [I 2022-04-28 08:14:40.972 JupyterHub app:2809] Starting managed service cull-idle
 python3[26530]: [I 2022-04-28 08:14:40.972 JupyterHub service:339] Starting service 'cull-idle': ['/opt/tljh/hub/bin/python3', '-m', 'jupyterhub_idle_culler', '--ti>
 python3[26530]: [I 2022-04-28 08:14:40.974 JupyterHub service:121] Spawning /opt/tljh/hub/bin/python3 -m jupyterhub_idle_culler --timeout=600 --cull-every=60 --conc>
 python3[26530]: [I 2022-04-28 08:14:40.976 JupyterHub proxy:347] Checking routes
 python3[26530]: [I 2022-04-28 08:14:40.976 JupyterHub app:2869] JupyterHub is now running at http://:8000
 python3[26530]: [I 2022-04-28 08:14:41.113 JupyterHub log:189] 200 GET /hub/api/ (cull-idle@127.0.0.1) 12.66ms
 python3[26530]: [I 2022-04-28 08:14:41.119 JupyterHub log:189] 200 GET /hub/api/users?state=[secret] (cull-idle@127.0.0.1) 4.34ms
 python3[26530]: [I 2022-04-28 08:14:41.158 JupyterHub log:189] 200 GET /hub/api (@127.0.0.1) 0.62ms
 python3[26530]: [I 2022-04-28 08:15:41.141 JupyterHub log:189] 200 GET /hub/api/ (cull-idle@127.0.0.1) 8.90ms
 python3[26530]: [I 2022-04-28 08:15:41.149 JupyterHub log:189] 200 GET /hub/api/users?state=[secret] (cull-idle@127.0.0.1) 3.88ms
 python3[26530]: [I 2022-04-28 08:16:41.153 JupyterHub log:189] 200 GET /hub/api/ (cull-idle@127.0.0.1) 8.78ms
 python3[26530]: [I 2022-04-28 08:16:41.159 JupyterHub log:189] 200 GET /hub/api/users?state=[secret] (cull-idle@127.0.0.1) 3.28ms
 python3[26530]: [I 2022-04-28 08:17:41.149 JupyterHub log:189] 200 GET /hub/api/ (cull-idle@127.0.0.1) 10.46ms
 python3[26530]: [I 2022-04-28 08:17:41.157 JupyterHub log:189] 200 GET /hub/api/users?state=[secret] (cull-idle@127.0.0.1) 4.30ms
 python3[26530]: [I 2022-04-28 08:18:41.165 JupyterHub log:189] 200 GET /hub/api/ (cull-idle@127.0.0.1) 10.52ms
 python3[26530]: [I 2022-04-28 08:18:41.177 JupyterHub log:189] 200 GET /hub/api/users?state=[secret] (cull-idle@127.0.0.1) 7.27ms

Unfortunately, I'm out of ideas. May I kindly ask for your guidance?

I'm running a freshly set up Ubuntu 22.04 LTS machine.

welcome[bot] commented 2 years ago

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada: