When attempting to upgrade AAI the upgrade fails with a Java AWT error indicating a connection failure to the X11 window server․ This issue typically occurs when performing an upgrade on a headless server without a display variable set, or when the upgrade.properties file is missing required configuration for an unattended upgrade.
ERROR MESSAGE: "[java] Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable."
SYMPTOMS:
Upgrade script terminates prematurely
Log contains: "Property ${jaws.existing.dir} has not been set"
GUI installer attempts to launch but fails
AAI
Linux without x11
The installer attempts to launch a GUI by default․ If the X11 DISPLAY variable is not set and no upgrade.properties file exists to trigger a silent/headless upgrade, the Java process fails to initialize the graphics environment․ Additionally, the error Property ${jaws.existing.dir} has not been set confirms the installer could not locate the existing installation path․
The error indicates the X11 variable is not set which is required for the upgrade unless you are trying a unattended upgrade.
Example upgrade.properties file when using an SQL Server or PostgreSQL database
jaws.existing.dir=/opt/Automation_Analytics_Intelligence
jaws.upgrade.caution.reviewed=true
jaws.upgrade.auto=true
Example upgrade.properties file when using an Oracle database
jaws.existing.dir=/opt/Automation_Analytics_Intelligence
jaws.upgrade.caution.reviewed=true
jaws.upgrade.auto=true
oracle.data.device.name=AAI_PROD_DATA
oracle.index.device.name=AAI_PROD_INDICES
jaws.existing.dir would be your current AAI install directory.
For Oracle you will also need the name of the DATA and INDICES tablespaces.