Troubleshooting
Diagnose common setup, sign-in, permission, sync and password-vault problems.
On this page
Start with the failing action, its time and the affected service. Record error codes and request IDs when available; do not include passwords, tokens, Secret Keys or decrypted secret values in a support report.
Docker reports missing environment variables#
docker compose up selects the production stack and reads .env. An existing .env.dev does not supply those production variables.
For development, run:
docker compose -f dev-docker-compose.yml config --quiet
docker compose -f dev-docker-compose.yml up --build --watch
For production, configure .env from the example on a new installation, then run docker compose config --quiet. Preserve the credentials and encryption keys of an existing installation. See Deployment.
The page is slow or nginx returns 504#
A 504 means nginx waited too long for an upstream response. Check which upstream appears in the nginx error log, then inspect that service:
docker compose -f dev-docker-compose.yml logs --tail 100 nginx frontend backend
In development, a fresh frontend cache requires an initial compilation. The current workflow uses Turbopack, Linux storage and a persistent build cache to reduce that work. A 502 immediately after startup can mean the backend is still applying migrations or has not started listening.
Check container status and readiness if errors continue after startup. Increasing the proxy timeout does not repair a crashed service or a stalled compiler.
My frontend edits do not appear#
Keep Compose Watch running. The frontend now reads source synced into its Linux filesystem; it does not directly read the Windows project directory.
docker compose -f dev-docker-compose.yml watch frontend
Changes to dependencies rebuild the frontend. Changes to .env.dev require recreating affected services. Documentation edits also need node matii/docs/generate.mjs from the frontend directory.
Sign-in succeeds but my organisation is missing#
An identity-provider account is not the same as membership in the console organisation. Ask an administrator to check the invitation, account link and organisation link.
account_link_required means an existing console account must be explicitly linked to the identity-service user. Matching email addresses are not enough. An operator can perform the linking steps in Sign-in, SSO & MFA.
SSO returns a callback error#
Check that the identity provider uses the callback registered by Matii Auth and that Matii Auth allows the console's exact /login/callback URL. return_to is not an allowed URL usually points to FEDERATION_ALLOWED_RETURN_URLS.
The administration pages for SSO and SCIM need pop-ups allowed for the console origin and a browser-reachable MATII_AUTH_PUBLIC_URL. Review frontend, backend and identity-service logs for the same attempt.
I can see a key but cannot reveal its value#
For a server-side encrypted app, Secrets: read and Secrets: reveal are separate permissions. Check the member's role, app assignment, environment grant and folder limits. Production reveal may be restricted even when non-production reveal is allowed.
A protected environment refuses direct writes. Use a change request instead. A conflicting request must be recreated from current values.
An integration or webhook cannot connect#
Check the destination's credentials, TLS configuration and reachability from the backend. Internal addresses may need an explicit entry in MATII_EGRESS_ALLOWLIST; keep the general egress protection enabled.
For syncs, check the queue worker and Redis. For webhooks or log streams, check the event dispatcher and delivery history. A stream that exhausted its retries needs the receiver fixed before a replay. See Operations.
Password Manager asks for a Secret Key#
A new browser needs the Secret Key from your Emergency Kit or another enrolled device. Your master password alone is not enough for a vault using two-secret encryption. The account sign-in password cannot substitute for either.
If recovery is needed, use the recovery key or an enrolled organisation recovery flow. Resetting a vault deletes it; it is not a way to recover the old contents. See Password Manager.
Passkey unlock is unavailable#
Passkey unlock depends on the browser, authenticator, console hostname and organisation policy. Normal vault-unlock passkeys need PRF support. A passkey registered to a different hostname cannot unlock this deployment.
Some authenticators do not provide PRF. Server-assisted passkeys can support them only when an administrator explicitly enables the option and the vault has a Secret Key. That method needs a network connection and has a different security model. Use your master password when the browser cannot complete the passkey operation.
The browser extension will not connect#
Confirm that the extension build targets this deployment and that its exact ID is in MATII_PM_EXTENSION_IDS. Chrome and Edge store IDs can differ; Firefox uses its configured add-on ID.
Approve the connection from the console using the matching verification code. If the organisation recently required MFA, reconnect from an MFA-authenticated session. Check the connected-device limit and revoke unused devices if necessary.
Readiness reports a server-key failure#
Check the configured provider, its permissions and network access. Confirm that the configured key matches the installation and that any previous keys required during rotation are still available.
Do not generate a replacement SERVER_SECRET just to make the process start. Existing data needs its original key or a coordinated rotation. Follow Backup & recovery if the configuration or key material was lost.