Installer/upgrade error
Asked by Andrew Farren:

Trying to run installer to update existing system. Conlfuence 5.4.4

According to the upgrade path table, I should be able to upgrade directly.

Here is the log:

```
[root@confluence2 auser]# cat /tmp/install4jError8624833522081162364.log
Exception:

java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.install4j.runtime.installer.frontend.GUIHelper.invokeOnEDT(GUIHelper.java:703)
at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.init(AbstractHeadlessScreenExecutor.java:73)
at com.install4j.runtime.installer.frontend.headless.ConsoleScreenExecutor.<init>(ConsoleScreenExecutor.java:24)
at com.install4j.runtime.installer.frontend.headless.InstallerConsoleScreenExecutor.<init>(InstallerConsoleScreenExecutor.java:6)
at com.install4j.runtime.installer.Installer.getScreenExecutor(Installer.java:87)
at com.install4j.runtime.installer.Installer.runInProcess(Installer.java:56)
at com.install4j.runtime.installer.Installer.main(Installer.java:45)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:85)
at com.install4j.runtime.launcher.UnixLauncher.main(UnixLauncher.java:62)
Caused by: java.lang.reflect.InvocationTargetException
at java.awt.EventQueue.invokeAndWait(EventQueue.java:1349)
at java.awt.EventQueue.invokeAndWait(EventQueue.java:1324)
at com.install4j.runtime.installer.frontend.GUIHelper.invokeOnEDT(GUIHelper.java:699)
... 12 more
Caused by: java.lang.NullPointerException
at sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1264)
at sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:219)
at sun.awt.FontConfiguration.init(FontConfiguration.java:107)
at sun.awt.X11FontManager.createFontConfiguration(X11FontManager.java:774)
at sun.font.SunFontManager$2.run(SunFontManager.java:431)
at java.security.AccessController.doPrivileged(Native Method)
at sun.font.SunFontManager.<init>(SunFontManager.java:376)
at sun.awt.FcFontManager.<init>(FcFontManager.java:35)
at sun.awt.X11FontManager.<init>(X11FontManager.java:57)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:83)
at java.security.AccessController.doPrivileged(Native Method)
at sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74)
at sun.font.SunFontManager.getInstance(SunFontManager.java:250)
at sun.font.FontDesignMetrics.getMetrics(FontDesignMetrics.java:264)
at sun.swing.SwingUtilities2.getFontMetrics(SwingUtilities2.java:1113)
at javax.swing.JComponent.getFontMetrics(JComponent.java:1626)
at javax.swing.text.WrappedPlainView.updateMetrics(WrappedPlainView.java:318)
at javax.swing.text.WrappedPlainView.updateChildren(WrappedPlainView.java:297)
at javax.swing.text.WrappedPlainView.insertUpdate(WrappedPlainView.java:463)
at javax.swing.plaf.basic.BasicTextUI$RootView.insertUpdate(BasicTextUI.java:1610)
at javax.swing.plaf.basic.BasicTextUI$UpdateHandler.insertUpdate(BasicTextUI.java:1869)
at javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:201)
at javax.swing.text.AbstractDocument.handleInsertString(AbstractDocument.java:748)
at javax.swing.text.AbstractDocument.insertString(AbstractDocument.java:707)
at javax.swing.text.PlainDocument.insertString(PlainDocument.java:130)
at javax.swing.text.DefaultEditorKit.read(DefaultEditorKit.java:273)
at javax.swing.JEditorPane.setText(JEditorPane.java:1416)
at javax.swing.JEditorPane.<init>(JEditorPane.java:290)
at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.createEditorPane(AbstractHeadlessScreenExecutor.java:357)
at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.initFontManager(AbstractHeadlessScreenExecutor.java:309)
at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.access$400(AbstractHeadlessScreenExecutor.java:28)
at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor$2.run(AbstractHeadlessScreenExecutor.java:77)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

System properties:

java.runtime.name=OpenJDK Runtime Environment
exe4j.moduleName=/home/auser/atlassian-confluence-6.15.2-x64.bin
sun.boot.library.path=/home/auser/atlassian-confluence-6.15.2-x64.bin.12474.dir/jre/lib/amd64
java.vm.version=25.202-b08
java.vm.vendor=Oracle Corporation
java.vendor.url=https://adoptopenjdk.net/
path.separator=:
java.vm.name=OpenJDK 64-Bit Server VM
file.encoding.pkg=sun.io
user.country=US
sun.java.launcher=SUN_STANDARD
sun.os.patch.level=unknown
install4j.exeDir=/home/auser/
java.vm.specification.name=Java Virtual Machine Specification
user.dir=/home/auser/atlassian-confluence-6.15.2-x64.bin.12474.dir
java.runtime.version=1.8.0_202-b08
java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
i4jv=0
java.endorsed.dirs=/home/auser/atlassian-confluence-6.15.2-x64.bin.12474.dir/jre/lib/endorsed
os.arch=amd64
java.io.tmpdir=/tmp
line.separator=

java.vm.specification.vendor=Oracle Corporation
os.name=Linux
exe4j.totalDataLength=619413418
sun.java2d.noddraw=true
sun.jnu.encoding=UTF-8
java.library.path=/home/auser/atlassian-confluence-6.15.2-x64.bin.12474.dir/user::/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
java.specification.name=Java Platform API Specification
java.class.version=52.0
sun.management.compiler=HotSpot 64-Bit Tiered Compilers
os.version=2.6.32-504.3.3.el6.x86_64
i4j.vpt=true
install4j.cwd=/home/auser
user.home=/root
user.timezone=Etc/Universal
java.awt.printerjob=sun.print.PSPrinterJob
file.encoding=UTF-8
install4j.jvmDir=/home/auser/atlassian-confluence-6.15.2-x64.bin.12474.dir/jre
java.specification.version=1.8
java.class.path=i4jruntime.jar
user.name=root
install4j.executionMode=console
java.vm.specification.version=1.8
sun.java.command=com.install4j.runtime.launcher.UnixLauncher launch 0 0 0 com.install4j.runtime.installer.Installer
java.home=/home/auser/atlassian-confluence-6.15.2-x64.bin.12474.dir/jre
sun.arch.data.model=64
user.language=en
java.specification.vendor=Oracle Corporation
awt.toolkit=sun.awt.X11.XToolkit
java.vm.info=mixed mode
java.version=1.8.0_202
java.ext.dirs=/home/auser/atlassian-confluence-6.15.2-x64.bin.12474.dir/jre/lib/ext:/usr/java/packages/lib/ext
sun.boot.class.path=/home/auser/atlassian-confluence-6.15.2-x64.bin.12474.dir/jre/lib/resources.jar:/home/auser/atlassian-confluence-6.15.2-x64.bin.12474.dir/jre/lib/rt.jar:/home/auser/atlassian-confluence-6.15.2-x64.bin.12474.dir/jre/lib/sunrsasign.jar:/home/auser/atlassian-confluence-6.15.2-x64.bin.12474.dir/jre/lib/jsse.jar:/home/auser/atlassian-confluence-6.15.2-x64.bin.12474.dir/jre/lib/jce.jar:/home/auser/atlassian-confluence-6.15.2-x64.bin.12474.dir/jre/lib/charsets.jar:/home/auser/atlassian-confluence-6.15.2-x64.bin.12474.dir/jre/lib/jfr.jar:/home/auser/atlassian-confluence-6.15.2-x64.bin.12474.dir/jre/classes
java.awt.headless=true
install4j.appDir=/home/auser/
java.vendor=AdoptOpenJdk
file.separator=/
java.vendor.url.bug=https://github.com/AdoptOpenJDK/openjdk-build/issues
sun.font.fontmanager=sun.awt.X11FontManager
sun.io.unicode.encoding=UnicodeLittle
sun.cpu.endian=little
sun.cpu.isalist=
```


Answers:
author: Diego
body: Hello there!

As I understand, you had problems while upgrading from 5.5.4 to our latest, 6.15.2. Is that correct?

There are a few things I would like to address first. Here they are:

1. **Always** backup your database before upgrading
2. Backup your**\<confluence-home\>** and **\<confluence-install\>** folders
3. Always check the **newer version requirements**
   1. You can check the requirements for 6.15.x here**[Confluence - Supported Platforms](https://confluence.atlassian.com/doc/supported-platforms-207488198.html)**
4. **Never** try to upgrade with the instance running

So, just to be sure, check your **database, OS version** and also, if the user running this has all the **necessary permissions.**

Here is a little more information on the upgrade procedure:
> **[Upgrading Confluence](https://confluence.atlassian.com/doc/upgrading-confluence-4578.html)**

Further, the error we are facing here is due to the fact that AdoptOpenJDK does not include a font configuration package. While our installer will try to install one with the script provided, your Linux distribution may not be listed and the script will fail to do so.

You can check more information this issue here:
> **[Confluence Server 6.13 or later fails with FontConfiguration error when installing on Linux operating systems](https://confluence.atlassian.com/confkb/confluence-server-6-13-or-later-fails-with-fontconfiguration-error-when-installing-on-linux-operating-systems-960167204.html)**

Let us know if this helps you out!

comments: author: Andrew Farren
body: Installing the fonts via command on linked page fixed the issue. Thanks.

    sudo yum install -y dejavu-sans-fonts

<https://confluence.atlassian.com/confkb/confluence-server-6-13-or-later-fails-with-fontconfiguration-error-when-installing-on-linux-operating-systems-960167204.html>


author: Diego
body: Thanks for sharing with us that this fix worked for you!


Tags: confluence-server

server