SUNScholar/Upgrading/Server Software/Step 1

Back to Upgrading Server

STEP 1 - Ubuntu server software upgrade
*** This only works if you have an open connection to the internet for the server ***'

Login using SSH to the server.

Then run: sudo apt-get install update-manager-core

Edit the file /etc/update-manager/release-upgrades and set: Prompt=lts

Check the upgrade process: sudo do-release-upgrade -c If this reports an upgrade is available, then continue, if not, then check your apt sources.list file.

sudo do-release-upgrade -m server

Go find a coffee…

During Upgrade

 * If the upgrade fails in the beginning, then remove any non-standard sources in the /etc/apt/sources.list file and the /etc/apt/sources.list.d/ folder and try again.
 * When asked whether to keep the maintainers version of a config file or keep your own custom version of a config file, always select the maintainers version. Make a note of these files and then after the upgrade go back and check the config files for any customisation you would like to apply as you did to the old server version. See below for an example list.
 * /etc/security/limits.conf
 * /etc/sysctl.conf
 * /etc/munin/munin-node.conf
 * Take careful note of the PostgreSQL upgrade notes prompted on the command line. See step 2 below.

Limits
Restore the limits:
 * http://wiki.lib.sun.ac.za/index.php/SUNScholar/Prepare_Ubuntu/S08#Step_8.2_Increase_number_of_open_files_available

Maven
Remove any old maven version: sudo apt-get --purge remove maven*

Java
Type the following to upgrade Java: sudo apt-get --purge remove openjdk-6* openjdk-7* openjdk-8* Then install new Java dependencies. sudo apt-get install default-jdk default-jre ant ant-optional maven Then run tasksel. tasksel Select "Tomcat Java Server" to install.

Then check all the Tomcat7 settings at: http://wiki.lib.sun.ac.za/index.php/SUNScholar/Prepare_Ubuntu/S05 Then check all the web app deployment settings: http://wiki.lib.sun.ac.za/index.php/SUNScholar/Install_DSpace/S08 If using a secure login, then check: http://wiki.lib.sun.ac.za/index.php/SUNScholar/Secure_Internet_Connections/S04