Hello All.
After updating from 20.04 LTS to 22.04 LTS, our “The Littlest Jupyter Hub” (TLJH) has failed to start, nor can we install it.
On a reboot, we get the following status.
× jupyterhub.service
Loaded: loaded (/etc/systemd/system/jupyterhub.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2022-05-02 18:17:08 UTC; 2min 15s ago
Process: 988 ExecStart=/opt/tljh/hub/bin/python3 -m jupyterhub.app -f /opt/tljh/hub/lib/python3.8/site-packages/tljh/jupyterhub_config.py --upgrade-db (code=exited, status=1/FAILURE)
Main PID: 988 (code=exited, status=1/FAILURE)
CPU: 55ms
May 02 18:17:08 squall systemd[1]: jupyterhub.service: Scheduled restart job, restart counter is at 5.
May 02 18:17:08 squall systemd[1]: Stopped jupyterhub.service.
May 02 18:17:08 squall systemd[1]: jupyterhub.service: Start request repeated too quickly.
May 02 18:17:08 squall systemd[1]: jupyterhub.service: Failed with result 'exit-code'.
May 02 18:17:08 squall systemd[1]: Failed to start jupyterhub.service.
Accessing the service via the web browser gives us a “Bad Gateway” statement and nothing else.
Reinstalling/Updating TLJH gives the following error:
curl -L https://tljh.jupyter.org/bootstrap.py | sudo python3 - --admin *munged_admin_name*
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 14047 100 14047 0 0 25161 0 --:--:-- --:--:-- --:--:-- 25161
Existing TLJH installation detected, upgrading...
Upgrading pip...
Ran /opt/tljh/hub/bin/pip install --upgrade pip==21.3.* with exit code 1
Traceback (most recent call last):
File "/opt/tljh/hub/bin/pip", line 5, in <module>
from pip._internal.cli.main import main
ModuleNotFoundError: No module named 'pip'
Traceback (most recent call last):
File "<stdin>", line 396, in <module>
File "<stdin>", line 371, in main
File "<stdin>", line 160, in run_subprocess
subprocess.CalledProcessError: Command '['/opt/tljh/hub/bin/pip', 'install', '--upgrade', 'pip==21.3.*']' returned non-zero exit status 1.
with the following log statement.
2022-05-02 18:24:20,543 Existing TLJH installation detected, upgrading...
2022-05-02 18:24:20,543 Upgrading pip...
Please Advise, Cheers and Thanks,
Bill Capehart
SD Mines