Keep Jira 9 for a defined legacy requirement

Jira records a team's tasks and defects as issues so each item's owner, status and workflow can be tracked. Recovering an older deployment or rehearsing a migration may require its previous release. This recipe preserves Jira Software Data Center 9.12.40 for that defined legacy need, rather than a new production baseline. We finish by checking issue and attachment persistence alongside the database, directory and integrations; a running Tomcat alone cannot establish their health.

Support lifecycle comes before installation

Data Center licensing does not make this single-node host highly available
Choice Support/license Platform decision Suitable purpose
Jira 9.12.40 Data Center 9.12 EOS: 29 November 2025; later patch publication does not renew that window; DC entitlement required Preserved Java 17/PostgreSQL 15 scope; verify distribution and app/plugin matrix Isolated legacy restore/evaluation and migration rehearsal
Currently supported Jira Data Center release Verify the current support policy, subscription and migration options Use that release’s own Java, database and app compatibility matrix New self-managed production after approval/sizing
Jira Cloud Cloud subscription; Atlassian operates platform maintenance No local PostgreSQL/JVM deployment; migration/app/data residency review Teams choosing managed hosting with acceptable integration constraints

Jira 9.12 release notes and stated end of life

Current Atlassian support policy

A private application and database behind TLS

The user reaches Nginx over HTTPS, which forwards to Tomcat's loopback connector; Jira then uses loopback PostgreSQL. Jira Home contains attachments and persistent state, while the install directory contains binaries and the connector. This single node has no failover. HA requires a separate supported cluster, shared-home and database design, not a copied service unit.

HTTPS proxy → loopback Jira → loopback PostgreSQL; attachments live in Jira Home
HTTPS proxy → loopback Jira → loopback PostgreSQL; attachments live in Jira Home — Open the diagram to zoom.

Before you start

This guide installs one Jira node and its database on a fresh Ubuntu Server 24.04 LTS amd64 host. A practical starting point for a small installation is 4 vCPU, 8 GB RAM and 40 GB free disk. You need a sudo account, internet access and a valid Jira Data Center license or an available evaluation license. Sizing depends on users and attachments.

Jira 9.12 reached its documented end of support on 29 November 2025. The 9.12.40 maintenance release exists, but its publication does not establish a renewed support lifecycle. Jira Server support ended on 15 February 2024; a current 9.12.40 deployment requires appropriate Data Center entitlement. Obtain a supported release for new production and assess its license before proceeding.

Use Java 17 and PostgreSQL 15. Ubuntu 24.04 normally installs PostgreSQL 16 through the unversioned postgresql package; Jira 9.12 does not support that database major. We therefore install postgresql-15 explicitly from PGDG. Atlassian documents Linux support generally; this guide does not claim certification of Ubuntu 24.04 for this older Jira release. Commands below have been reviewed against documentation, not executed on a live Jira server.

Run the commands in order in Bash on Ubuntu, not in Windows PowerShell. This is a new installation, not an upgrade of an existing Jira. The database stays local; do not open TCP 5432 to the network.

The historical 9.12 supported-platform page lists Java 11/17 and PostgreSQL 12–15; PostgreSQL 16 from Ubuntu Noble’s generic package is outside that matrix. It names Oracle/Eclipse Temurin Java distributions. The Ubuntu OpenJDK 17 package below is a documentation-reviewed lab choice, not a claim of Atlassian certification of that distribution or Ubuntu 24.04. For a supported production release, select its explicitly supported JVM distribution and database version. Plan enough disk for attachments, indexes and a full recovery copy in addition to the small-node starting budget.

Prepare Ubuntu and Java

BASH
cat /etc/os-release
uname -m
free -h
df -h /
sudo apt update
sudo apt upgrade -y
sudo apt install -y curl ca-certificates gnupg openjdk-17-jdk-headless fontconfig
java -version
timedatectl status
sudo timedatectl set-ntp true

The OS must be Ubuntu 24.04, the architecture x86_64 and Java must report 17. If Ubuntu asks for a reboot, run sudo reboot, reconnect over SSH and continue. The service below pins Java 17 explicitly, even if another Java version is also installed.

Purpose: Prepare this legacy evaluation host without assuming current product support.

Expected result: Ubuntu 24.04 amd64, Java 17, adequate disk and correct time are confirmed.

Verification: Read OS, architecture, java version, free disk and timedatectl output.

Failure analysis: Do not continue on the wrong Java major or a pending required reboot.

Rollback: Use the pre-change host snapshot for OS rollback; preserve existing databases.

Install PostgreSQL 15

Select the database major version explicitly here so Ubuntu's default package cannot select an incompatible major. Add the official PostgreSQL repository with its dedicated signing key, then install PostgreSQL 15 specifically.

BASH
sudo install -d -m 0755 /usr/share/postgresql-common/pgdg
sudo curl --fail --show-error --location   https://www.postgresql.org/media/keys/ACCC4CF8.asc   -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc
echo 'deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt noble-pgdg main' | sudo tee /etc/apt/sources.list.d/pgdg.list
sudo apt update
sudo apt install -y postgresql-15 postgresql-client-15
sudo systemctl enable --now postgresql
pg_lsclusters
sudo -u postgres psql -p 5432 -c 'SELECT version();'

On this fresh host, pg_lsclusters should show 15/main, port 5432 and online. If another cluster already occupies 5432, stop here and resolve the port deliberately; do not remove an existing database. All remaining commands assume 15/main uses 5432.

Purpose: Select PostgreSQL 15 explicitly rather than Noble default 16.

Expected result: The intended 15/main cluster is online on the chosen port.

Verification: Check pg_lsclusters and SELECT version() on that port.

Failure analysis: A port conflict or failed repository signature is a stop condition.

Rollback: Disable only a new unused cluster; never drop an existing cluster to reuse 5432.

Create the Jira database and password

Open psql as the postgres administrator. Paste the following SQL inside psql. The password command prompts twice without putting the password into shell history. Keep that password for the browser wizard. The application account is not a superuser.

BASH
sudo -u postgres psql -p 5432
SQL
CREATE ROLE jira LOGIN NOSUPERUSER NOCREATEDB NOCREATEROLE;
SET password_encryption = 'scram-sha-256';
\password jira
CREATE DATABASE jiradb OWNER jira ENCODING 'UTF8' LC_COLLATE 'C' LC_CTYPE 'C' TEMPLATE template0;
\connect jiradb
GRANT USAGE, CREATE ON SCHEMA public TO jira;
\q

Restrict PostgreSQL to loopback. Add the two Jira authentication rules at the top of pg_hba.conf so they take precedence; leave the other packaged rules intact.

BASH
sudo -u postgres psql -p 5432 -c "ALTER SYSTEM SET listen_addresses = 'localhost';"
sudo cp -a /etc/postgresql/15/main/pg_hba.conf /etc/postgresql/15/main/pg_hba.conf.before-jira
sudo sed -i '1i host jiradb jira 127.0.0.1/32 scram-sha-256\nhost jiradb jira ::1/128 scram-sha-256' /etc/postgresql/15/main/pg_hba.conf
sudo systemctl restart postgresql@15-main
psql -h 127.0.0.1 -p 5432 -U jira -d jiradb -W -c "SELECT current_user, current_database();"
sudo -u postgres psql -p 5432 -c "SELECT datname, pg_encoding_to_char(encoding), datcollate, datctype FROM pg_database WHERE datname = 'jiradb';"

Supply the password only at the prompt. The first test should identify user jira and database jiradb; the second should return UTF8 / C / C. These results check the connection, identity and locale needed by the installation. Resolve connection or password failures before installing Jira.

Purpose: make Jira the owner of one UTF8/C/C database with password authentication, not a database administrator. Expected result: the loopback psql test returns jira/jiradb and SCRAM host rules precede broader rules. Verification: check SELECT version(), database locale and pg_hba_file_rules for parse errors. Failure analysis: an existing PostgreSQL cluster may use another port; do not drop it. Rollback: restore pg_hba.conf.before-jira and the recorded listen_addresses value, restart the intended cluster and keep the new database until recovery requirements are resolved.

BASH
sudo -u postgres psql -p 5432 -c "SELECT line_number, error FROM pg_hba_file_rules WHERE error IS NOT NULL;"
sudo ss -ltnp | grep ':5432'

Download and extract Jira

We use the official tar.gz archive, with separate installation and data directories. Verify the archive checksum against Atlassian’s download archive if provided before extracting. A locally calculated hash alone does not verify authenticity.

BASH
sudo useradd --system --create-home --home-dir /var/lib/jira --shell /usr/sbin/nologin jira
sudo install -d -o jira -g jira -m 0750 /var/atlassian/application-data/jira
sudo install -d -m 0755 /opt/atlassian
mkdir -p ~/jira-install
cd ~/jira-install
JIRA_VERSION=9.12.40
curl --fail --location --show-error   "https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-${JIRA_VERSION}.tar.gz"   -o "atlassian-jira-software-${JIRA_VERSION}.tar.gz"
sha256sum "atlassian-jira-software-${JIRA_VERSION}.tar.gz"
tar -tzf "atlassian-jira-software-${JIRA_VERSION}.tar.gz" | head
sudo tar -xzf "atlassian-jira-software-${JIRA_VERSION}.tar.gz" -C /opt/atlassian
sudo ln -s "/opt/atlassian/atlassian-jira-software-${JIRA_VERSION}-standalone" /opt/atlassian/jira
sudo chown -R jira:jira "/opt/atlassian/atlassian-jira-software-${JIRA_VERSION}-standalone"
echo 'jira.home=/var/atlassian/application-data/jira' | sudo tee /opt/atlassian/jira/atlassian-jira/WEB-INF/classes/jira-application.properties
sudo chown jira:jira /opt/atlassian/jira/atlassian-jira/WEB-INF/classes/jira-application.properties

The application path is /opt/atlassian/jira and Jira Home is /var/atlassian/application-data/jira. The archive includes Tomcat and the PostgreSQL JDBC driver; no separate Tomcat or SQL Server installation is needed. Never continue if the download or extraction failed.

Purpose: Separate versioned application binaries from durable Jira Home.

Expected result: The 9.12.40 archive extracts and the jira user owns the documented paths.

Verification: Inspect archive listing, published integrity metadata and symlink/ownership.

Failure analysis: Stop on failed downloads, wrong archive root or an existing install path.

Rollback: Restore the recorded install symlink/config; retain Home/database and archive.

Create and start the service

Bind the HTTP connector to loopback for safe initial setup through an SSH tunnel. This edit must match the connector line shown by grep. If the address is not present after the edit, use sudo nano /opt/atlassian/jira/conf/server.xml and add address="127.0.0.1" to the Connector with port="8080" manually.

BASH
sudo cp -a /opt/atlassian/jira/conf/server.xml /opt/atlassian/jira/conf/server.xml.before-jira
sudo sed -i 's/<Connector port="8080"/<Connector address="127.0.0.1" port="8080"/' /opt/atlassian/jira/conf/server.xml
grep -n -A 5 '<Connector' /opt/atlassian/jira/conf/server.xml
sudo tee /etc/systemd/system/jira.service > /dev/null <<'EOF'
[Unit]
Description=Jira Software
After=network.target postgresql@15-main.service
Requires=postgresql@15-main.service

[Service]
Type=simple
User=jira
Group=jira
Environment=JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
Environment=JRE_HOME=/usr/lib/jvm/java-17-openjdk-amd64
WorkingDirectory=/opt/atlassian/jira
ExecStart=/opt/atlassian/jira/bin/start-jira.sh -fg
Restart=on-failure
RestartSec=10
TimeoutStopSec=180
KillSignal=SIGTERM
UMask=0027
LimitNOFILE=65536

[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable --now jira
sudo systemctl status jira --no-pager
sudo journalctl -u jira -n 80 --no-pager
sudo ss -ltnp | grep ':8080'
curl -I http://127.0.0.1:8080/

Startup can take several minutes. Port 8080 must listen on 127.0.0.1. HTTP 200 or a redirect indicates that the web application is responding. A running systemd process alone does not prove Jira finished starting; inspect logs and the browser too.

The service runs the archive’s foreground startup script as jira with Java 17 pinned. Verify that the selected archive honors -fg and that SIGTERM completes a clean shutdown; the systemd unit has been statically reviewed, not exercised against a live JVM here. Expected result: only loopback listens on 8080 and logs reach application-ready state. Failure analysis: inspect JVM selection, home ownership and catalina/application logs. Rollback: stop/disable this new jira unit and restore the backed-up connector; do not remove Jira Home or the database.

Complete setup in your browser

On your own computer, open a terminal and establish the SSH tunnel below. Replace YOUR_SSH_USER and YOUR_SERVER_IP with real values. Keep the session open, then visit http://localhost:8080 in your browser.

BASH
ssh -L 8080:127.0.0.1:8080 YOUR_SSH_USER@YOUR_SERVER_IP

Choose “I will set it up myself” / manual setup, then “My own database”, and select PostgreSQL. Enter Hostname: 127.0.0.1; Port: 5432; Database: jiradb; Username: jira; Password: the password from step 4; Schema: public. Click Test Connection, and only continue when it succeeds. Do not choose the built-in evaluation database.

Set the application title. For this tunneled initial setup, use http://localhost:8080 as the temporary Base URL. Activate your Data Center license, create the administrator with a unique strong password, and finish the wizard. SMTP can be skipped initially. Once you configure a real HTTPS address, update Base URL to that address.

Test persistence by creating a Scrum or Kanban project and recording an issue. Refresh the page, restart Jira and open the same issue again. This establishes basic cooperation between the application and database; it does not replace recovery or integration testing.

BASH
sudo systemctl restart jira
sudo journalctl -u jira -n 50 --no-pager

Purpose: Connect the evaluation node to the intended PostgreSQL database.

Expected result: Database test passes and an issue persists across a Jira restart.

Verification: Verify issue creation, attachment upload and an authenticated return visit.

Failure analysis: Check loopback port, SCRAM password, public schema ownership and JDBC logs.

Rollback: Stop the node, preserve its initialized database/home and restore only on an isolated target.

Optional: give users an HTTPS address

For access by other users, use Nginx in front of Jira. You need a real domain pointing to the server, public TCP 80/443 reachability for HTTP-01 issuance, and a permitted SSH connection. Replace jira.example.com and admin@example.com everywhere below. This example assumes a dedicated host without an existing Nginx site; an internal-only deployment needs an internal CA or DNS-01 instead.

BASH
sudo apt install -y nginx certbot python3-certbot-nginx
sudo tee /etc/nginx/sites-available/jira > /dev/null <<'EOF'
server {
    listen 80;
    server_name jira.example.com;
    client_max_body_size 100m;
    location / {
        proxy_pass http://127.0.0.1:8080;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_connect_timeout 30s;
        proxy_read_timeout 300s;
    }
}
EOF
sudo ln -s /etc/nginx/sites-available/jira /etc/nginx/sites-enabled/jira
sudo nginx -t
sudo systemctl enable --now nginx
sudo systemctl reload nginx
sudo certbot --nginx -d jira.example.com --email admin@example.com --agree-tos --redirect
sudo certbot renew --dry-run

If a firewall is active, allow TCP 80/443 in that firewall and the upstream firewall. Keep SSH access working. Do not expose 8080 or 5432. After the certificate succeeds, edit the Jira connector:

BASH
sudo nano /opt/atlassian/jira/conf/server.xml

On the Connector with port="8080", add the attributes below, keeping its existing attributes and address="127.0.0.1". Replace the domain. Do not create a second connector.

XML
scheme="https"
secure="true"
proxyName="jira.example.com"
proxyPort="443"
BASH
sudo systemctl restart jira
sudo nginx -t
curl -I https://jira.example.com/

Open https://jira.example.com, then Administration → System → General configuration → Edit settings, and set Base URL to https://jira.example.com. Verify login, issue creation and attachment upload. The 100 MB Nginx limit is an example; Jira’s attachment limit is configured separately.

Purpose: terminate TLS at Nginx while Jira stays private. Expected result: a trusted certificate, correct HTTPS redirects and working issue/attachment operations. Verification: nginx -t, curl, expiry/renewal checks and Jira Base URL/connector attributes. Failure analysis: a 502 is an upstream/JVM problem; mixed redirects require matching proxyName/proxyPort/scheme and Base URL. Rollback: restore the recorded Nginx/connector configuration and temporary tunneled Base URL; keep 8080/5432 unexposed. Restrict administrative paths and use your approved SSO/account policy before general access.

Do we need SQL Server?

No. Jira uses one database backend. PostgreSQL 15 completes this installation, so installing SQL Server alongside it adds nothing. If your organization requires Microsoft SQL Server, use it instead of PostgreSQL and follow the Jira 9 database matrix and the version-specific SQL Server setup guide; do not connect one Jira instance to both databases.

Restore into an isolated recovery database first

Use a separate recovery host with the same Jira 9.12.40 build, Java choice, PostgreSQL 15 and a recreated jira role. Block outbound mail, webhooks and application integrations. The commands below create a new database named jiradb_restore and do not overwrite jiradb. BACKUP_DIR must be the absolute path of the securely copied timestamped backup directory; enter it explicitly before the script.

BASH
sudo bash <<'EOF'
set -euo pipefail
read -r -p 'Absolute recovery backup directory: ' backup_dir < /dev/tty
test -f "$backup_dir/jiradb.dump"
runuser -u postgres -- createdb -p 5432 -O jira -T template0 -E UTF8 --lc-collate=C --lc-ctype=C jiradb_restore
runuser -u postgres -- pg_restore -p 5432 --exit-on-error --no-owner --role=jira -d jiradb_restore < "$backup_dir/jiradb.dump"
runuser -u postgres -- psql -p 5432 -d jiradb_restore -c "SELECT count(*) FROM information_schema.tables WHERE table_schema='public';"
EOF

Expected result: restore exits successfully and the new database has Jira tables. Failure analysis: an existing jiradb_restore is a stop condition; do not add --clean to hide it. On that isolated host, restore Jira Home into the intended separate path, correct jira ownership, point its private dbconfig.xml at jiradb_restore, and start only the recovery node. Validate issues, attachments, users and a reindex without sending real notifications. Database row counts alone do not prove the recovered application.

Rollback after a Jira upgrade is a complete matching-version database/home/software restore, not a database schema downgrade or symlink swap alone. Validate app compatibility and the destination release’s Java/PostgreSQL matrix before each upgrade. Retain the older artifacts until the agreed recovery window closes.

Common installation errors

Connection refused: check pg_lsclusters and the configured port. Password authentication failed: retest with psql -h 127.0.0.1 -U jira -d jiradb -W; reset using \password jira as postgres if needed. No pg_hba.conf entry: verify the two host rules and restart postgresql@15-main. Do not use trust authentication to hide the error.

If Jira will not start, inspect journalctl and catalina.out for Java or permission errors. For Nginx 502, first check the local response on port 8080. Trace incorrect HTTPS redirects through proxyName, proxyPort, scheme and Base URL. Dbconfig.xml and complete logs can contain credentials and must not be posted to public tickets.

BASH
sudo journalctl -u jira -n 100 --no-pager
sudo tail -n 100 /opt/atlassian/jira/logs/catalina.out
sudo tail -n 100 /var/atlassian/application-data/jira/log/atlassian-jira.log
sudo systemctl status postgresql@15-main --no-pager
curl -I http://127.0.0.1:8080/

Monitor startup duration, heap/GC pressure, request latency, disk/inodes, database connection saturation, backup age, certificate expiry and user-visible issue/attachment operations. Capture thread dumps only through an approved diagnostic process and protect them as sensitive. Investigate repeated reindexing or long database queries before increasing heap blindly. A green process state is not a service-level availability check.

Take an initial backup

Back up PostgreSQL and Jira Home together while Jira is stopped so attachments match the database. The backup commands run in a root shell, use a private timestamped folder and restart Jira afterward. They do not delete or overwrite older backups. Copy the backup securely to another host; a copy on the same disk is not sufficient.

BASH
sudo bash <<'EOF'
set -euo pipefail
umask 077
backup_dir="/var/backups/jira/$(date +%Y%m%d-%H%M%S)"
mkdir -p "$backup_dir"
systemctl stop jira
trap 'systemctl start jira' EXIT
runuser -u postgres -- pg_dump -p 5432 -Fc jiradb > "$backup_dir/jiradb.dump"
tar -czf "$backup_dir/jira-home.tar.gz" -C /var/atlassian/application-data jira
tar -czf "$backup_dir/jira-install.tar.gz" -C /opt/atlassian atlassian-jira-software-9.12.40-standalone
cp /etc/systemd/system/jira.service "$backup_dir/"
if [ -f /etc/nginx/sites-available/jira ]; then cp /etc/nginx/sites-available/jira "$backup_dir/nginx-jira.conf"; fi
pg_restore --list "$backup_dir/jiradb.dump" > "$backup_dir/dump-list.txt"
tar -tzf "$backup_dir/jira-home.tar.gz" > "$backup_dir/home-list.txt"
echo "Backup saved: $backup_dir"
EOF
sudo systemctl status jira --no-pager

The archive contains database credentials and private attachments; encrypt off-host copies. Listing archives checks readability, not full recoverability. Before relying on backups, restore them to a separate test host with the same Jira version. Certificate/private-key backup for the optional HTTPS setup must follow your organization’s secure backup process.

Stop writes → capture PostgreSQL and Jira Home together → restore to an isolated matching-version host
Stop writes → capture PostgreSQL and Jira Home together → restore to an isolated matching-version host — Open the diagram to zoom.

Record the installed Jira build, application versions, JVM, JDBC driver, database major, license/entitlement and directory layout with each backup. The archive recipe includes Jira Home and the installation tree, but recovery also needs secrets, service/proxy configuration and securely handled certificate keys. Define retention, encryption, off-host replication and a restore time target. An archive-list test proves readability only.

Questions from deployment reviews

Does the 9.12.40 patch make Jira 9.12 supported again?

No renewed support window is established by patch availability. The 9.12 release notes state 29 November 2025 EOS; choose a supported release for new production.

Is a Data Center license enough for HA?

No. This is one application node and one local database on one host. HA needs a separately designed supported cluster, shared state and database resilience.

Official references

Jira 9.12.40 release, 5 October 2026

Official download archives

Version-specific database matrix

Official PostgreSQL Ubuntu repository

Jira 9 PostgreSQL database settings

Jira 9.12 archive installation workflow

Official command-line download pattern

Version-specific Jira 9.12 platform/JVM matrix

Jira database and home backup requirements

Share

Meet AJInfrastructure & DevOps
Loading…