This document describes the steps required for upgrading a stand-alone Security Server host from Ubuntu 18.04 LTS host to Ubuntu 20.04 LTS. Please read carefully through the whole document before starting the upgrade process. It is assumed that the reader is familiar with the Ubuntu Linux distribution and has experience of Ubuntu release upgrades.

With the upgrade to Ubuntu 20.04 LTS, PostgreSQL is updated from version 10 to 12.

Alternative method: Upgrading Security Server to Ubuntu 20.04 Using a Configuration Backup

Preparations

If upgrading a system that uses a hardware security module: Please verify that the HSM is compatible with Ubuntu 20.04 and check the HSM module documentation for upgrade instructions.

Upgrading Ubuntu 18.04 to 20.04

Upgrading the X-Road software

Upgrade the database

Update the X-Road package repository to point to the Ubuntu 20.04 packages


Upgrade the packages

sudo apt update && sudo apt full-upgrade

sudo systemctl enable "xroad-*"
sudo systemctl start "xroad-*"


Verify that the security server services are running and the system is responding

systemctl list-units "xroad-*" "postgresql@*"

UNIT                       LOAD   ACTIVE SUB     DESCRIPTION                                              
postgresql@12-main.service loaded active running PostgreSQL Cluster 12-main
xroad-base.service         loaded active exited  X-Road initialization
xroad-confclient.service   loaded active running X-Road confclient                                   
xroad-monitor.service      loaded active running X-Road Monitor*
xroad-opmonitor.service    loaded active running X-Road opmonitor daemon*
xroad-proxy.service        loaded active running X-Road Proxy
xroad-proxy-ui-api.service loaded active running X-Road Proxy UI REST API
xroad-signer.service       loaded active running X-Road signer

* if the monitoring addon(s) are installed

Drop old database and obsolete packages

After verifying that the database upgrade was successful, drop the old database and remove obsolete PostgreSQL packages.

sudo pg_dropcluster 10 main
sudo apt purge postgresql-10

sudo apt autoremove

Troubleshooting

Related articles

Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.



Related issues