csdms / jupyterhub-management

Files for managing the collection of JupyterHubs at CSDMS
https://csdms.colorado.edu/wiki/JupyterHub
MIT License
0 stars 1 forks source link

Upgrade Jupyter software in running Hubs #5

Closed mdpiper closed 1 year ago

mdpiper commented 1 year ago

I'd like to upgrade packages (like Python and JupyterLab) in the lab, jupyter, and frontier Hubs, but I'm a little hesitant because there's no documented upgrade path for tljh (see https://github.com/jupyterhub/the-littlest-jupyterhub/issues/204), and I don't want to bork these running Hubs.

mdpiper commented 1 year ago

Current versions on the jupyter instance:

jupyter : ~ $ jupyter lab --version
3.2.9
jupyter : ~ $ python --version
Python 3.9.7
mdpiper commented 1 year ago

I successfully upgraded JupyterLab on frontier and jupyter. Waiting on lab cuz it's busy.

mdpiper commented 1 year ago

I did a dry run of the update on the lab instance. Many packages are installed or updated, which makes me skittish. I'll make a snaphot of the volume on AWS first and restore it if needed.

  1. Create Amazon EBS snapshots
  2. Restoring from an Amazon EBS snapshot or an AMI
mdpiper commented 1 year ago

I completely borked frontier by updating JupyterLab from 3.6.1 to 4.0.1. However, I updated jupyter in a similar manner and it seems OK. 🍌 🍌 🍌

mdpiper commented 1 year ago

Updated lab to jupyterlab=3.6.4.

mdpiper commented 1 year ago

Lesson

Do this carefully. Make sure to create a snapshot on AWS before trying anything.