Jira 7.11.0
Ubuntu 20.04
We have JIRA installed on a local server in our office. Last week the server went down and it was a HDD failure.
We were able to back up the Jira /opt folder and the application data stored in /var, we also backed up the MySQL database. With all the data backed up the HDD was scrubbed clean, remapped the sectors and we went about recreating the server. Before the break we had been running on Ubuntu 16.04. We decided to update to 20.04.
With the server operational we copied back the /opt folder and the /var folder and reimported the MySQL database.
We then needed Java on the server and we have gone about this 2 different ways, neither has worked.
Attempt 1
Following the installation instructions here, we attempted to install Server JRE 8: https://docs.oracle.com/javase/8/docs/technotes/guides/install/linux_server_jre.html#CACJHCDD
I downloaded the server-jre-8u251-linux-x64.tar.gz file, rsynced it to the server, unpacked the tarball and installed according to the instructions.
Running `./startup.sh` revealed no success, just an error message. View error message below. Following the instructions here we tried setting the JAVA_HOME variable: https://confluence.atlassian.com/adminjiraserver/installing-java-938846828.html
Setting the /etc/environment did not work so we set the global /etc/profile. This did not work.
At some point shortly after, probably due to a PICNIC error, the entire server was corrupted and we had to start from fresh.
Attempt 2
Following the installation instructions here, we installed Java through the apt packages: https://linuxize.com/post/install-java-on-ubuntu-20-04/
sudo apt update
sudo apt install openjdk-8-jdk
Running the command `java -version` did output a javaversion (see below).
Following the instructions we set the JAVA_HOME variable in /etc/environment and running `echo $JAVA_HOME` did indeed show the right path (below).
However, neither restarting shell, rebooting the server or anything would get any other message other than a failure when running `./startup.sh`.
Shell outputs
root@server:/opt/atlassian/jira/bin# ./startup.sh
.....
.... .NMMMD. ...
.8MMM. $MMN,..~MMMO.
.?MMM. .MMM?.
OMMMMZ. .,NMMMN~
.IMMMMMM. .NMMMN. .MMMMMN,
,MMMMMM$..3MD..ZMMMMMM.
=NMMMMMM,. .,MMMMMMD.
.MMMMMMMM8MMMMMMM,
.ONMMMMMMMMMMZ.
,NMMMMMMM8.
.:,.$MMMMMMM
.IMMMM..NMMMMMD.
.8MMMMM: :NMMMMN.
.MMMMMM. .MMMMM~.
.MMMMMN .MMMMM?.
Atlassian JIRA
Version : 7.11.0
If you encounter issues starting or stopping JIRA, please see the Troubleshooting guide at http://confluence.atlassian.com/display/JIRA/Installation+Troubleshooting+Guide
Server startup logs are located in /opt/atlassian/jira/logs/catalina.out
Using CATALINA_BASE: /opt/atlassian/jira
Using CATALINA_HOME: /opt/atlassian/jira
Using CATALINA_TMPDIR: /opt/atlassian/jira/temp
Using JRE_HOME: /opt/atlassian/jira/jre/
Using CLASSPATH: /opt/atlassian/jira/bin/bootstrap.jar:/opt/atlassian/jira/bin/tomcat-juli.jar
Using CATALINA_PID: /opt/atlassian/jira/work/catalina.pid
*************************************************************************************************************************************
********** Wrong JVM version! You are running with .. but JIRA requires at least 1.8 to run. **********
*************************************************************************************************************************************
root@server:/opt/atlassian/jira/bin# java -version
openjdk version "1.8.0_252"
OpenJDK Runtime Environment (build 1.8.0_252-8u252-b09-1ubuntu1-b09)
OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)
root@server:/opt/atlassian/jira/bin# echo $JAVA_HOME
/usr/lib/jvm/java-8-openjdk-amd64
In the cataline.out log file there is only a warning about SSL certificate which can be ignored as will be sorted once Jira is running:
root@server:/opt/atlassian/jira/bin# tail -3 /opt/atlassian/jira/logs/catalina.out
Wed May 06 12:43:34 BST 2020 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Wed May 06 12:43:34 BST 2020 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Wed May 06 12:43:34 BST 2020 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Question
So, the question is, how do I get this to work? Our JIRA is used to manage 2 projects, one of which has a history of 8 years worth of jobs. We do not have an exported list of jobs to reimport into a fresh install, but if there is a way of getting the jobs onto a fresh install I'm all ears. To my understanding though I believe I need to get JIRA 7.11.0 working with the old data before updating to the latest version of JIRA?
Much thanks for your help!