Upgrade Server to latest Ubuntu version
sudo apt update && sudo apt full-upgrade -y
# needs reboot after update and before upgrade
sudo reboot
do-release-upgrade
# If you continue, an additional ssh daemon will be started at port '1022'.
# Answer yes to all questions other than when it asks to overwrite configuration files
# In this case overwrite everything other than the nginx files
# You will likely need to recreate the virtual environment
python3.11 -m venv env
# Start the services after reboot
systemctl --user start celery
systemctl --user start npm-homestead
systemctl --user start gunicorn-homestead-dev
# You might also need to re-enable the services...
systemctl --user enable SERVICENAME
# DB SERVER
# ---------
sudo apt install postgresql-14
sudo pg_renamecluster 1214 main main2main_backup
sudo pg_upgradecluster 12 main2main
sudo pg_dropcluster 12 main --stop
sudo pg_dropcluster 14 main_backup --stop
# PostgreSQL upgrade to new (Only applicable to database server)
# │ Obsolete major version 12 │
# │ │
# │ The PostgreSQL version 12 is obsolete, but the server or client packages are still installed. Please install the │
# │ latest packages (postgresql-14 and postgresql-client-14) and upgrade the existing clusters with pg_upgradecluster │
# │ (see manpage). │
# │ │
# │ Please be aware that the installation of postgresql-14 will automatically create a default cluster 14/main. If you │
# │ want to upgrade the 12/main cluster, you need to remove the already existing 14 cluster (pg_dropcluster --stop 14 │
# │ main, see manpage for details). │
# │ │
# │ The old server and client packages are no longer supported. After the existing clusters are upgraded, the │
# │ postgresql-12 and postgresql-client-12 packages should be removed. │
# │ │
# │ Please see /usr/share/doc/postgresql-common/README.Debian.gz for details.