Confluence 6.13 or later fails with FontConfiguration error when installing on Linux OS

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

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


When installing Confluence Server or Data Center 6.13 or later with AdoptOpenJDK on Linux, installation fails with the following error. 

Starting Installer ...
    at sun.awt.FontConfiguration.getVersion(
    at sun.awt.FontConfiguration.readFontConfigFile(
    at sun.awt.FontConfiguration.init(
    at sun.awt.X11FontManager.createFontConfiguration(
    at sun.font.SunFontManager$
    at Method)
    at sun.font.SunFontManager.<init>(
    at sun.awt.FcFontManager.<init>(
    at sun.awt.X11FontManager.<init>(
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
    at java.lang.reflect.Constructor.newInstance(
    at java.lang.Class.newInstance(
    at sun.font.FontManagerFactory$
    at Method)
    at sun.font.FontManagerFactory.getInstance(
    at sun.font.SunFontManager.getInstance(
    at sun.font.FontDesignMetrics.getMetrics(
    at sun.swing.SwingUtilities2.getFontMetrics(
    at javax.swing.JComponent.getFontMetrics(
    at javax.swing.text.WrappedPlainView.updateMetrics(
    at javax.swing.text.WrappedPlainView.updateChildren(
    at javax.swing.text.WrappedPlainView.insertUpdate(
    at javax.swing.plaf.basic.BasicTextUI$RootView.insertUpdate(
    at javax.swing.plaf.basic.BasicTextUI$UpdateHandler.insertUpdate(
    at javax.swing.text.AbstractDocument.fireInsertUpdate(
    at javax.swing.text.AbstractDocument.handleInsertString(
    at javax.swing.text.AbstractDocument.insertString(
    at javax.swing.text.PlainDocument.insertString(
    at javax.swing.JEditorPane.setText(
    at javax.swing.JEditorPane.<init>(
    at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.init(
    at com.install4j.runtime.installer.frontend.headless.ConsoleScreenExecutor.<init>(
    at com.install4j.runtime.installer.frontend.headless.InstallerConsoleScreenExecutor.<init>(
    at com.install4j.runtime.installer.Installer.getScreenExecutor(
    at com.install4j.runtime.installer.Installer.runInProcess(
    at com.install4j.runtime.installer.Installer.main(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at com.exe4j.runtime.LauncherEngine.launch(
    at com.install4j.runtime.launcher.UnixLauncher.main(


AdoptOpenJDK does not include a font configuration package, which Confluence relies on. 

Atlassian installer has a script which will attempt to install the required font configuration package in the most common Linux distributions, however if your Linux distribution is not covered by our script, and does not include a suitable font configuration package, you will need to install one manually. 


To tackle this problem, a fontconfig (or an equivalent library) should be installed prior Confluence installation.  Refer to the documentation for your Linux distribution or preferred package manager for further information about how to do this.

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

Installing the below packages may need a restart of your Confluence instance


To install the fontconfig package on Ubuntu 18:

sudo apt install -y fontconfig


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

sudo yum install -y dejavu-sans-fonts


To install fontconfig on RedHat Enterprise Linux 7.5:

sudo yum install fontconfig
Later versions, including RHEL8, should also work similarly.

On RHEL 6, it might be necessary to install both the dejavu-sans-fonts  and the fontconfig  packages:

sudo yum install -y dejavu-sans-fonts


To install the fontconfig package on Debian 9.5:

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


To install the fontconfig package on Fedora 28:

dnf install -y fontconfig

Known issues

  • You can't use the Linux installer to install Confluence on OpenSUSE. You will need to install Confluence manually using the archive file. See  CONFSERVER-57895 - Getting issue details... STATUS  

Last modified on Oct 12, 2023

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.