Help
Troubleshooting
Symptoms and fixes for sign-in, permissions, data that does not show up, mobile connection and deployment.
Sign-in problems
No email code arrives
- Why
- Wrong email, spam folder, or email sending is not set up for the project.
- Fix
- Check spam. Confirm the exact address. An admin checks that Supabase sends email (custom SMTP) and the code templates use the token.
'Signups not allowed' or the code is refused for a new person
- Why
- Sign-up is invite-only and their email is not in Users.
- Fix
- An admin adds the email on the Users page, then they try again.
Signed in but asked to set up two-factor authentication
- Why
- Admins must use an authenticator app.
- Fix
- Click the setup button to show the QR code. See Users, roles and security.
Signed in but nothing shows or 'no access'
- Why
- The email has no role, or the role has no View permission.
- Fix
- An admin assigns a role on the Users page.
Data does not show or does not save
A page is empty although data exists
- Why
- Your role lacks View, or you have 'Own only' scope.
- Fix
- Ask an admin to check your role on the Roles page.
A save fails with a message
- Why
- A rule refused it (duplicate, balance, locked payroll run, not allowed).
- Fix
- Read the message: it states the reason. Fix that and save again.
A sidebar item is missing
- Why
- No View permission for that module.
- Fix
- Ask an admin. Admin-only items (Users, Roles, Modules, Audit log) show only to admins.
Everyone looks like an admin in the screens
- Why
- The permission migrations have not run on this database, so the app treats everyone as admin in the UI.
- Fix
- Run the pending migrations (docs/setup/database-run-list.md). Database rules still protect the data.
Mobile app
Cannot connect
- Why
- Wrong address, or /api/app-config fails.
- Fix
- Open https://<your address>/api/app-config in a browser. It must show JSON. If it errors, the deployment is missing its Supabase settings.
'Needs an update'
- Why
- App and database versions do not match.
- Fix
- Update the app, or ask the admin to run pending migrations.
For whoever runs the server
Build or deploy fails
- Why
- A type error, a lint error or a missing environment variable.
- Fix
- Run npm run check locally. Compare environment variables with sample.env.
Notifications or invitations do not arrive
- Why
- Resend or SUPABASE_SERVICE_ROLE_KEY is missing on the server.
- Fix
- Set RESEND_API_KEY and SUPABASE_SERVICE_ROLE_KEY in the deployment's environment variables, then redeploy.
A new migration breaks the app until it is run
- Why
- The code expects the new tables or functions.
- Fix
- Run the migrations listed in docs/setup/database-run-list.md in order.