question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add a command to uninstall TLJH

See original GitHub issue

I’ve had a few moments where I need to delete the hub and just start fresh. I know to delete /opt/tljh, but I always feel like I might be missing something. Moreover, most people probably won’t think to check /opt/tljh. What if we added a tljh-config clean command that would require you to confirm, and if so would completely erase all jupyterhub-related changes to the machine?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:27 (15 by maintainers)

github_iconTop GitHub Comments

10reactions
olivierverdiercommented, Nov 16, 2018

At least instructions as to which files are installed where would be welcome. As far as I can see, the following locations would have to be removed during an uninstall:

  • /opt/tljh (directory)
  • /usr/bin/tljh-config (symlink)

Then there is the three services located at:

  • /etc/systemd/system/configurable-http-proxy.service
  • /etc/systemd/system/traefik.service
  • /etc/systemd/system/jupyterhub.service ~but I don’t know how to remove them in the appropriate way.~

Edit: you would remove those services by first running sudo systemctl disable <service>, and then remove the files themselves, I guess.

Two other things to do are

  • Remove the jupyterhub-admins and jupyterhub-users groups with sudo delgroup <group>
  • Remove the extra sudoers file located at /etc/sudoers.d/jupyterhub-admins.

Of course, as @yuvipanda said, if you allowed your users to run arbitrary command, then there is no point at all in uninstalling. However, in some cases it might make sense to include the information above in the documentation.

4reactions
GeorgianaElenacommented, Mar 26, 2020

@choldgraf, I just added this issue to my todo list. I’ll look into it, try to track down the limitations and come up with some steps.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring TLJH with tljh-config - The Littlest JupyterHub
tljh -config is the commandline program used to make configuration changes to TLJH. ... add-item users.admin admin-user_0 sudo tljh-config remove-item ...
Read more >
Customizing the JupyterHub environment (TLJH)
This can only set string and numerical properties, not lists. To unset a configuration property you can use the following command: sudo tljh-config...
Read more >
For educators — NI-edu - Lukas Snoek
To use Python version 3.8.5, run the following command from the user account you used to install TLJH (which needs to have sudo...
Read more >
Authentication and User Basics - JupyterHub - Read the Docs
Admin users of JupyterHub, admin_users , can add and remove users from the user allowed_users set. admin_users can take actions on other users'...
Read more >
The Littlest Jupyter Hub - LinkedIn
9- Run following commands to install TLJH sudo apt install python3 python3-dev git curl. Remove angular brackets and change the name to your ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found