Troubleshooting¶
Start with docker compose ps, docker compose logs -f and logs/rsaapp-portal.log in the install folder (Helm: kubectl -n rsa-portal get pods and kubectl logs). Then find the symptom below.
Startup¶
install.sh stops because Docker or Docker Compose is missing
The installer needs Docker Engine 23 or later and the Docker Compose plugin (docker compose version must work). Install the plugin from your Docker packages; the old docker-compose v1 binary is not used.
install.sh or upgrade.sh stops after checking the settings
util/check-env.sh found a CHANGE_ME, a missing setting or settings file, or a value with $ or # in it. Fix the setting it names in the file it names (.env, connector.env or mysql.env) and run the script again.
check-env.sh: .env holds the Connector's Authentication Manager settings in JAVA_OPTS or .env holds MySQL's settings (MYSQL_*)
The Portal's .env must not hold the AM settings or the MySQL root password. If there is no connector.env yet, util/split-env.sh .env moves them to connector.env and mysql.env and keeps a copy of the original as .env.before-split.<time>. If connector.env exists already, remove them from .env yourself. Then run the script again.
check-env.sh: CONNECTOR_AUTH_PASSWORD differs between .env and connector.env
The Connector would refuse every request from the Portal. Set the same value in both files and run the script again.
check-env.sh: .env holds the Connector's Authentication Manager accounts (RSA_*)
.env takes no RSA_* variables: they are the Connector's. Move the AM accounts to connector.env. A Portal setting written in its environment form, such as RSA_HELPDESK_CODE_KEY or RSA_RATELIMIT_ENABLED, goes in .env under its property name instead (rsa.helpdesk.code-key, rsa.rate-limit.enabled).
check-env.sh: connector.env requires a client certificate (CONNECTOR_TLS_CLIENT_AUTH=required), but .env has no CONNECTOR_TLS_CLIENTCERTIFICATE and CONNECTOR_TLS_CLIENTKEY
The Connector would refuse the Portal. Run ./util/connector-tls.sh --mutual, which adds the Portal's certificate and key to .env, then ./util/file-owners.sh and the script again. Keep the two sides of mutual TLS together: see Mutual TLS.
check-env.sh or upgrade.sh: mutual TLS between the Portal and the Connector is off
The installation is from before mutual TLS was the default. Turn it on: ./util/connector-tls.sh --mutual, ./util/file-owners.sh, docker compose up -d.
check-env.sh: the Portal's key for mutual TLS ... is in default_build/ssl, which the Connector can read, or the Portal's /portal-tls/... does not exist
The Connector mounts all of default_build, so the Portal's key belongs in portal-tls/. util/connector-tls.sh moves portal-client.key and .crt there and fixes .env; move a key of your own yourself and name it /portal-tls/... in CONNECTOR_TLS_CLIENTKEY. A missing file: run util/connector-tls.sh, or the Portal does not start.
check-env.sh or the Helm notes: the Connector reaches Authentication Manager at <host>, an IP address (or a name without a domain)
The Connector checks that AM's certificate names the host in its URLs, and the certificate usually names only its fully qualified name. Put that name in the ims.httpinvoker.* URLs (Helm: authManager.host, .readOnlyHost), have the certificate reissued with the name you use, or set RSA_TLS_VERIFY_HOSTNAME=false in connector.env (Helm: connector.extraEnv). Otherwise the Connector cannot reach AM.
The Portal does not start: rsa.helpdesk.code-key must be at least 32 characters or rsa.helpdesk.code-key-file ... cannot be read
The help desk's code key is too short, or its file is missing, unreadable or holds less than 32 characters. Use openssl rand -hex 32 for a new key; changing it only makes codes sent in the last few minutes fail. See Help-desk requests → The e-mailed code's key.
The Connector does not start: CONNECTOR_SERIAL_FILTER takes only off or RSA_TLS_VERIFY_HOSTNAME is true or false
CONNECTOR_SERIAL_FILTER accepts only off, exactly; leave it unset to keep the filter. RSA_TLS_VERIFY_HOSTNAME accepts only true or false.
Portal container keeps restarting; log shows a datasource or Hibernate error
- Release package: check that
spring.datasource.urlpoints at the MySQL service (hostmysql, schemaRSAAPP), and thatspring.datasource.passwordin.envequalsMYSQL_PASSWORDinmysql.env. - MySQL reads
MYSQL_DATABASE,MYSQL_USERandMYSQL_PASSWORDonly when themysql_datavolume is new. If you changed them later, change the user's password in MySQL as well. See Installation → Database. - Helm: check
database.*, and that the database and user exist on your server (Prepare the database). The chart connects withsslMode=REQUIRED.
Portal fails at startup with a mail connection error
spring.mail.test-connection=true makes Spring Boot check the SMTP server at startup. Fix spring.mail.host and spring.mail.port, or allow the Docker host or the cluster to reach the relay. Set it to false only if you accept finding mail problems later.
Portal fails with No property files loaded from custom location
MFAAPP_PROPERTY_FILES_LOCATION points at a directory that exists but has no files. Populate the directory or unset the variable.
Could not load country CSV in the log; empty country list on the site forms
The countries are read from the absolute path /resources/countries.csv, which the portal image provides. Make sure no volume hides /resources. The release package mounts only /resources/email-templates.
Connector errors such as Could not find Security Domain: … or RsaNoRealmFoundException
The connector logs in with the service account (RSA_ADMIN_USER_ID) and then searches for rsa.authmanager.realm.name and rsa.authmanager.securityDomain.name (default SystemDomain). Correct the names, and confirm the service account is an internal AM user whose role can view realms and security domains in that scope (service account role).
Connector log: rsa.readonly.user.id is not set
Searches and lookups run as the service account. Create a view-only AM user and set RSA_READONLY_USER_ID and RSA_READONLY_USER_PASSWORD in connector.env (Helm: authManager.readOnlyUser).
Portal fails with connector.tls.client-certificate and connector.tls.client-key go together or Could not load the connector TLS settings
Set both CONNECTOR_TLS_CLIENTCERTIFICATE and CONNECTOR_TLS_CLIENTKEY, or neither; and check that CONNECTOR_TLS_TRUSTSTORE names a readable PEM file, or a PKCS12/JKS store with the right password.
RSA Authentication Manager connectivity¶
Readiness is DOWN, or every sign-in fails with Could not login with provided credentials
The Portal's connector health indicator calls the Connector's /app/health, which reports whether the Connector has an AM admin session. Check in order:
- Connector running:
docker compose psanddocker compose logs connector(Helm: the Connector Deployment's pod and logs).docker compose exec connector curl -s http://localhost:8080/app/healthsaysUPorDOWN; the reason is in the Connector's log. - Portal to Connector: the Portal calls
https://connector:8443/app/connector(CONNECTOR_URL). In the Portal's log, a certificate error (PKIX path building failed,No subject alternative names matching) means the Connector's certificate does not chain toCONNECTOR_TLS_TRUSTSTOREor lacks the host name: runutil/connector-tls.sh(release package) or checkconnector.tls.existingSecret(Helm). A 401 meansCONNECTOR_AUTH_PASSWORDdiffers between.envandconnector.env. With mutual TLS, a handshake failure means the Portal's client certificate is missing or not fromCONNECTOR_TLS_CLIENT_CA: checkCONNECTOR_TLS_CLIENTCERTIFICATEandCONNECTOR_TLS_CLIENTKEYin.envand that the Portal can read the key (./util/file-owners.sh). With Helm and a NetworkPolicy, only the Portal's pods may reach the Connector. - Network to AM: from the host or a pod,
curl -vk https://<am>:7002/ims-ws/httpinvoker/CommandServermust connect. - TLS trust to AM:
PKIX path building failedorunable to find valid certification pathin the Connector's log meanstrust.jksis missing, unreadable or does not contain AM's root CA. Checkims.ssl.client.trust.keystore.filename(/custom/ssl/trust.jksin both install methods) andRSA_TRUSTSTORE_PASSWORD. Rebuild it as in Installation.TLS to Authentication Manager at <host>:<port> failed: No subject alternative ...means AM's certificate does not name the host in the URLs: use a name it has (usually its fully qualified name), or, where impossible,RSA_TLS_VERIFY_HOSTNAME=false(AM's host name). - Command client credentials: authentication errors to the command server mean
RSA_CMDCLIENT_USERorRSA_CMDCLIENT_PASSWORDis wrong. Read them again withrsautil manage-secrets --action list. - System properties: the connector loads its other settings from
config.properties.location, or from-Doptions inJAVA_OPTSinconnector.env. If neither is set, it uses the packagedconfig.properties, whose host names are development ones.
A command fails and the Connector logs Refused a reply from Authentication Manager
The Connector's deserialization filter refused AM's reply. The warning names the class or the limit:
- an RSA class (
com.rsa...): add it toCONNECTOR_SERIAL_FILTER_ALLOWinconnector.env(Helm:connector.extraEnv) as the warning shows, and restart the Connector; - a limit (a very large search): raise it in
CONNECTOR_SERIAL_FILTER_LIMITSas the warning shows, and restart the Connector; - any other class: AM is not known to send it, and the reply may be an attack. Check that the AM URLs reach the real AM, and ask RSA support before allowing it.
Until then, in an emergency, CONNECTOR_SERIAL_FILTER=off reads the replies without the filter, with a warning at every start; remove it once the class is allowed. See What the Connector accepts.
Operations fail and the user is suddenly sent to the login page
The connector runs operator actions as the signed-in user's AM session. When that AM session has expired, the connector raises RsaUserSessionEndedException, and the portal logs the user out. Sign in again. If it happens often, compare the AM session lifetime with the portal's ENS_SESSION_IDLE_TIMEOUT and ENS_SESSION_ABSOLUTE_TIMEOUT.
An operator's role change, emergency code or Clear cached Windows password fails with a permission error
These run in the operator's own AM session. The operator's AM administrative role needs the matching permission: see Least-privilege AM roles.
User does not exist in RSA Authentication Manager for a user who exists
Searches are limited to the configured security domain (sub-domains included) and the realm's identity sources. Check rsa.authmanager.securityDomain.name and rsa.authmanager.realm.name. Free-text search returns at most 25 results per identity source. Refine the search, or enable search.useridonly.
Token serial not found
Serials are normalized with token.serial.prefix (default 000). Make sure the prefix matches your token serial format and is the same in the portal and the connector settings.
Sign-in and roles¶
A user signs in but sees no admin menus
Roles come from AM administrative roles mapped by role.mapped.N.rsaSecurityGuid. Check that the GUIDs are correct (how to find them) and that the user holds the AM admin role. The user must sign in again after any change.
Sign-in failed. Check your user ID and passcode, and the user is sure the passcode is right
The page gives one message whatever the cause. The audit log has the cause: open Audit Log, filter on auth.login with outcome failure and the user ID, and read the reason. A locked AM account is recorded as an alert; a Trusted Agent or Help Desk user can Unlock it from User Search → User Details. Re-enable a disabled account in AM. After three failures for one user ID, the next attempts must also wait (30 seconds, doubling up to 15 minutes).
Too many attempts. Wait ... and try again (HTTP 429)
A rate limit or the backoff refused the request. The first refusal is audited as auth.rate-limited, with details.flow, details.limit and details.retryAfterSeconds. If many users are refused at once, check that the Portal sees each client's own address: behind a TLS-terminating proxy it needs SERVER_FORWARD_HEADERS_STRATEGY=native and the right SERVER_TOMCAT_REMOTEIP_INTERNAL_PROXIES (see Security → Behind a proxy), and with TLS passthrough all clients share one address. Raise rsa.rate-limit.*.per-ip if your users really share an address.
Every user's audit events show the same client address
The Portal sees the proxy's address. Set SERVER_FORWARD_HEADERS_STRATEGY=native (not framework) and ENS_COOKIE_SECURE=true, make the proxy replace X-Forwarded-For, and check that SERVER_TOMCAT_REMOTEIP_INTERNAL_PROXIES covers the proxy, as CIDR ranges with a prefix length (10.0.0.5/32, not 10.0.0.5).
Self-service says Your request has been received, but no e-mail arrives
Appointment booking and exemption requests answer the same whatever the outcome. The audit trail says what happened: appointment.request-refused (unknown_user, user_has_token, too_many_open, authmanager_error) or auth.self-service-failed with details.flow and the reason (for example unknown_user or no_email).
After the upgrade to the next release, an operator signing in with the passcode alone has no PMO, trusted agent or help-desk menu
With single sign-on configured, a role that ENS_SSO_ROLES_* maps a group to now comes only through the identity provider. The operator signs in with the provider's button on the sign-in page, then the passcode. To keep the old behaviour, set ENS_SSO_REQUIRE_FOR_ADMIN_ROLES=false (Helm sso.requireForAdminRoles: false); the Portal then warns at every start. See Single sign-on.
Signing out ends at the identity provider with an error about the redirect URI (next release)
ENS_SSO_OIDC_END_SESSION=true, but the provider does not allow <APPLICATION_DNS_NAME>/ as a post-logout redirect URI, or it requires id_token_hint, which the Portal cannot send (Okta). Allow the URI at the provider, or set ENS_SSO_OIDC_END_SESSION=false. The Portal session and the Authentication Manager session have already ended at that point. See Signing out.
With SAML, signing out ends only the Portal session although ENS_SSO_SAML_SINGLE_LOGOUT=true (next release)
The Portal says at every start which part is missing: its signing key (SPRING_SECURITY_SAML2_RELYINGPARTY_REGISTRATION_<ID>_SIGNING_CREDENTIALS_0_*, Helm sso.saml[].signingSecret), or the asserting party's SingleLogoutService by HTTP-Redirect (in its metadata, or ..._ASSERTINGPARTY_SINGLELOGOUT_URL with _BINDING=REDIRECT, Helm sso.saml[].singleLogoutUrl). A POST-only SingleLogoutService is not used. Once both are there, refresh the relying party at the asserting party so it knows <APPLICATION_DNS_NAME>/logout/saml2/slo. See SAML single logout.
Help-desk requests¶
None of the verification methods set for this Portal can verify the user for this change
For a PIN reset, an emergency access code or a lost token, a tokencode does not count, and the e-mail code is offered only while the Portal can send mail and the user has an address. Add in-person or email-code to rsa.helpdesk.verification.methods, or verify the user in person.
The request asks to verify the user again
More than rsa.helpdesk.verification.valid-for (15 minutes) passed between the verification and running the request or sending it for approval. Once sent for approval, a request is no longer bound by those 15 minutes, only by rsa.helpdesk.dual-control.request-ttl.
The e-mailed code is refused although the user read it correctly
Check the Portal's log for rsa.helpdesk.code-key is not set. Without a key the Portal makes one for each run, so a code sent before a restart, or by another Portal replica, cannot be checked. Set rsa.helpdesk.code-key in .env, the same on every Portal (install.sh and upgrade.sh add one; Helm generates helpDesk.emailCodeKey), and send a new code. A code sent just before an upgrade to the release with the key, or before the key changed, is refused once too.
A request is waiting for approval and nobody can approve it
The approver must hold one of rsa.helpdesk.dual-control.approver-roles (Trusted Agent or Help Desk by default), and may not be the operator who asked or the user. The license must include the change's feature (help-desk, or trusted-agents for lost and deprovisioned tokens). A request not approved and run within rsa.helpdesk.dual-control.request-ttl (24 hours) of being sent for approval expires.
A request shows failed although nobody saw an error
It was still running one hour after its change began, for example because the Portal stopped during the change. Look up am.change-outcome for the request in the audit trail to see whether the change was made in AM.
The Portal does not start: Help-desk settings: ... or Rate-limit settings: ...
A setting makes no sense; the message names it. For example tokencode alone, or no method, in rsa.helpdesk.verification.methods while verification is required; entra-verified-id, which this release always refuses; or a limit not written as attempts/duration.
A change fails with AuditOrderException: Cannot commit the audit event ... before the action it records
The Authentication Manager change was asked for inside a database transaction that had already recorded an audit event, so its am.change-attempt could not be committed first, and the change was refused (fail closed). No flow in the Portal does this; it points at a code change or extension. Make the change before recording in that transaction, or outside it.
Features that need a client certificate¶
Could not verify your PKI certificate. Certificate must be presented to proceed.
Certificate-based PIN reset and exemption requests read the TLS client certificate. Serve the portal over HTTPS on 8443 with client-certificate negotiation enabled (server.ssl.*), and do not terminate TLS in front of it. See Security → TLS and client certificates.
We were unable to match your previous RSA Enrollment with your PKI Credentials…
The certificate DN must match the DN stored at the user's last enrollment, or an existing certificate-to-user mapping (CertTokenMapping). A PIN-check email link records none. Enrollments done over plain HTTP were stored as NOCERT. Use the Windows-password option or ask a Trusted Agent or Help Desk user to reset the PIN.
Email¶
No emails arrive
- Look for
Could not send email,Email not sent to:orCould not send … emailin the portal log. - Check
spring.mail.hostandspring.mail.portand the relay's acceptance ofmail.default.from. - For job emails, check that the job's
cron.<name>.debugisfalse.lostTokenThresholdMonitorships with debug on (from the next release with debug off, and the startup log warns while it is on). From the next release, check also thatmfa.group.emailis set: without it the report goes to nobody, and the startup log says so. - Users without an email address in AM are skipped.
Links in emails point to http://localhost:8080
Set application.dns.name to the external portal URL and recreate the portal (docker compose up -d). With Helm, set publicUrl and run helm upgrade.
The Request Exemption menu link is missing
It is shown while the license includes the self-service feature. Its target is exemptionrequest.url (default /user/exemption/request).
Scheduled jobs¶
A job never runs, or Run on the Manual Cron page does nothing
cron.<name>.enabled must be true. A disabled job is skipped even when run by hand. Last-run details are kept in the memory of each Portal replica and reset on restart.
Job times seem off
The schedules are Spring 6-field cron expressions evaluated in cron.timezone, by default the container's time zone (UTC). Set cron.timezone (Helm: cronTimezone) to the zone the schedules should mean. The default jobs run around 00:30–00:35.
A job is skipped
The jobs need the scheduled-jobs license feature and are skipped while the license is read-only. A job still running when its next time comes is skipped too, and so is an occurrence another Portal node has claimed in CronLock.
Backups and restore¶
Nightly backup files are missing
- The cron user must be allowed to use Docker (
util/backupdb.shrunsmysqldumpin themysqlcontainer). It needs nosudo. - With
-gor-a, the gpg public key must be in that user's keyring, or the age recipient must be valid. - Run the line by hand to see errors:
crontab -l | grep backupdb. - Helm:
kubectl -n rsa-portal get cronjob,jobsand the backup Job's logs. The CronJob connects asdatabase.usernamewithbackup.sslMode.
A restore fails with an access-denied error
Run mysql inside the container with the container's own root password, as shown in Operator Guide → Restore.
Upgrades¶
Upgrade finished but the portal is not running
If util/check-env.sh found a problem in the settings, upgrade.sh stopped before restarting. Fix the settings it names, then run ./upgrade.sh again. upgrade.sh also lists the settings that are new in each template; add the ones you need to the file it names. If the Portal did not become healthy in time, check docker compose logs portal connector.
helm upgrade stops: connector.tls.mutual is required for this upgrade
The chart found no record of whether mutual TLS between the Portal and the Connector is on: no rsa-operations-portal/connector-mutual-tls annotation on its TLS Secret or ConfigMap, and no Connector Deployment to read, for example after a name override changed or with helm template --is-upgrade. Set connector.tls.mutual=true (the default for new installations) or false.
After the upgrade the Connector no longer reaches AM
Look in the Connector's log. TLS to Authentication Manager at <host>:<port> failed means AM's certificate does not name the host in the URLs, which the Connector now checks; see Readiness is DOWN below. Refused a reply from Authentication Manager means the new deserialization filter refused a reply; see A command fails and the Connector logs ... below.
PIN-reset or lost-token e-mails stopped after the upgrade
The help-desk notice replaces them; their templates are no longer used. Customize the notice with the helpdesk.notice.* keys in messages.properties.
A customized exemption-request message is no longer shown
user.exemption.request.confirmationSent and user.exemption.request.noEmail were replaced by user.exemption.request.received. Move your text to the new key.
Local changes to docker-compose.yml disappeared
upgrade.sh replaces docker-compose.yml with the new release's copy. Keep your settings in .env, connector.env and mysql.env, not in docker-compose.yml.
Getting more detail¶
- Raise the portal log level in
default_build/portal/log4j2.xmland restart the portal. - Line breaks inside a log message appear as
\rand\nin both components' text logs; that is intended, so that request data cannot forge a log line. - The connector's packaged Log4j configuration already logs at
DEBUGto stderr:docker compose logs -f connector(Helm:kubectl logson the Connector Deployment). - For RSA-side errors, check the AM Security Console's administration and authentication activity monitors. Operator actions run as the signed-in user, so they appear under that user's name.