Troubleshooting Tip: FortiClientEMS PostgreSQL docker container node keeps restarting
Description | This article describes how to address an issue with a PostgreSQL Docker container not coming up and keeps restarting in FortiClientEMS HA with PostgreSQL Cluster in Docker scenario. |
Scope | FortiClientEMS. Docker. HA. |
Solution | This article addresses one of the issues that may surface when creating a FortiClientEMS HA environment, as described in the following document: EMS nodes in HA with Postgres DB HA cluster using EMS PostgreSQL HA Docker, single region. One of the ways to verify Docker container status is to use the following command: This command returns an output similar to the one below when the container has been misconfigured when executing the docker container run command. ![]() Note: Restarting status. To diagnose the issue, run the following command: The output shows the container startup logs, including for the service it's hosting (in this case, the PostgreSQL service). ![]() The screenshot above indicates the issue with one of the REPMGR environment variables and, in particular, REPMGR_NODE_NAME. Here is a sudo docker container run command excerpt from the official documentation:
To resolve the issue, make sure the REPMGR_NODE_NAME is configured as per the repmgr daemon requirements. |


