Jira Server 7.13 or later fails with FontConfiguration error when installing on Linux operating systems

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

When installing Jira Server or Data Center 7.13 or later with AdoptOpenJDK on Linux, users can get the following error. We noticed it while viewing Project reports however users can get it on other pages too.

1 2 3 2019-01-03 15:36:11,699 http-nio-8898-exec-4 ERROR [o.a.c.c.C.[.[localhost].[/sd4_obr_eap08].[action]] Servlet.service() for servlet [action] in context with path [/sd4_obr_eap08] threw exception [java.lang.NullPointerException] with root cause java.lang.NullPointerException ...

It can also prevent Jira from starting:

1 2 3 4 5 2024-06-06 13:22:07,490+0000 main ERROR [c.a.jira.upgrade.PluginSystemLauncher] A fatal error occured during initialisation. JIRA has been locked. com.atlassian.jira.InfrastructureException: Error occurred while starting Plugin Manager. Cannot invoke "org.apache.felix.framework.Felix.getBundleContext()" because "this.felix" is null ... Caused by: java.lang.NullPointerException: Cannot invoke "org.apache.felix.framework.Felix.getBundleContext()" because "this.felix" is null ...

Cause

AdoptOpenJDK does not include a font configuration package, which Jira relies on. If your Linux distribution does not include a suitable font configuration package, you will need to install one.

Resolution

To solve this problem, install fontconfig (or an equivalent), and then install Jira.

Use our script to install

Available for Jira 8.2 or later

If you're using Ubuntu, CentOS, RedHat Enterprise (RHEL), Debian, or Fedora, we've created a script to install the required package for you.

To install the font package:

  1. Change to the /bin directory of your Jira installation

  2. Locate and run the install_fontconfig.sh script.

  3. Run the Jira installer again.

Install it yourself

Here are the commands to install font dependency in a number of common Linux distributions and package managers.

Ubuntu

To install the fontconfig package on Ubuntu 18:

1 sudo apt install -y fontconfig

CentOS 7

CentOS 7 does not work with fontconfig. You can install dejavu-sans-fonts as an alternative:

1 sudo yum install -y dejavu-sans-fonts

CentOS 6

1 sudo yum install -y fontconfig dejavu-sans-fonts

RHEL

To install fontconfig on RedHat Enterprise Linux 7.5:

1 sudo yum install fontconfig

Debian

To install the fontconfig package on Debian 9.5:

1 apt-get update && apt-get install -y fontconfig

Fedora

To install the fontconfig package on Fedora 28:

1 dnf install -y fontconfig
Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.