Skip to content

Updating Jira

Things to Note:

The license key and versions that a Jira instance can upgrade to have a corrolation.
Head over to "Versions and Licenses" inside Jira to see when the License Key expires.
Jira will be unable to upgrade to versions released after this expiry date.

If you are upgrading jira locally

which is highly recommended before you try upgrading the live version.

Attach into the container

lxc-attach container-name

Change to the root user using the following command: su

We then need to head on over to server.xml to get rid of the proxy line to access the local version

cd /opt/atlassian/jira/conf

vim server.xml

Change the following line:

proxyName="jira.ec.edmondscommerce.net" proxyPort="80"

So that it looks more like:

address="192.168.122.***" port="8080" The address is the container IP and the port is 8080.
Make sure the port isn't listed twice. This will stop us from accessing Jira through the IP.

based on https://confluence.atlassian.com/adminjiraserver/upgrading-jira-applications-using-the-installer-938846937.html

And then continue onto the next steps which can be done on the cluster container itself (updating live) as well as locally (updating locally):

Upgrading Jira on the cluster.

We need to download the jira upgrade tool. Do this in a directory that isn't within anything jira related.

First go here to get a link to the latest Jira. Make sure the drop down box is on linux and and the you can right click "Download" and then copy link address. https://www.atlassian.com/software/jira/download

We need to make sure we are downloading the tool to a sensible place so we can find it but also not lose it when the upgrade moves around files.

I suggest changing the directory to /opt/atlassian/ which can be done with cd /opt/atlassian

wget https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-7.10.0-x64.bin

Change the "x" to the right number for the next set of commands.

Then we need to change the permissions of the tool.

chmod a+x atlassian-jira-software-x.x.x-x64.bin

And then run it

./atlassian-jira-software-x.x.x-x64.bin

You will get some questions and you will need to give the following answers:

```Unpacking JRE ... This will install JIRA Software 7.8.0 on your computer. OK [o, Enter], Cancel [c]

Input: `o`
Choose the appropriate installation or upgrade option. Please choose one of the following: Express Install (use default settings) [1], Custom Install (recommended for advanced users) [2], Upgrade an existing JIRA installation [3, Enter]
Input `3`

``Existing installation directory:
[/opt/atlassian/jira]
Just press Enter for this unless you know it's wrong.

```Back up JIRA home directory The upgrade process will automatically back up your JIRA installation directory. You can also choose to back up your existing JIRA home directory. Both directories are backed up as zip archive files in their respective parent directory locations.

We strongly recommend choosing this option in the unlikely event that you experience problems with the upgrade and may require these backups to restore your existing JIRA installation.

If you have many attachments in your JIRA home directory, the zip archive of this directory may consume a significant amount of disk space. Back up JIRA home directory? Yes [y, Enter], No [n]

Input: `y`     

When it asks about the list of modified files, just hit enter.

``Do you want to proceed?
Upgrade [u, Enter], Exit [e]
Input u

Start JIRA Software 7.8.0 now?
Yes [y, Enter], No [n]
Input: n

``` Once Jira is updated, then all should be fine unless your license key is out of date. If the key is out of date then jira will display instructions on how to get a new one.

Jira license key page corrupted

Sometimes the license key page won't display properly unless you use the IP address in the web browser.

Simply sshContainer containername and once you are in the container type ip a.

and then you will see something along the lines of net 10.101.0.10/8 brd 10.255.255.255 scope global eth0.

In this case we would take 10.101.0.10 and then put that into the web browser along with :8080 at the end.