Problems while running#
This page gathers the problems of an Empowerment Center installation that is already running: a client database that does not respond, a connection that sees the own database, slow queries, jobs that are left waiting, memory or disk, mail that does not go out, failing scheduled tasks and what is specific to several instances. Each one is explained as symptom, cause and solution.
Before you start#
You need System administration for the operations console and the audit, and access to the server for the log and the configuration.
A client's database does not respond#
Symptom. Critical alert Client DB unreachable; the documents of that connection fail; in the Summary, the connection says “Not responding: …”.
Cause and solution, depending on the reason:
| Reason | What to check |
|---|---|
| The database rejects the connection's user or password | The password has expired or been changed in the database, or the account is locked. Correct it in Administration › Connections. |
| The database cannot be reached (the machine, the port or the network) | The database is stopped, the machine or the port has changed, or a firewall blocks the way from the ECenter server. |
| The database does not respond in time | The database is saturated or the network is very slow. The check waits 10 s (ecenter.operations.alerts.connection-timeout). |
| The database does not accept the session (with its SQLSTATE) | The database rejects the session for another reason: sessions exhausted for the user, database in restricted mode. The SQLSTATE code says so. |
| The saved password cannot be decrypted… | ECENTER_SECRETS_KEY has changed (see Startup, license and access). |
Once fixed, click Check now in Alerts: the alert is resolved. A client database that is down does not take the server out of the load balancer: the other connections keep working.
A connection sees the own database#
Symptom. Critical alert A connection sees the own DB; in the Summary, the connection appears in red with “Responds (…), but its user sees the ECenter own DB”; Test says “The connection works, but its user is not valid:”. The connection keeps working.
Cause. The ECenter own database is in the same database as the data (a schema of the organization's Oracle), and the connection's user has some of its tables within reach: through a permission on it, through a role or through a privilege such as SELECT ANY TABLE. The SQL an administrator writes for that user (an SQL list, a metadata expression) could read ECenter's users and encrypted credentials.
Solution. Remove that access from the connection's user, or change the connection's user for another that does not have it, as described in Fix a connection that already sees it. Then click Check now in Alerts: the alert is resolved. While that connection's database does not respond, the alert stays as it was.
Symptom. When testing or saving a connection, under User: “The connection's user is that of the ECenter own database, which is in that same database…”.
Cause. The connection would enter the own database's database with the ECenter user.
Solution. Use another user for the connection, one that cannot see the ECenter tables. That connection cannot be saved anyway.
Jobs fail with “the database does not respond in time” or wait for a session#
Symptom. Several cubes launched at once on the same connection fail, or the connection's Pool in the Summary shows sessions waiting; the Pool of the client DBs gadget confirms it.
Cause. Each connection has a pool of 5 sessions per instance (ecenter.datasource.pool.max-size), shared by all job classes. A job without a free session waits 15 s (ecenter.datasource.pool.connection-timeout) and fails even if there are free threads.
Solution. Raise the pool (ECENTER_DATASOURCE_POOL_MAXSIZE) to cover the jobs that really coincide on that connection, without exceeding the sessions the client database allows the connection's user (multiplied by the instances). If you raised the queue limits (ecenter.jobs.max-concurrent), raise the pool in proportion.
Queries are slow#
Symptom. A document takes a long time to calculate, or fails after a while.
Diagnosis.
- In the audit, open the Job entry of that calculation and click Include next to the job: its queries appear with the Duration of each one.
- Open the slowest query and copy its SQL with Copy, with the Parameter values.
- Run it on the client database with its tool and ask for its plan.
Common causes and solutions.
| Cause | Solution |
|---|---|
| An index is missing in the client database for the columns used to filter or join. | It is a matter for that database's administrator: the SQL in the audit tells them what is needed. |
| The query joins tables through a path of relationships longer than necessary. | Review the metadata's relationships (see Metadata). |
A cube that is too large. If the database estimates more than 100,000 rows (ecenter.cube.warn-rows), the user is asked to confirm before calculating it; a cube brings at most 200,000 combinations (ecenter.cube.max-rows). |
Narrow the document's segmentation or use kept data with a scheduled recalculation. |
A statement exceeds 5 minutes (ecenter.querying.timeout) and the job fails. |
Improve the query. Raising the time only postpones the problem and occupies a pool session for longer. |
The Queries to the client DBs gadget of the Activity tab shows the number and the average time of the queries: a sudden change usually coincides with a change in the client database.
Jobs are left waiting or do not finish#
Symptom. Alert Jobs waiting in the queue or Very long job; users see their calculation “queued” for a long time.
Diagnosis. In Administration › Operations › Jobs, look at which class has its queue full and what occupies its slots (Running, with its user and its duration).
| Cause | Solution |
|---|---|
| A few very long jobs occupy all the slots of their class. | Decide whether to Terminate any. If it is usual, raise that class's limit (ecenter.jobs.max-concurrent.<CLASS>) and the connection's pool. |
| A job is waiting for the client database (a lock, a statement that does not finish). | Terminate cancels the statement in the database. In Oracle without out-of-band breaks, a statement waiting for a lock may take a few seconds to let go. |
| A user has launched a huge number of calculations (for example, they processed an enormous workbook several times). | Terminate theirs. Each user has a cap of 100 queued jobs per class; the next one receives 429 TOO_MANY_JOBS. |
See Jobs and queues.
Symptom. A user receives “You already have 100 jobs of this type waiting in the queue: wait for them to start or cancel some from Activity”.
Cause. They have reached the cap of queued jobs per user and class (ecenter.jobs.max-queued-per-user).
Solution. Have them wait or cancel some from their Activity panel. If their normal work needs it (a workbook with a huge number of documents), raise the cap.
Memory is almost full#
Symptom. Alert Memory almost full; the Summary's Memory card goes above 90 % after garbage collection; the application is slow.
Cause. What each cube calculates stays in the backend's memory while its result is alive (30 minutes, ecenter.jobs.result-ttl), and many large cubes at once fill it.
Solution.
- In the Memory gadget, look at whether the figure after garbage collection rises and falls with use (work peaks) or grows without falling.
- If they are peaks, raise the container's memory limit (
ECENTER_BACKEND_MEMORY, 4 GB by default): the JVM takes 75 % of it. Without a container limit, set the heap withJAVA_TOOL_OPTIONS="-Xmx3g -XX:+ExitOnOutOfMemoryError". - If it grows without falling for days, restart the backend and tell Action Ware, with the chart.
ECenter does not restart itself because of memory: restarting it is up to you or the orchestrator.
Disk space is low#
Symptom. Alert Low disk space (less than 1 GB in the backend's temporary directory).
Cause and solution.
| What takes up space | What to do |
|---|---|
The files of external data uploads (the ecenter-external folder of the temporary directory) |
They are deleted by themselves when each upload expires. If it is usual, give it more disk or move the folder with ECENTER_EXTERNALDATA_UPLOADDIRECTORY. |
| The containers' logs | deploy/compose.yaml rotates them (5 × 50 MB per service). If you have changed the logging driver, check its rotation. |
| The own database (in its own volume) | The audit of queries is what grows most: shorten its period (see Audit). |
The disk that is watched is changed with ecenter.operations.alerts.disk-path and the threshold with disk-free-min.
Mail does not go out#
| Symptom | Cause | Solution |
|---|---|---|
| Policies says Mail server: Not configured (spring.mail.host) | There is no SPRING_MAIL_HOST. The log says so once: “Hay avisos de operación por correo pero no hay servidor de correo (spring.mail.host)”. |
Configure the server (see Mail). |
| Critical alert No mail server | The server does not respond within 10 s while there are active subscriptions or data alerts. | Check the machine, the port, the user and the password, and that the firewall lets the server out to the SMTP server. |
| Operations or scheduling notices do not arrive | The mode is NONE (the default) or there are no recipients. |
Configure ecenter.operations.notifications.* or ecenter.scheduling.notifications.*. |
| A subscription does not reach a recipient | Their domain is not in ecenter.distribution.allowed-domains, the recipient has no email, or the message is in their spam folder. |
Check the audit's Delivery entry: it gives the status and the reason. |
| Alert Failing deliveries; a subscription says it was paused | Three consecutive sends failed because of a system error and it paused itself, notifying its owner. | Fix the cause (the mail, the headless browser, the document) and have the owner resume it. |
| Emails are delayed or lost at peaks | The SMTP server limits sends. | Ask the mail administrator to allow ECenter's address, or reduce the number of recipients. |
The audit search asks you to narrow the dates#
Symptom. With the own database in Oracle, a search with Contains in Administration › Audit is slow and, without dates, the screen ends up asking you to narrow them.
Cause. In Oracle, Contains has no text index: it goes through the entries of the requested period. Without a period, it may run out of its maximum time.
Solution. Set the Dates filter, with the shortest period that serves you, and add the user or the category if you know them (see Search, filter and export).
A layer cannot be uploaded in its reference system#
Symptom. When uploading a layer's file, or creating it or replacing its features: “The reference system EPSG:… is not among those supported by this installation's map store: …”.
Cause. With the own database in Oracle, the geometry is calculated by the application, which only converts to longitude and latitude the reference systems of a list (those of the cartography of Spain and its neighbors and the UTM ones).
Solution. Convert the file to WGS 84 first (ogr2ogr -f GeoJSON -t_srs EPSG:4326 …) and upload it like that. The list is in Geographic layers.
The headless browser does not respond#
Symptom. Alert The headless browser does not respond; PDF sends of charts, maps and pages fail.
Cause. The Chromium container is stopped, out of memory or cannot be reached.
Solution. Check it with docker compose -f deploy/compose.yaml ps and its log; give it more memory if it restarts (ECENTER_RENDER_MEMORY). When it comes back, the alert resolves itself. See Installation.
A scheduled task fails#
| Symptom | Cause | Solution |
|---|---|---|
| “… no longer exists or is not enabled. Save the task with another user” | The task runs on behalf of whoever saved it, and that user no longer can. | Open it, click Modify… and save it with an enabled user. |
| Not done in the history | The previous run was still going. | If it is usual, the task lasts longer than its interval: space out the schedule or speed it up. |
| A task stays Running forever after removing an instance | Its runs belonged to that instance, which has not come back. | Start an instance with the same ECENTER_INSTANCE_NAME: it treats them as interrupted. |
| The procedure fails with a database error | The procedure does not exist, its signature changed, a permission is missing or the error is its own. | The history step gives the database's message. In PostgreSQL, what it committed before failing stays committed. |
| Nothing is launched at its time | There is no valid license, or ecenter.scheduling.enabled is false. |
The overdue ones run once when it returns. |
See Scheduling.
Unprocessed events#
Symptom. Alert Unprocessed events: for example, the audit has stopped recording.
Cause. A module that listens to another's events has failed to process them (the own database full, a one-off failure) or the instance stopped halfway.
Solution. Fix the cause and click Deliver again in the Unprocessed events section of Alerts (see Operational alerts). On restarting, the server also delivers them again. None is lost.
With several instances#
| Symptom | Cause | Solution |
|---|---|---|
A user launches a calculation and cannot find it (“The job … does not exist (or has expired)”, 404), or the API responds 404 RESULT_NOT_FOUND |
The proxy has sent the request to another instance. Jobs and their results live in the memory of the instance that calculates them. | Configure the proxy's affinity by the session cookie, the Authorization header and X-ECenter-Embed-Session (see Installation). |
| The console shows different jobs depending on the moment | Each read is served by a different instance. | The console header says which instance it sees; with affinity, always the same one. |
| Alerts from an instance that no longer exists | It was renamed or removed. | They resolve themselves after 30 minutes without being seen. Give fixed names with ECENTER_INSTANCE_NAME. |
After upgrading#
Symptom. For a while after upgrading, “Who uses…?” or content validation do not return everything they should.
Cause. ECenter re-indexes on startup what each workbook and each publication uses, in batches.
Solution. Wait. The ecenter.usage-index.pending metric says what is left.