Feature #2038
Updated by Bernhard Koschiček-Krombholz about 1 year ago
After "Debian":https://www.debian.org/, the standard installation system for OpenAtlas, released the new version 12 "bookworm":https://www.debian.org/News/2023/20230610.en.html we will look into, test and adapt OpenAtlas to the new available software packages.
* *Python* from 3.9 to *3.11.2* (changelog "3.10":https://docs.python.org/3/whatsnew/3.10.html, "3.11":https://docs.python.org/3/whatsnew/3.11.html)
* *Flask* from 1.1.2 to *2.2.2* (changelog "2.0.0":https://flask.palletsprojects.com/en/2.2.x/changes/#version-2-0-0)
* *PostgreSQL* from 13.11 to *15* (changelog: "14.0":https://www.postgresql.org/docs/release/14.0/, "15":https://www.postgresql.org/docs/release/15.0/)
* *PostGIS* from 3.1 *to 3.3*
* *Jinja2* from 2.11 to *3.1* ("changelog":https://jinja.palletsprojects.com/en/3.1.x/changes/)
* *Node.js* from 12.22.12 to *18.13.0*
*Progress*
System was adapted in *feature/bookworm* and most of it is working. Still missing is:
* Fix table and type form fields HTML
* Fix tests local
* Fix tests GitHub
* Fix npm install
* Test frontend(s)
* Adapt requirements.txt
* Adapt Docker installation
* Check frontends still using backend content part (e.g. SHAHI)
* Adapt OpenAtlas website
*Notes*
Removable packages: *python3-rdflib-jsonld* (python3-rdflib 6.1.1 should include this package)
New packages: *python3-email-validator*, and if developing with Mypy: *python3-typeshed*
Make sure to backup databases and other data information before.
This link might be useful when upgrading: "howto upgrade to bookworm":https://www.linuxlookup.com/howto/upgrade_debian_11_bullseye_debian_12_bookworm, in short:
<pre>
# apt update
# apt upgrade
# vim /etc/apt/sources.list (replace bullseye with bookworm, add non-free-firmware, see example below)
# apt update
# apt upgrade
</pre>
* When asked if to enable app-armor for msmtp I choose "yes" and it worked out ok
<pre>
# apt full-upgrade
# apt autoremove
# reboot
</pre>
*/etc/apt/sources.list* example
<pre>
deb http://deb.debian.org/debian bookworm main contrib
deb http://deb.debian.org/debian bookworm-updates main contrib
deb http://deb.debian.org/debian-security/ bookworm-security main contrib
</pre>
Upgrade PostgreSQL and PostGIS
<pre>
# apt install postgresql-postgis
# systemctl stop postgresql
# pg_dropcluster 15 main
# pg_upgradecluster 13 main
# pg_dropcluster 13 main
# systemctl start postgresql
</pre>