System health: are the database, mail, telephony, backups OK
The System health panel in Data and security: 11 checks with statuses and a What to do hint. How to run the check again and what each colour means.
For roles:OwnerManager
Screen overview in words
What this page covers: Why a health panel · The overall summary and colours · Eleven cards · Background jobs · What to do with red
When something does not work in the club, the first question is whether the system failed or we pressed something wrong. The System health panel answers it in a few seconds.
At the top is a big summary: Everything works, There are warnings or There are problems that need attention. Beside it are counters showing how many checks are red, yellow, green and grey. Below are the service cards: database, queues, mail, licence server, telephony, Telegram bot, push notifications, background jobs, backups, disk and version.
Each card has a colour and one sentence of explanation. If a card is yellow or red, there is a What to do block with advice. Technical details for support are hidden under Details.
Grey means "not connected", not a breakdown. If you do not use telephony or the Telegram bot, those cards are grey, and that is as it should be.
The Background jobs card is especially useful: these are the nightly and regular jobs, such as closing memberships and reminders. Expand it and you see when each job last ran and whether there was an error.
The Check again button runs a fresh check. The page also refreshes itself once a minute.
On this page
/data-safety/healthWho this is for: the owner and the manager who want to understand quickly whether the system is healthy before they call support. The administrator and the trainer do not need the panel: it changes nothing in their work.
Why do you need this screen?
The service consists of many parts: the database, the task queue, mail, the connection to the licence server, telephony, the bot, backups. Any of them can break quietly, and the club notices only when login codes or reminders stop arriving. The panel gathers the state of everything in one place, explains it in plain language and suggests what to do.
The check reads the state and fixes nothing. It does not send a test email and writes nothing to the database. So pressing Check again is safe.
What is on the screen?
Heading and button
- The System health («Стан системи») heading and a subtitle about the database, mail, telephony, jobs, backups, disk and version
- The tabs of the Data and security section: System health, Data reconciliation, Data maintenance
- The Check again button on the right
Overall summary
- One of four states: Everything works, There are warnings, There are problems that need attention, State unknown
- The check time: "Checked …"; if data came from the short cache, "from the short cache (up to 30 s)" is added
- Counters by status: Problem, Warning, Works, Not connected
Check cards
- A name, a coloured status, an explanation
- A What to do block for yellow and red cards
- Collapsed Details (for support) and the response time in milliseconds
What the colour means and what each card checks
Statuses: Works (green), Warning (yellow), Problem (red), Not connected (grey).
| Card | Yellow or red means | Consequence for the club |
|---|---|---|
| Database | Unavailable or answers slowly | Without the database nothing works. A slow answer points to load: long reports, an import |
| Redis (queues and cache) | No connection | Notifications, imports and background mailings are delayed |
| Mail (SMTP) | Not configured, server unavailable, wrong password, expired or self-signed certificate. Yellow: the certificate expires in the next few days (14 by default) | Login codes, contracts and client emails do not arrive |
| Licence server | No connection, invalid licence, no club key, the system is not activated | Some licence functions may not work |
| Telephony | Asterisk is unavailable or does not accept the login. Grey: telephony is not connected | Calls and call recording do not work |
| Telegram bot | The bot token is invalid or Telegram is unavailable. Grey: the bot is not connected | The bot does not answer clients |
| Push notifications | The keys are not set or only some are set | The app does not get push |
| Background jobs | Red: the last attempt ended with an error. Yellow: a job has not run for a long time | Memberships are not closed, reminders do not go, reconciliation does not run |
| Backups | Grey: the backup service does not report a date. Yellow: the last backup is older than allowed (26 hours by default). Red: the backup service is unavailable or returned an error | Risk of losing data in a failure |
| Disk and file uploads | Yellow: little space. Red: almost no space or the file directory is unavailable | Photos and documents are not uploaded |
| Application and migrations version | The database update is not finished | Some screens may work incorrectly |
The thresholds are set by system rules of the System group: "Warn about the mail certificate N days ahead" (14), "Warn when free disk space is below, %" (10), "The last backup is no older than, hours" (26) and "System health panel: cache, seconds" (15, range 0–30).
Grey is not always a problem
Grey means "not connected". If the club does not use telephony or the Telegram bot, those cards are grey, and that is as it should be. The backups card is grey too if the backup service does not report a date: then check the backups by hand or ask the vendor to set up the status report.
Actions on the screen
How do I check the system state?
- Open System › Data and security › System health. The page collects all checks at once, which takes up to 10 seconds.
- Look at the overall summary at the top. If it says Everything works, you need read no further.
- Otherwise find the yellow and red cards. Each has an explanation and a What to do block.
- Follow the advice or pass it to support together with the text from Details (for support).
- After fixing, press Check again to refresh the state immediately. The page itself rereads the data once a minute.
How do I see whether the nightly jobs work?
- Find the Background jobs card. It spans the full width.
- Switch on the Only jobs with problems filter to see only failures. A "shown of all" counter stands beside it.
- In the table look at the columns Job, Schedule, State, Last success, Last error, Runs / errors. "Not yet" means the job has never run.
- Copy the text of the last error and pass it to support. If there are no problems you see "No problems with jobs".
Typical situations
Clients complain that login codes do not arrive
Open the Mail (SMTP) card. If it is red, the email is not being sent: read the explanation (unavailable server, wrong password, certificate) and pass it to support. For codes through Telegram check the Telegram bot card.
Reminders have not arrived for the second day
Check Redis and Background jobs. Without Redis the queues stand still, and the reminder job could have stopped with an error.
Reconciliation does not start at night
Open Background jobs and find the reconciliation job. A yellow state means it has not run for a long time. About the reconciliation itself: Data reconciliation.
Before a big import I want to make sure everything is healthy
Check Database, Redis and Disk. An import runs in the background through queues and loads the database. Next: Data migration.
When the system refuses
The system answers: «Перевірка не вдалася: …»
One of the checks failed and the rest ran. The advice is in the What to do block: refresh the panel, and if it repeats, contact support.
The system answers: «Немає доступу»
Your role has no System health right. Ask the club owner to switch on the needed right for your role on the roles screen.
The system answers: «Не вдалося завантажити дані»
The panel got no answer. Press "Try again". If that does not help, check the internet and contact support.
The panel itself always answers, even when part of the services are down: in that case the problem cards turn red.
For the server administrator: mail and log variables
This section is for those who deploy and maintain the CRM server. The variables live in the server's .env file and take effect after a restart. They cannot be changed in the CRM interface.
| Variable | What it sets |
|---|---|
MAIL_HOST | The address of the mail server for SMTP and IMAP (localhost by default). The mail certificate must be issued for exactly this address and contain the whole chain, otherwise the "Mail" card turns yellow or red |
MAIL_SMTP_PORT, MAIL_IMAP_PORT | The ports for sending and reading mail (587 and 143 by default) |
MAIL_SUPPORT_USER, MAIL_SUPPORT_PASS, MAIL_SUPPORT_FROM | The support mailbox. Without a login and password mail counts as not configured, and the card turns grey |
MAIL_HR_USER, MAIL_HR_PASS, MAIL_HR_FROM | The mailbox for HR letters |
MAIL_TLS_ALLOW_SELF_SIGNED | Allows a self-signed mail certificate |
MAIL_HOST_ALIAS | For Docker Compose only: the mail name that the API container sees as the host's address (mail.gyms.cloud by default) |
The "Mail" card on this screen checks exactly these values and tells you which variable is missing. It does not send a test letter.
Server logs with emoji
The server writes the log as one JSON line per record, and the first key of the line, icon, shows the level: 🔍 debug, 🟢 info, 🟡 warning, 🔴 error, 💥 fatal. Some events have their own icons: 🚀 server start, 🛑 stop signal received, 📖 Swagger. To find only errors and failures quickly, filter the container log by lines that start with 🔴 and 💥.
| Variable | What it does |
|---|---|
LOG_ICONS | The value false removes the icons from the log (for log collectors that do not handle non-ASCII characters). The icons are on when the variable is absent |
LOG_FORMAT | The value pretty switches on a readable one-line view with a coloured level and the error stack on separate lines. It is meant for local development; on a working server keep the standard JSON |
LOG_LEVEL | The minimum record level (debug by default) |
Who sees it and what they can do
| Role | View | Actions |
|---|---|---|
| Owner | The panel | Checks again |
| Manager | The panel, if the role has the System health right | Checks again |
| Administrator, trainer, cashier, accountant, operator | Only by the right, usually none | None |
Among the base roles the owner and the manager get the System health right. The owner switches it on for already created roles on the roles screen.
Frequently asked questions
Why are some cards grey?
Grey means not connected: telephony, the Telegram bot or the backup service are not configured or do not report their state. For a club without these services that is normal.
Does the panel send a test email or load the database?
No. No email is sent and no data changes. The check reads the state and takes up to 10 seconds.
How often does the panel refresh?
The page rereads the data once a minute. The Check again button runs a fresh check at once, without the cache.
What should I do if the backups are yellow?
The last backup is older than allowed (26 hours by default). Contact support: new backups are not being created.
Who sees the panel?
The owner and the manager, and any role to which the owner switched on the System health right on the roles screen.
Keep reading
- Data reconciliation: a nightly check of money and stock
- Data maintenance: duplicates, employees without a role
- Connect IP telephony to the CRM: SIP trunk, numbers
- Connecting messengers: Telegram and Viber
- License and invoice: status, location limit, payment
- CRM settings and integrations: rules, roles, importGYMS-CRM settings: hundreds of business rules with no programmer, roles, locations, translations, agreements, payment, fiscal receipts, import. See the screens.
- Gym access control: QR code, card or turnstile comparedHow to set up entry to a fitness club: QR code and club card, membership checks, turnstiles via an agent, anti-passback, debts and manual passes for guests.
- CRM data security for clubs: roles, login, backupsA security guide for club CRMs: least-privilege roles, two-step login, offboarding staff, the activity log, IP blocking and backups, with a practical checklist.
- Moving from Excel to a CRM: preparing and importing clientsHow to move from Excel or another system to a CRM without losing data: cleaning, duplicates, memberships and balances, a trial import, checks and launch.