Why does the TSPS database process show an incorrect status as 'Running' when the Process ID (PID) for the database does not exist? |
TrueSight Presentation Server uses a Postgres database. If the database process is terminated abnormally. for example, due to power outage, server crash or the database forcefully killed by an administrator then the postmaster.pid file which is used to keep track of last status of the database process may not be deleted and running the ‘tssh server status’ command returns false output.
Process status
=====================================
Core Server Not running
Index Server Not running
Database Server Running (28081)
[patrol@mypsdevserver ~]$ tssh server stop
+-------------------------------------------------------------------------------------------+
| BMC TrueSight Presentation Server - Command Line Interface 2020 version 11.3.04 |
| Copyright 2014-2020. BMC Software, Inc. as an unpublished work. All rights reserved. |
+-------------------------------------------------------------------------------------------+
Stopping server ....
Done.
[patrol@mypsdevserver ~]$ tssh server status
+-------------------------------------------------------------------------------------------+
| BMC TrueSight Presentation Server - Command Line Interface 2020 version 11.3.04 |
| Copyright 2014-2020. BMC Software, Inc. as an unpublished work. All rights reserved. |
+-------------------------------------------------------------------------------------------+
Process status
=====================================
Core Server Not running
Index Server Not running
Database Server Running (28081)
[patrol@mypsdevserver ~]$ kill -9 28081
-bash: kill: (28081) - No such process
|