Startup, license and access#
This page gathers the problems that prevent using Empowerment Center: the server that does not start, the license that is not valid, the connections' passwords that cannot be read and the users who cannot sign in. Each one is explained as symptom, cause and solution.
Before you start#
For most of them you will need access to the server (the environment file and the backend log) and, once inside the application, the System administration privilege.
The server does not start#
The backend stops on startup and its log says why. Read it with:
The startup messages are written in Spanish; they are quoted here as they appear, with what they mean.
| Symptom in the log | Cause | Solution |
|---|---|---|
| “Falta la BD propia de ECenter: defina ECENTER_DB_URL, ECENTER_DB_USER, ECENTER_DB_PASSWORD” | The details of the ECenter database are missing. With deploy/compose.yaml, ECENTER_DB_PASSWORD is enough; without it, all three are needed. |
Define them in the environment file. |
| “Falta la clave de cifrado de secretos (ecenter.secrets.encryption-key / ECENTER_SECRETS_KEY)” | There is no ECENTER_SECRETS_KEY. |
Set it. If it is the first installation, generate it with openssl rand -base64 32. If it already existed, recover the same one: with another, the stored passwords cannot be read (below). |
| “La clave de cifrado de secretos no está en Base64” or “… debe ser de 256 bits (32 bytes en Base64)” | The key is copied wrongly (a space, a line break, cut off). | Copy it whole, without quotes or spaces. |
| “ECenter necesita la extensión pg_trgm y el usuario … no puede crearla en la base de datos …: dele el permiso CREATE sobre ella (GRANT CREATE ON DATABASE … TO …) o cree la extensión antes con un superusuario (CREATE EXTENSION pg_trgm) y vuelva a arrancar” | The own database does not have the pg_trgm extension and its user has no permission to create it. |
Give the user the permission the message names, or create the extension as a superuser (CREATE EXTENSION pg_trgm; in the ECenter database). |
| “ECenter necesita la extensión pg_trgm y este servidor de PostgreSQL no la tiene: instale sus módulos contrib…” | The PostgreSQL server does not have the contrib modules. |
Install them (in many distributions, the postgresql-contrib package) and start again. |
The migration fails when creating the postgis extension: permission denied to create extension "postgis", or could not open extension control file if it is not installed |
postgis is not trusted: a user who is not a superuser cannot create it. |
Install PostGIS on the server and create the extension as a superuser before the first startup (CREATE EXTENSION postgis;). The deploy/compose.yaml image already does it. |
| “La BD propia de ECenter en Oracle pide la versión 19c o posterior, y esta es la …” | The own database is on an Oracle earlier than 19c. It is checked before creating anything. | Use an Oracle 19c or later database (see The own database in Oracle). |
| “La BD propia de ECenter en Oracle pide una base de datos con el juego de caracteres AL32UTF8, y el de esta es …” | The Oracle database is in another character set. It is checked before creating anything. | Create the ECenter schema in a database in AL32UTF8. |
| “Al usuario de la BD propia de ECenter en Oracle le faltan permisos: …” | The ECenter user is missing some of its permissions (the message says which). It is checked before creating anything. | Grant them (see The ECenter user) and start again. |
| “El usuario de la BD propia de ECenter en Oracle no tiene cuota en su tablespace (…)…” | The ECenter user cannot take up space in the tablespace where its tables are created: it could not store anything. | Give it a quota in that tablespace (ALTER USER … QUOTA … ON …) and start again. |
| “No se puede comprobar la BD propia de ECenter en Oracle: …” | It was not possible to open a session in Oracle, or to read its version, its character set or the user's permissions. The Oracle error follows. | Check ECENTER_DB_URL, ECENTER_DB_USER and ECENTER_DB_PASSWORD, and that the user can open a session. |
| “La BD propia de ECenter es PostgreSQL u Oracle, no …” or “… su URL empieza por jdbc:postgresql: o por jdbc:oracle:” | ECENTER_DB_URL points to another engine. |
The own database can only be in PostgreSQL or in Oracle. |
| “ecenter.maps.store=postgis pide que la BD propia sea PostgreSQL con PostGIS, y es …” | The ecenter.maps.store property says postgis with the own database in Oracle. |
Remove the property or set portable. |
It does not connect to the own database (Connection refused, password authentication failed) |
The database is not running, the address is another one or the password does not match. | Check docker compose ps and the ECENTER_DB_* details. With deploy/compose.yaml, the database password is set the first time it starts with the empty volume: changing it later in .env does not change it in the database. |
The container restarts with OutOfMemoryError |
The JVM heap is too small for what is calculated. | Raise the container limit (ECENTER_BACKEND_MEMORY); the JVM takes 75 % of it. Without a container limit, set -Xmx (see Installation). |
| The backend starts but the frontend gives 502 | The backend is still applying the migrations (the first time, one or two minutes) or is not healthy. |
Wait and look at docker compose ps. |
Warning
The own database's migrations only go forward. Do not start an earlier version of ECenter on a database already migrated by a later one: restore the backup from before the upgrade (see Maintenance). With the own database in Oracle, moreover, a migration that fails halfway is not undone: restore the backup from before the upgrade and tell Action Ware (see Upgrading).
The license is not valid#
Symptom. The red strip at the top states the license problem, the API responds 403 LICENSE_INVALID and the console has the Invalid license alert open. Users can sign in, but not do anything; whoever has System administration goes straight to Administration › License.
| What it says | Cause | Solution |
|---|---|---|
| No license is installed | New installation, or a new own database. | Send Action Ware the installation identifier shown by Administration › License (and by the log at startup, “Instalación …”) and install the license they return to you. |
| The license has expired | Its last day has passed. | Install the renewed one. The The license expires soon alert warns 30 days ahead. |
| The license is from another installation | The license was issued for another identifier: for example, the test one in production. | Ask for one for this installation's identifier. |
| “The license is not valid” | It is copied wrongly or signed with a key this version does not recognize. An image built without Action Ware's public key accepts none. | Paste it whole again. If it persists, check with Action Ware that the image carries its public key. |
The installation identifier is in the own database: a backup restored on another server takes the license with it, and a new database needs another one. Without a valid license the server keeps running, scheduled tasks are not launched and the overdue ones run once when the license returns.
If the license limits enabled users and the maximum is reached, no more can be enabled (the Summary's License card says “Enabled users: 50 of 50”).
The connections' passwords cannot be read#
Symptom. After reinstalling or moving the server, the connections say “The saved password cannot be decrypted: enter it again.”, the Client DB unreachable alert gives as the reason that the saved password cannot be decrypted, and documents do not calculate.
Cause. ECENTER_SECRETS_KEY has changed (or been lost). It encrypts the connections' passwords and the private key with which ECenter signs its tokens.
Solution.
- If you have the previous key, put it back and restart: everything can be read again.
- If you do not have it, type the password of each connection again in Administration › Connections. The installation key for signing tokens is replaced by itself; embedding tokens in flight (5 minutes at most) stop working.
Important
Keep ECENTER_SECRETS_KEY separately, with the same protection as the backup of the own database: a backup without the key does not decrypt the passwords, and the key without the backup is useless.
A user cannot sign in#
Symptom. The sign-in screen says “Incorrect user name or password.”.
Cause. It may be the login, the password, a disabled or locked user: the screen does not tell them apart, so as not to reveal which logins exist.
Solution. In Administration › Audit, filter by Category › Access, Outcome › Failed and the login. The Failed attempt entry gives the real reason: “Usuario inhabilitado” (user disabled), “Usuario bloqueado” (user locked), “Contraseña caducada” (password expired)… Correct it in Users and roles (see Security).
Symptom. “Too many attempts in a row. You can try again in N s.” and the button disabled with the countdown.
Cause. After three consecutive failed attempts, the server makes you wait before the next one, longer each time (up to 60 s). Attempts are forgotten after an hour without failures.
Solution. Wait. If a user triggers it often, reset their password. The settings are in ecenter.security.login-delay.* (free-attempts, initial, max, reset-after).
Symptom. “The server cannot be reached. Please try again in a few minutes.”
Cause. The frontend does not reach the backend (502, 503 or 504): it is starting, stopped or the proxy cannot find it.
Solution. Look at docker compose ps and the backend log.
Single sign-on fails#
| Symptom | Cause | Solution |
|---|---|---|
| “The identity provider recognized you, but you do not have an enabled user in Empowerment Center. Ask an administrator to create one for you.” | The provider identified the person, but there is no enabled user in ECenter with the login the provider gives (the registration's login-attribute). |
Create the user with that login, or correct their login with Change login…, or link them through SCIM (see Security). The audit records it as a Failed attempt with “El proveedor de identidad lo identificó, pero no tiene cuenta habilitada en ECenter”. |
| “Sign-in with the identity provider failed. Please try again.” | The exchange with the provider failed: the return URL does not match, the client secret has expired, the SAML certificate has changed or the provider does not respond. | Look at the backend log at that time. Check in the provider that the return URL is https://<public address>/login/oauth2/code/<id> (OIDC) or /login/saml2/sso/<id> (SAML). |
The provider says the return URL is not valid and it shows http:// or an internal port |
The backend does not rebuild the public address properly behind the proxy. | Check ECENTER_PUBLIC_URL and that the backend reads the frontend's X-Forwarded-* headers (SERVER_FORWARD_HEADERS_STRATEGY=framework, which deploy/compose.yaml already sets). If there is another proxy in front of the frontend (the one that terminates TLS), set ECENTER_BEHIND_PROXY=on in the frontend and have that proxy send X-Forwarded-Proto, X-Forwarded-Host and X-Forwarded-Port (the Forwarded header is not used). |
| It worked and stops working for everyone at once | The client secret has expired in the provider or its certificate has been rotated. | Renew the secret or the certificate in the registration's configuration and restart. |
If single sign-on does not work and you need to get in, use the first administrator, who keeps their password (ECENTER_ADMIN_LOGIN).
The session expires#
Symptom. A user goes back to the sign-in screen without having signed out.
Cause. Their session expired due to inactivity (30 minutes without use, ECENTER_SESSION_TIMEOUT) or reached its maximum duration (12 hours since signing in, ECENTER_SESSION_MAX_DURATION), or an administrator closed it or changed their user.
Solution. It is expected. The audit says so: Session expired (“Su sesión caducó por inactividad”, or that it was closed by a change to the user) or Session closed by an administrator. If the periods do not suit your organization, change them (see Configuration). With single sign-on, signing in again asks for nothing.