You can face a failure to deploy FortiSOAR license during the FortiSOAR deployment process if an unsupported version of Java is installed on your CentOS. You will see errors such as:
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/fortinet/api/fcp/FCPClient has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
SolutionCheck the Java version on your system using the following command:
This issue also displays the following "Failed to sync with FDN" error on the FortiSOAR UI:
The output of this command should be similar to: openjdk version "11.0.12" 2021-07-20 LTS. If the output is different, then you need to change the Java version using the following command:
update-alternatives --config java
This command lists all the Java versions present on your system. Select the version that mentions "java-11-openjdk".
Once you have selected the correct version of Java, you can deploy your FortiSOAR license and the continue with configuring FortiSOAR.