Created on
05-07-2025
08:09 AM
Edited on
09-23-2025
12:39 AM
By
Jean-Philippe_P
Description | This article describes how to resolve the AppSvr error 'Unable to build Hibernate SessionFactory', which occurs during an upgrade. |
Scope | FortiSIEM. |
Solution |
While performing an upgrade, the upgrade fails, and the following errors have been observed in the upgrade logs.
Log location: /usr/local/upgrade/logs/ansible.log [1;31m[13:23:17] ↳ appserver : APPSERVER | Deploying EAR file into glassfish domain1 using the standard approach ...| localhost | FAILED | 1m1s
The following are two of the possible root causes for this error during the upgrade. Methods to resolve each are provided.
Case 1: The upgrade failed because the dbleader host entry was not present in the /etc/hosts file.
vi /etc/hosts ##profile.on dbvip
Note: X.X.X.X is the IP Address of the Supervisor; replace it with the actual IP address of the Supervisor.
After adding the entry, save the file.
cd /usr/local/upgrade ansible-playbook post-upgrade.yml --start-at-task="<task_name>" | tee -a /usr/local/upgrade/logs/ansible_continued_upgrade.log
The 'task_name' can be found with the following command:
ansible-playbook --list-task post-upgrade.yml
Case 2: AppSvr deployment failed during upgrade due to AppSvr password mismatch
cat /tmp/passwords.txt
Locate the following line: <property name="password" value="${ALIAS=phdbpwd}"></property>
Change it to <password_as_noted_above> without <,>.
<property name="password" value="<password_as_noted_above>"></property> Save the file:
cd /usr/local/upgrade ansible-playbook post-upgrade.yml --start-at-task="<task_name>" | tee -a /usr/local/upgrade/logs/ansible_continued_upgrade.log
|
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.