After the hosting OS security patch, we keep getting this sun.awt.X11FontManager missing error. I tried to reinstall openJDK. The problem still exist after reinstall openJDK.
Hi Vu,
Could you let me know what specific OS you are running here (Windows, Mac, Linux)? As well as which specific version (Windows 2012, Ubuntu 20.04 LTS, Mac 10.15.6?) And what version of that OS you were running before AND after this upgrade?
I'd also be curious to know what version of Jira server this is. I would like to try to recreate this problem so that I can better understand the scope and depth of this problem. By itself, that error does not tell me much.
Where do you see that error? In the logs? In the Jira webpage somewhere?
What functionality of Jira appears to be affected by this?
Please let me know.
Andy
Hi Andy:
The OS we are running JIRA on is SUSE 15 SP1.
The security patch we applied had conflict with the following libraries:
- libyui-qt-pk8
- libyui-ncurses-pkg8
- libzypp.so
We had to break the dependencies to install the patch. After that, the health check issue related to X11FontManager start to appear. Also, these caused the page layout to display incorrectly.
Thanks again for your help.
-Vu Tran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please see attached for the imaged issue in the Instance health checks. The layout issue occurs when I went to view the Dashboards and Projects. Also, we ran Jira Software 8.6, so my thought was to upgrade to Jira Software 8.11 might fix the issue. After the upgrade, the layout issue seemed to be corrected itself; however, the "X11FontManager" class initialization issue is still persisted.
Thank you and please let me know if you need any other information.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I found a few other support cases that have this same error. It appears that the operating system update could also be updating the version of Java (or OpenJDK) that the system is running. In at least two other cases, I found that this error happened for users that updated from openjdk version
java-11-openjdk-1:11.0.6.10-3.el7.x86_64
java-11-openjdk-headless-1:11.0.6.10-3.el7.x86_64
to
java-11-openjdk-1:11.0.7.10-4.el7_8.x86_64
java-11-openjdk-headless-1:11.0.7.10-4.el7_8.x86_64
Right now, the suggestion has been to install the previous version of openjdk here, and set that as the JAVA_HOME. Once you do that, you should be able to restart Jira to correct this problem. There are steps on how you can do this in How to run Jira Server on AdoptOpenJDK.
Alternatively, you might be able to follow the steps in Font display problem in gadgets and database monitoring graph in Jira server in order to manually install the needed fonts. I believe that either method could correct this problem.
Let me know if you run into problems with either of these.
Andy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Andy:
It was indeed we had java-11-openjdk(11.0.7.0) installed. I installed the new update of java-11-openjdk(11.0.8.0) which is available as a distribution update. The problem still exists, so just FYI.
I would like to see if the 2nd option is a doable fix at this point. Do you have specific instruction for installing the fonts on Suse using Yast?
From what I can tell, dejavu-fonts-common was already installed. I was not able to locate the other fonts in the available distribution.
Please let me know if you have more information on the 2nd option.
Thanks.
-Vu Tran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vu,
Sorry for the delay in response, I was on leave for a while. I tried to take a closer look at this problem on my own system. I installed OpenSuse 15.2, on a virtual machine and then updated the openJDK to 11.0.8. After that I installed Jira 8.11.1. In my test instance though, I do not appear to have this same error in regards to the fonts.
I understand this might not be the same situation as your environment that upgraded Java to an existing installation of Jira here. But I was expecting to encounter the same problem if it was only the version of Java that caused this problem.
So I am interested to see what else might be different in your environment. That healthcheck warning does redirect you to this kb https://confluence.atlassian.com/jirakb/health-check-fonts-965568867.html and we have known that this error indicates that a package such as fontconfig is not installed or Jira does not have access to the system fonts. That KB does indicate that Jira Server has started to include an font install script you can try to run to install these packages.
To install the font package:
- Change to the
/bin
directory of your Jira installationRun the
install_fontconfig.sh
script.
$ sudo ./install_fontconfig.sh
- Restart Jira.
I am curious to see if perhaps those steps alone might help fix this.
If that doesn't help then I'd like to try to learn more about your environment here. If you do a
java -version
Could you let me know which version is currently installed here? I'm curious if this is the system openjdk or some other variant such as adoptopenjdk, etc.
Please let me know.
Andy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Andy:
We have installed SLES 15 SP1(which is the enterprise version od Suse), so I am not sure if these make a difference.
Also, the install_fontconfig.sh doesn't have the installation script for Suse specifically. Can you provide those by any chance?
Thanks again for your help.
-Vu Tran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't have a command line script to do this install for opensuse, but I found that this package is listed on their packages page of https://software.opensuse.org/package/fontconfig
Which does appear to offer the ability to direct install. Perhaps this is an alternative way to make sure that this package is installed on your system. I also found that in my version, I could also find this package in YaST2 where fontconfig appeared to be already installed and updated in my installation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Vu Tran Most likely you are missing the font package. If you are using Linux like OS
See the how to do it here Jira Server 7.13 or later fails with FontConfiguration error when installing on Linux operating systems
Kind regards,
Moses
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Moses:
Thanks again for that post. I previously saw the same post and did confirmed that fontconfig was installed.
Also I tried to reinstall it in case the system updates had to break the dependencies to resolve the conflicts. The issue still persists, however.
Kind regards,
Vu Tran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.