This document describes the steps required for upgrading a stand-alone Security Server host from Ubuntu 14.04 LTS host to Ubuntu 18.04 LTS. The upgrade is a two-phase process; first from version 14.04 to 16.04 and then to version 18.04. 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.

Upgrading a system that uses a hardware security module has not been tested. Please verify that the HSM is compatible with Ubuntu 18.04 and  check the HSM module documentation.

Alternative method: How to Upgrade Security Server to Ubuntu 18.04 Using a Configuration Backup?

Preparations

Upgrading Ubuntu 14.04 to 18.04

The upgrade is a two-phase process; first from version 14.04 to 16.04 and then to version 18.04.

When the upgrade is finished, reboot when prompted (the security server processes won't start after reboot since 16.04 and 18.04 use systemd and the startup scripts are still in upstart format).

Repeat the above process to upgrade from 16.04 to 18.04.

Upgrading the X-Road software

Upgrade the database

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

Upgrade the packages

sudo apt update && sudo apt full-upgrade

Warnings like the following during the upgrade can be ignored:
Failed to stop xroad-jetty.service: Unit xroad-jetty.service not loaded.
invoke-rc.d: initscript xroad-jetty, action "stop" failed.
dpkg: warning: old xroad-jetty9 package pre-removal script subprocess returned error exit status 5


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

systemctl list-units "xroad-*" "nginx.service" "postgresql@*"

UNIT                       LOAD   ACTIVE SUB     DESCRIPTION                                             
nginx.service              loaded active running A high performance web server and a reverse proxy server
postgresql@10-main.service loaded active running PostgreSQL Cluster 10-main                              
xroad-confclient.service   loaded active running X-Road confclient                                       
xroad-jetty.service        loaded active running X-Road Jetty server                                     
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-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 9.3 main
sudo apt purge postgresql-9.3
postgresql-9.5
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