From b288ea1e96b5c5facb3ecca95b84684871f38732 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Fri, 16 Dec 2022 19:28:24 +0100 Subject: [PATCH] Docs: Add procedure after debian updates (#2984) --- doc/admin/installation/manual_smallscale.rst | 21 ++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/doc/admin/installation/manual_smallscale.rst b/doc/admin/installation/manual_smallscale.rst index 51870878a..8865a0726 100644 --- a/doc/admin/installation/manual_smallscale.rst +++ b/doc/admin/installation/manual_smallscale.rst @@ -318,6 +318,27 @@ example:: (venv)$ python -m pretix rebuild # systemctl restart pretix-web pretix-worker +System updates +-------------- + +After system updates, such as updates to a new Ubuntu or Debian release, you might be using a new Python version. +That's great, but requires some adjustments. First, adjust any old version paths in your nginx configuration file. +Then, re-create your Python environment:: + + $ source /var/pretix/venv/bin/activate + (venv)$ pip3 freeze > /tmp/pip-backup.txt + $ rm -rf /var/pretix/venv + $ python3 -m venv /var/pretix/venv + $ source /var/pretix/venv/bin/activate + (venv)$ pip3 install -U pip wheel setuptools + (venv)$ pip3 install -r /tmp/pip-backup.txt + +Then, proceed like after any plugin installation:: + + (venv)$ python -m pretix migrate + (venv)$ python -m pretix rebuild + (venv)$ python -m pretix updatestyles + # systemctl restart pretix-web pretix-worker .. _Postfix: https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-as-a-send-only-smtp-server-on-ubuntu-16-04 .. _nginx: https://botleg.com/stories/https-with-lets-encrypt-and-nginx/