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.04k stars 341 forks source link

User Servers Fail to boot after system reboot #495

Closed ynnelson closed 3 years ago

ynnelson commented 4 years ago

So JupyterHub was working just fine but after messing with the Kernel list and creating some new environments it no longer works after we rebooted the system.

I keep getting stuck on this screen: Screen Shot 2020-01-29 at 10 09 07 AM

Looking at the journalctl of the user's server this is what I get below. It looks like it's looking for the jupyterhub module and can't find it. I did source /opt/tljh/user/bin/activate and checked that the jupyterhub module exists and it does... My guess is somehow the user server are no longer being launched using the virtual env that tljh setup but I have no idea how to remedy that...

Any help would be super helpful!!

root@ip-10-223-33-109:~# journalctl -u jupyter-tom.hardy.service -b

Journal file /var/log/journal/ec2e3765f29603aa642b4903f4f039c2/user-1006.journal is truncated, ignoring file.

-- Logs begin at Mon 2018-09-24 00:02:29 UTC, end at Wed 2020-01-29 15:12:34 UTC. --
Jan 29 14:12:31 ip-10-223-33-109 systemd[1]: Started /bin/bash -c cd /home/jupyter-tom.hardy && exec jupyterhub-singleuser --port=40139.

Jan 29 14:12:31 ip-10-223-33-109 bash[1784]: Traceback (most recent call last):

Jan 29 14:12:31 ip-10-223-33-109 bash[1784]:   File "/opt/tljh/user/bin/jupyterhub-singleuser", line 3, in <module>

Jan 29 14:12:31 ip-10-223-33-109 bash[1784]:     from jupyterhub.singleuser import main

Jan 29 14:12:31 ip-10-223-33-109 bash[1784]: ModuleNotFoundError: No module named 'jupyterhub'

Jan 29 14:12:31 ip-10-223-33-109 systemd[1]: jupyter-tom.hardy.service: Main process exited, code=exited, status=1/FAILURE

Jan 29 14:12:31 ip-10-223-33-109 systemd[1]: jupyter-tom.hardy.service: Failed with result 'exit-code'
consideRatio commented 3 years ago

It seems your user environment no longer contains the jupyterhub package, which is required to start the user servers.