Documentation menu

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.

Updated Nov 25, 2026About 8 minIntermediate

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.

Where to find it:SystemData and securitySystem healthaddress: /data-safety/health

Who 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).

CardYellow or red meansConsequence for the club
DatabaseUnavailable or answers slowlyWithout the database nothing works. A slow answer points to load: long reports, an import
Redis (queues and cache)No connectionNotifications, 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 serverNo connection, invalid licence, no club key, the system is not activatedSome licence functions may not work
TelephonyAsterisk is unavailable or does not accept the login. Grey: telephony is not connectedCalls and call recording do not work
Telegram botThe bot token is invalid or Telegram is unavailable. Grey: the bot is not connectedThe bot does not answer clients
Push notificationsThe keys are not set or only some are setThe app does not get push
Background jobsRed: the last attempt ended with an error. Yellow: a job has not run for a long timeMemberships are not closed, reminders do not go, reconciliation does not run
BackupsGrey: 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 errorRisk of losing data in a failure
Disk and file uploadsYellow: little space. Red: almost no space or the file directory is unavailablePhotos and documents are not uploaded
Application and migrations versionThe database update is not finishedSome 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?

  1. Open System › Data and security › System health. The page collects all checks at once, which takes up to 10 seconds.
  2. Look at the overall summary at the top. If it says Everything works, you need read no further.
  3. Otherwise find the yellow and red cards. Each has an explanation and a What to do block.
  4. Follow the advice or pass it to support together with the text from Details (for support).
  5. 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?

  1. Find the Background jobs card. It spans the full width.
  2. Switch on the Only jobs with problems filter to see only failures. A "shown of all" counter stands beside it.
  3. In the table look at the columns Job, Schedule, State, Last success, Last error, Runs / errors. "Not yet" means the job has never run.
  4. 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.

Mail

VariableWhat it sets
MAIL_HOSTThe 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_PORTThe ports for sending and reading mail (587 and 143 by default)
MAIL_SUPPORT_USER, MAIL_SUPPORT_PASS, MAIL_SUPPORT_FROMThe 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_FROMThe mailbox for HR letters
MAIL_TLS_ALLOW_SELF_SIGNEDAllows a self-signed mail certificate
MAIL_HOST_ALIASFor 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 💥.

VariableWhat it does
LOG_ICONSThe 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_FORMATThe 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_LEVELThe minimum record level (debug by default)

Who sees it and what they can do

RoleViewActions
OwnerThe panelChecks again
ManagerThe panel, if the role has the System health rightChecks again
Administrator, trainer, cashier, accountant, operatorOnly by the right, usually noneNone

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.

 

Back to all documentation