Created on
11-22-2025
06:44 AM
Edited on
11-27-2025
04:53 AM
By
Stephen_G
| Description | This article describes how to reinstall CMDB from scratch and restore data. |
| Scope | FortiSIEM v7.4.1. |
| Solution |
When CMDB is crashing, especially in HA conditions, it may be needed to reset the CMDB from scratch and restore data as follows:
dnf reinstall postgresql-16 postgresql16-server postgresql16-contrib postgresql16-libs
cd /usr/local/fresh-install/
cp /opt/archive/cmdb/phoenixdb_2025-11-15T03-00-01 /tmp
psql -U phoenix phoenixdb -c "alter user phoenix password 'changeit'" /opt/phoenix/redis/bin/redis_ops.sh stop su admin cp /opt/glassfish/domains/domain1/config/admin-keyfile /opt/glassfish/domains/domain1/config/admin-keyfile.orig echo "admin;{SSHA256}UV9EsTaoxzAdtxiNMKTkb3g0WjnoUBEBgpDQIGSdOu8QhprFoWiSCw==;asadmin" > /opt/glassfish/domains/domain1/config/admin-keyfile killall -9 java echo "AS_ADMIN_PASSWORD=changeit" > /tmp/glassfish-pwd.txt echo "AS_ADMIN_ALIASPASSWORD=changeit" >> /tmp/glassfish-pwd.txt /opt/glassfish/bin/asadmin --user admin --passwordfile /tmp/glassfish-pwd.txt update-password-alias phdbpwd
phLicenseTool --showDatabasePassword <----- Make sure it is a password displayed glasspwd=$(phLicenseTool --showDatabasePassword) psql -U phoenix phoenixdb -c "alter user phoenix password '${glasspwd}'" echo "AS_ADMIN_PASSWORD=changeit" > /tmp/glassfish-pwd.txt echo "AS_ADMIN_NEWPASSWORD=${glasspwd}" >> /tmp/glassfish-pwd.txt /opt/glassfish/bin/asadmin --user admin --passwordfile /tmp/glassfish-pwd.txt change-admin-password echo "AS_ADMIN_PASSWORD=${glasspwd}" > /tmp/glassfish-pwd.txt echo "AS_ADMIN_ALIASPASSWORD=${glasspwd}" >> /tmp/glassfish-pwd.txt /opt/glassfish/bin/asadmin --user admin --passwordfile /tmp/glassfish-pwd.txt update-password-alias phdbpwd /opt/phoenix/phscripts/bin/phRestartAppServer
FortiSIEM has started with the data restored. |
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.