Operational alerts#
An operational alert is a server problem that Empowerment Center detects by itself: a license about to expire, a client database that does not respond, memory almost full, jobs waiting too long, failing deliveries. It opens when it is detected, stays while it continues and resolves itself when it disappears. This way you find out about problems without having to look at the console.
Before you start#
- You need the System administration privilege to see the alerts.
- To receive them by email you need a mail server (see Configuration and Mail) and to configure the notification mode and its recipients (below).
Do not confuse these alerts with data alerts, which watch the values of a document for users (see the User manual).
How they work#
Every minute, each instance makes a round: it looks at its memory, its disk, its queues and its jobs, and at what belongs to the whole installation (the license, the failed jobs, the credentials, the sends…). Client databases are checked every 5 minutes, all at once, opening a new session with each one (outside its pool) and waiting at most 10 seconds. With that same session each one is asked whether the connection's user sees the ECenter own database.
Then it compares what was detected with the open alerts:
- What is new opens an alert.
- What continues updates the open alert (its last message and Last time).
- What is no longer detected moves to Recovering and, if it stays undetected for 10 minutes (
ecenter.operations.alerts.recovery), resolves the alert. If it comes back before then, the alert stays open as it was and is not notified again: a problem that comes and goes does not send an email each time.
There is at most one open alert per kind, instance and object: a problem that lasts hours is one alert and one email, not one per minute. An alert cannot be closed by hand; it can only be marked as seen, so that the other administrators know someone is dealing with it. With several instances, a lock in the own database prevents the same alert from being opened twice or notified twice.
The kinds of alert#
| Alert | Severity | Of | It opens when | What to do |
|---|---|---|---|---|
| Invalid license | Critical | The installation | There is no license, it has expired, it belongs to another installation or its signature is not valid. The API only lets you sign in and install another. | Install a valid license in Administration › License. |
| The license expires soon | Warning | The installation | It expires within 30 days (ecenter.licensing.warn-days). |
Ask Action Ware for the renewal. |
| Client DB unreachable | Critical | One per connection | An active connection cannot open a session with its database or it does not respond in time. The message gives the reason. | Check the database, the network or the connection's password. |
| A connection sees the own DB | Critical | One per connection | The user of an active connection sees tables of the ECenter own database, which is in its same database. It links to View the connection. | Remove that access or change the connection's user (see A connection sees the own database). |
| Many failed jobs | Warning | The installation | 5 jobs have failed in 15 minutes. | Look at Last failed in Jobs. |
| Memory almost full | Warning | Each instance | The memory used after the last garbage collection exceeds 90 % of the maximum. | See Troubleshooting. |
| Low disk space | Warning | Each instance | Less than 1 GB is left on the disk of the temporary files. | Free space or extend the disk. |
| Jobs waiting in the queue | Warning | One per class and instance | The first one in a queue has been waiting more than 10 minutes. | Look at what occupies the queue in Jobs. |
| Very long job | Warning | One per job | A job has been running for more than 1 hour. The message says which one and whose. | Decide whether to terminate it from Jobs. |
| Service credential about to expire | Warning | One per credential | A SCIM, embedding or metadata exchange credential expires in less than 30 days and its holder has no other with the same scope that lasts longer. It is resolved when it is revoked, when it expires or when the one replacing it is created. | Create the new credential and change it in the system that uses it. |
| Deliveries without an owner | Warning | The installation | There are active subscriptions, data alerts or list alerts whose owner is disabled or has no email: nobody receives their failure notices. They are not reassigned by themselves. It links to View the distribution. | Have another user save them from their connection, and they become their owner. See Distribution. |
| Failing deliveries | Warning | The installation | 3 subscription sends, data alert evaluations or list alert checks have failed because of a system error in 1 hour, or one is still paused by itself because of its failures. The message counts each kind apart (“1 subscription delivery and 2 list alert checks”). It links to View in Scheduling. | Check the reason in Scheduling › Subscriptions and alerts. |
| No mail server | Critical | Each instance | There are active subscriptions, data alerts or list alerts and the mail server does not respond within 10 seconds, or it is not configured. With nothing active it is not checked. | See Mail. |
| Unresolved provider sign-ups | Warning | The installation | There are rejected sign-ups from the identity provider (login or email taken, invalid login, no room in the license) still unresolved an hour later. It does not give the logins. | Resolve them in Users and roles (see Security). |
| Reused embedding tokens | Warning | One per host application | Someone has tried to redeem an already used embedding token again: one of the two redemptions belongs to whoever stole it, and the session it opened has been closed. It is resolved an hour after the last one. It links to View its embedded sessions. | Review the host application (see Integrations). |
| The headless browser does not respond | Warning | Each instance | There are active subscriptions or data alerts that may need it (PDF, image in the email) and it does not respond within 10 seconds. Those sends fail until it comes back. | Check the Chromium container. |
| Unprocessed events | Warning | The installation | There are internal events unprocessed for more than 15 minutes: a listening module (the audit, distribution, the portal…) has not processed what another published. | Fix the cause and use Deliver again (below). |
| Scheduled task failing repeatedly | Warning | One per task | An active scheduled task has failed its last 3 runs in a row (those not done and those stopped by hand do not count). It is resolved when it finishes well, is deactivated or is deleted. It links to View in Scheduling. | See Scheduling. |
| Failing file target | Warning | One per target | The last 3 writes of a file export target have failed because of the target (the folder could not be written to), not because of the document. It resolves itself with the next one written successfully, or when the target is deleted. It links to View the destinations in Connections. | Test the target with Test in the connection. See File export. |
| Export folder not available | Warning | Each instance | A server folder of the file export (ECENTER_FILE_EXPORTS_ROOTS) does not exist or cannot be written to on that instance, for example an unmounted network folder. The targets that use it cannot write until it comes back. |
Mount the folder or correct its permissions for uid 10001. See File export. |
The alerts “of each instance” are watched by each server on its own, with its name (ECENTER_INSTANCE_NAME). If an instance disappears (it is renamed or removed), its alerts resolve themselves in the others' round once they have gone 30 minutes without being seen and that instance gives no sign of life.
Note
A client database that does not respond is an alert, but it does not affect the server's health (/actuator/health): the server keeps serving the other connections and must not leave the load balancer.
A connection sees the own database#
With the own database in a separate PostgreSQL, the user with which a connection queries the client's data does not reach it. With the own database in the same database as the data (a schema of the organization's Oracle), it depends on that user's permissions. This alert warns that the user of a connection has some ECenter table within reach.
What it means. What an administrator writes to be run with the connection's user (an SQL list, a metadata expression, a procedure) could read ECenter's users, encrypted credentials and audit. That is why it is critical, even though the connection works.
| What | Detail |
|---|---|
| When it is checked | In the round of the client databases, every 5 minutes, with the session already opened with each one: it makes no other query to the client database. |
| How many | One per active connection that sees it. |
| What it says | “The user of the connection “…” can see tables of the ECenter own database, which is in its same database: remove that access or change the connection's user.” It names the connection, never its user, the database or the tables. |
| Where it leads | View the connection opens Administration › Connections with that connection selected. |
| When it is resolved | By itself, when the user no longer sees the own database: the permission is removed, the connection's user is changed or the connection is deactivated. |
| If it cannot be asked | While the connection's database does not respond, the alert stays as it was: it neither opens nor resolves. |
What to do. Remove from the connection's user whatever lets it see the ECenter tables, or change the connection's user, as described in Fix a connection that already sees it. Then click Check now: the alert is resolved. In the Summary, that connection appears in red in the meantime (see The operations console).
The Alerts tab#


Open lists the open alerts, critical ones first, with their Severity, the Alert (with its object and its instance), What is happening, From and Last time. Resolved, below, gives the earlier ones with Until and Seen by; Load more brings the next ones.
| Action | What it does |
|---|---|
| Check now | Makes a full round, with the client databases, without waiting for the next one. Meanwhile it says Checking…. If it takes longer than 10 seconds (a database or the mail that does not respond), the console waits for it to finish and reads the alerts again. |
| Mark as seen | Records that you have seen it and when (“Seen by …”). It does not close it: it will resolve itself when the problem disappears. |
| Silence for a day | Stops notifying that alert (by email and in the strip at the top) for 24 hours. The alert stays in the list; if it is resolved and opens again within that time, it stays silenced. It is useful for a known stop or a problem that is already being fixed. |
| Remove the silence | Notifies it again. |
A silence lasts at most 30 days (ecenter.operations.alerts.max-silence) and always has an end. It is recorded in the audit as Operational alert silenced, with who, until when and the reason.
Resolved alerts are kept for 365 days (ecenter.operations.maintenance.resolved-alerts).
The notice at the top#
To whoever has System administration, the application shows at the top of any screen a red strip with the open critical alerts (“There is 1 open critical alert: Client DB unreachable (“Demo · Distribuciones Ibéricas”).”), with View the alerts. If there are more than three, it names the three most recent and adds “and N more”. It can be closed, and it comes back if another one opens. It does not appear inside the console or repeat the license one, which has its own strip.
Unprocessed events#
ECenter's modules notify one another with internal events: the audit, for example, is fed by the events the others publish. If the listener fails or the instance stops halfway, the event is left unprocessed. The server delivers them again by itself on startup; with the Unprocessed events alert open, you can also do it from the console:
- First fix what made them fail (for example, the full disk of the own database). If it still fails, they will remain the same.
- In Alerts, below the open ones, the Unprocessed events section gives one row per listening module, with how many.
- Click Deliver again on the module's row, or Deliver all again… if there are several.
- Confirm. A message says how many have been delivered again, per module, and whether any was already being delivered and has not been touched.
The alert resolves itself in the next round if they are processed. The console never shows the content of the events. It is recorded in the audit as Events redelivered.
Email notices#
Alerts can notify by email. It is configured on the server:
| Property | Default | What it is |
|---|---|---|
ecenter.operations.notifications.mode |
NONE |
NONE: no notice. CRITICAL: critical alerts, on opening and on resolving. ALL: all alerts and each server startup. |
ecenter.operations.notifications.recipients |
(none) | The addresses notified. |
ecenter.operations.notifications.from |
ecenter.notifications.from |
The sender. |
For example, in the environment file:
ECENTER_OPERATIONS_NOTIFICATIONS_MODE=CRITICAL
ECENTER_OPERATIONS_NOTIFICATIONS_RECIPIENTS=sistemas@example.org,guardia@example.org
One email per round is sent with the alerts that open and those that are resolved. The subject begins with [Empowerment Center] and continues with “Alert: …” or “Resolved: …” and the object; the body says, for each alert, “CRITICAL ALERT” or “Alert”, what is happening, since when, the server, the object and the instance. With the ALL mode, each startup sends “Server started” with the instance and the version. Stopping is not notified.
If the email fails, the notice is not lost: the next round tries again with the status the alert has then (open or already resolved), and a single instance sends it.
The log lines#
Each alert that opens or is resolved writes a line in the server log, in the ecenter.operations.alert logger: with level ERROR if it is critical, WARN if it is a warning, and INFO when it is resolved.
event=OPENED kind=CONNECTION_UNREACHABLE severity=CRITICAL instance="" subject="Demo · Distribuciones Ibéricas" message="No se puede abrir sesión en la BD de la conexión «…»: no se llega a la BD (la máquina, el puerto o la red)"
With ALL, startup writes event=STARTED instance="…" version="…". This way a syslog or a SIEM can collect the alerts without email (see Metrics, health and logs). The kind identifier (kind) is the one in the following table. The log's message is written in Spanish.
kind |
Alert |
|---|---|
LICENSE_INVALID |
Invalid license |
LICENSE_EXPIRING |
The license expires soon |
CONNECTION_UNREACHABLE |
Client DB unreachable |
OWN_SCHEMA_EXPOSED |
A connection sees the own DB |
JOB_FAILURES |
Many failed jobs |
MEMORY_HIGH |
Memory almost full |
DISK_SPACE_LOW |
Low disk space |
JOB_QUEUE_WAIT |
Jobs waiting in the queue |
JOB_RUNNING_LONG |
Very long job |
CREDENTIAL_EXPIRING |
Service credential about to expire |
DISTRIBUTION_OWNERLESS |
Deliveries without an owner |
DELIVERY_FAILURES |
Failing deliveries |
MAIL_UNAVAILABLE |
No mail server |
PROVISIONING_REJECTIONS |
Unresolved provider sign-ups |
EMBED_TOKENS_REPLAYED |
Reused embedding tokens |
RENDER_UNAVAILABLE |
The headless browser does not respond |
EVENTS_STUCK |
Unprocessed events |
SCHEDULED_TASK_FAILURES |
Scheduled task failing repeatedly |
FILE_EXPORT_FAILURES |
Failing file target |
FILE_EXPORT_ROOT_UNAVAILABLE |
Export folder not available |
Adjust the thresholds#
All the thresholds are configured in ecenter.operations.alerts.* and apply on restarting. The Policies tab shows those in force.
| Property | Default | What it is |
|---|---|---|
interval |
1m |
How often the round is made |
connection-interval |
5m |
How often the client databases are checked |
connection-timeout |
10s |
How long each client database is waited for |
memory-percent |
90 |
Memory after garbage collection, as a percentage of the maximum |
disk-path |
the temporary directory | The disk that is watched |
disk-free-min |
1GB |
Minimum free space |
queue-wait |
10m |
Wait in the queue from which it notifies |
running-max |
1h |
Run time from which it notifies |
failures and failures-window |
5 and 15m |
Failed jobs in a period |
credential-expiry |
30d |
How far ahead a service credential is warned of |
delivery-failures and delivery-failures-window |
3 and 1h |
Failed sends, evaluations and list alert checks in a period |
mail-timeout |
10s |
How long the mail server is waited for |
provisioning-rejection-age |
1h |
How long a rejected sign-up may wait |
embed-replay-window |
1h |
How long the reused tokens alert stays open after the last one |
render-timeout |
10s |
How long the headless browser is waited for |
stuck-events |
15m |
How long an event may stay unprocessed |
scheduled-failures |
3 |
Consecutive runs a task has to fail |
recovery |
10m |
How long an alert has to go undetected to be resolved; 0s resolves it in the first round |
max-silence |
30d |
The longest a silence can last |
file-export-failures |
3 |
Consecutive writes that have to fail on a file export target |
absent-instance |
30m |
How long an alert of another instance that has disappeared waits before being resolved |
check-wait |
10s |
How long Check now waits before carrying on in the background |
Each property can also be written as an environment variable: ecenter.operations.alerts.memory-percent is ECENTER_OPERATIONS_ALERTS_MEMORYPERCENT (see Configuration).