Created on
05-07-2025
08:09 AM
Edited on
12-10-2025
05:31 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
Note: The same error has been observed while upgrading from v7.3.4/v7.3.5 to v7.4.0. It would not be possible to upgrade from v7.3.4/v7.3.5 to v7.4.0.
The following errors are observed in such a scenario.
For versions 7.3.4 and above, the next upgrade must be v7.4.1 or later because v7.3.4 contains database schema changes that are not present in v7.4.0.
It is important to follow major and minor version release notes to avoid such issues. If AppSvr remains down in such a scenario, the best practice is to revert back to the working snapshot at the VM level and start the upgrade again as per the supported upgrade version.
Related article: |
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.