MongoDb Error State
In previous versions of the Gateway Ui, only two states were displayed for a remote agent: connected (green) and disconnected (yellow). When both updater components were connected (green) but the remote agent component displayed disconnected (yellow), this typically indicated some kind of error state.
Some of the reasons for the above state include:
A connectivity issue where the updater components can connect (updaters can connect to any gateway), but the remote agent cannot (the remote agent must connect to a specific cluster).
A database (MongoDb) issue. The remote agent could not start properly due to MongoDb being unavailable.
The remote agent service is stopped.
In order to make diagnosis easier, we have added additional state information specifically for the MongoDb database. If the remote agent component can connect, but cannot fully start due to a database issue, the RA block will display as red.
A red indicator means the remote agent service is running and can successfully connect, however the database is unavailable. In order to determine the reason for the database issue, you can inspect the alerts/events, or, inspect the remote agent log file.
The most common reason for the database to show as errored is a remote agent being re-keyed. When a remote agent is re-keyed, it can not longer access a previous database. To correct this issue, the existing database files must be deleted.