Troubleshooting Postgres database sanity check failures

Last Updated : Apr 26, 2023 |

About this task

The periodic maintenance test of the Postgres database failure might indicate that the Postgres service might not be running.

To troubleshoot the database failure, you must perform the troubleshooting steps for Avaya Breeze® platform and System Manager. You must have root user privileges to perform the troubleshooting steps on System Manager.

Procedure

  1. Perform the following steps for Avaya Breeze® platform:
    1. On the System Manager Home page, under Elements, select Avaya Breeze® platform.
    2. Select System Tools and Monitoring  > Maintenance Tests.
    3. Select the affected Avaya Breeze® platform instance from the Select Target list.
    4. Select the Test Postgres database sanity test.
    5. Click Execute Selected Tests.
    6. If the test passes, clear the alarm. The problem no longer exists, and you do not need to continue with this procedure.
    7. If the test fails, establish an SSH connection to the Avaya Breeze® platform instance using either the craft login (Avaya) or an established customer login.
    8. Run the statapp command to verify the status of postgres-db.
    9. If the status of postgres-db is Down, run the command restart postgres-db and wait for the Postgres service to restart.
    10. If the status of postgres-db is Partially UP, wait for the status to change to Up.
    11. Run the statapp command to verify the status of postgres-db.
    12. Run the Test Postgres database sanity test again.
    13. If the test still fails, reboot the Avaya Breeze® platform server using the Shutdown System  > Reboot option on the Avaya Breeze® platform Server Administration page.
  2. Perform the following steps for System Manager:
    1. On the System Manager Home page, under Elements, select Session Manager.
    2. Select System Tools and Monitoring  > Maintenance Tests.
    3. Select System Manager from the Select Target list.
    4. Select the Test Postgres database sanity test.
    5. Click Execute Selected Tests.
    6. If the test passes, clear the alarm. The problem no longer exists, and you do not need to continue with this procedure.
    7. Run the systemctl status postgresql command to verify the Postgres service is running.
    8. If the Postgres service is up, the problem no longer exists and you do not need to continue with this procedure.
    9. If the services is down, run the systemctl restart postgresql command.
    10. Wait for the Postgres service to restart.
    11. Run the systemctl status postgresql command to verify the Postgres service is running.
    12. If the Postgres service is still down, check the available disk space in the /var partition.
    13. If enough disk space exists, reboot the server.

Next Steps

If the problem persists, contact Avaya Support: https://support.avaya.com.