FortiSIEM
FortiSIEM provides Security Information and Event Management (SIEM) and User and Entity Behavior Analytics (UEBA)
Juancacst
Staff
Staff
Article Id 247410
Description

This article explains how to fix an issue when upgrading to 6.4.X or 6.5.X or after rebooting the supervisor. Deploying the app server fails with the following error:

 

Invalid file for option: --passwordfile: java.io.FileNotFoundException: 
/tmp/glassfish-pwd.txt (No such file or directory) 

Scope Supervisor (SIEM versions 6.4.x and 6.5.x).
Solution

1) Check that the bundles file exists. If not, create it as an admin user. 

 

#  su admin 

mkdir /opt/glassfish5/glassfish/domains/domain1/autodeploy/bundles 

2) Ensure the deployment did not fail due to java heap space. If this error is seen during the app server deployment, increase the Java Heap space as per Knowledge Base article 242878. 

 

java.lang.OutOfMemoryError: Java heap space. 

3) Run the following commands and wait for the phoenix services to start naturally (it may take longer than usual, but should not take more than 10 minutes). Do not try to start the services with phtools. 

 

#  su admin 

 cd /opt/glassfish/domains/domain1/ 

rm -rf generated/ 

rm -rf osgi-cache/ 

$ kill -9 $(cat /opt/glassfish/domains/domain1/config/pid) 

4) If the phoenix processes are still down, proceed with the following commands:

 

#  su admin 

 cd /opt/glassfish/domains/domain1/ 

rm -rf generated/ 

rm -rf osgi-cache/ 

 /opt/glassfish/bin/asadmin create-domain --savemasterpassword domain2 

Enter admin user name [Enter to accept default "admin" / no password]> admin 

Enter the admin password [Enter to accept default of no password]> admin 

Enter the admin password again]> admin 

Enter the master password [Enter to accept default password "changeit"]> changeit 

Enter the master password again]> changeit 

cp -p /opt/glassfish/domains/domain1/config/admin-keyfile /opt/glassfish/domains/domain1/config/admin-keyfile.bak 

 cp -p /opt/glassfish/domains/domain2/config/admin-keyfile /opt/glassfish/domains/domain1/config/admin-keyfile 

]> yes 

echo 'admin' > /tmp/glassfish-pwd.txt 

cd /opt/phoenix/deployment 

./deploy-fresh.sh phoenix.ear 

 /opt/glassfish/bin/asadmin delete-domain domain2 

5) Once the app server deploys successfully, the phLicenseTool must return a password string similar to 1aA2BbbC3D^D. This is the password used during the second command. 

If the phLicenseTool command returns Make sure AppSvr is running, the procedure did not work. 

 

#  su admin 

phLicenseTool --showDatabasePassword 

/opt/glassfish/bin/asadmin change-admin-password 

 

Enter the admin user name [default: admin]:

 

>admin 

 

Enter the admin password:

 

>admin 

 

Enter the new admin password. For example:

 

>1aA2BbbC3D^D <- Output of "phLicenseTool --showDatabasePassword" 

 

Enter the new admin password again:

 

>1aA2BbbC3D^D 

 

If the phoenix services are still down or the phLicenseTool command returns Make sure AppSvr is running after following this procedure, collect the AOLogs from the supervisor and open a ticket with FortiSIEM support. 

 

# /opt/phoenix/bin/phziplogs /tmp/ 3

 

Contributors