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

TLJH not working after upgrading from Ubuntu 18.04 to 22.04 #957

Open
vsisl opened this issue Dec 12, 2023 · 1 comment
Open

TLJH not working after upgrading from Ubuntu 18.04 to 22.04 #957

vsisl opened this issue Dec 12, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@vsisl
Copy link

vsisl commented Dec 12, 2023

Bug description

After upgrading from Ubuntu 18.04 to 22.04, my TLJH installation stopped working.

When going to http://localhost:80, I get "Bad Gateway".

Systemctl says that jupyterhub.service failed to start.

$ sudo systemctl status jupyterhub.service
× jupyterhub.service
     Loaded: loaded (/etc/systemd/system/jupyterhub.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Tue 2023-12-12 11:59:16 CET; 12min ago
    Process: 6346 ExecStart=/opt/tljh/hub/bin/python3 -m jupyterhub.app -f /opt/tljh/hub/lib/python3.6/site-packages/tljh/jupyterhub_config.py --upgrade-db (code=exited, status=1/FAILURE)
   Main PID: 6346 (code=exited, status=1/FAILURE)
        CPU: 74ms

Dez 12 11:59:16 Persephone systemd[1]: jupyterhub.service: Scheduled restart job, restart counter is at 5.
Dez 12 11:59:16 Persephone systemd[1]: Stopped jupyterhub.service.
Dez 12 11:59:16 Persephone systemd[1]: jupyterhub.service: Start request repeated too quickly.
Dez 12 11:59:16 Persephone systemd[1]: jupyterhub.service: Failed with result 'exit-code'.
Dez 12 11:59:16 Persephone systemd[1]: Failed to start jupyterhub.service.

tljh-config reload hub throws an error.

$ sudo tljh-config reload hub
Traceback (most recent call last):
  File "/usr/bin/tljh-config", line 6, in <module>
    from pkg_resources import load_entry_point
ModuleNotFoundError: No module named 'pkg_resources'

Edit: Here's output of journalctl -u jupyterhub

$ journalctl -u jupyterhub
Dez 12 11:59:16 Persephone systemd[1]: Started jupyterhub.service.
Dez 12 11:59:16 Persephone python3[6346]: /opt/tljh/hub/bin/python3: Error while finding module specification for 'jupyterhub.app' (ModuleNotFoundError: No module named 'jupyterhub')
Dez 12 11:59:16 Persephone systemd[1]: jupyterhub.service: Main process exited, code=exited, status=1/FAILURE
Dez 12 11:59:16 Persephone systemd[1]: jupyterhub.service: Failed with result 'exit-code'.
Dez 12 11:59:16 Persephone systemd[1]: jupyterhub.service: Scheduled restart job, restart counter is at 5.
Dez 12 11:59:16 Persephone systemd[1]: Stopped jupyterhub.service.
Dez 12 11:59:16 Persephone systemd[1]: jupyterhub.service: Start request repeated too quickly.
Dez 12 11:59:16 Persephone systemd[1]: jupyterhub.service: Failed with result 'exit-code'.
Dez 12 11:59:16 Persephone systemd[1]: Failed to start jupyterhub.service.

How to reproduce

  1. Installed TLJH on Ubuntu 18.04 following documentation. (This was done a few years ago already.) In particular, I used Xubuntu 18.04.
  2. Upgraded to Xubuntu 22.04 using desktop environment.
  3. TLJH not working anymore.

Any help would be highly appreciated! Please let me know if I should supply additional information.

@vsisl vsisl added the bug Something isn't working label Dec 12, 2023
Copy link

welcome bot commented Dec 12, 2023

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

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! 👋

Welcome to the Jupyter community! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant