Files
wekan/docs/Features/Admin-Panel/Problems/Summary.md
T
Lauri Ojansivu 788131193e Admin Panel / Problems / Summary: sign-in refusals grouped by reason, with count, latest account and how to fix it.
The person signing in still sees the same generic message whatever the
reason, so a signed-out visitor cannot tell "no such user" from "wrong
password". Every refusal is recorded with its precise reason
(models/lib/loginRefusals.js, server/lib/loginRefusals.js): wrong password,
unknown user, disabled account, brake, malformed request, and the LDAP
reasons, which the LDAP handler now records before returning its one generic
error - including the two messages that used to name the account. Problems /
Summary groups them like a status dashboard: one row per reason with its
count, first and latest time, latest account and address, the fix and the
Admin Panel pane where it is made, and each problem area lists its three most
frequent problems. Translated to every language.

Thanks to Raymond-Voogt and xet7 !

Fixes #6942,
2026-11-24 17:49:45 +02:00

14 KiB

Admin Panel / Problems / Summary

What it is

The first pane of Admin Panel / Problems, and the one it opens on: what is running now, what is wrong now, and how many new problems each problem stream has. It is the administrator's daily check: one page that says whether a migration is slowing logins down, whether some cards or lists need a repair, and which reports have something new, with the buttons to fix or acknowledge them. Address: /admin/problems/summary (the bare /admin/problems and the old /admin-reports open it too). Site administrators only: the page shows "not authorized" to anybody else, and every method behind it refuses a caller who is not isAdmin. Organization administrators do not see it.

Read more

How to use it

Open it

  1. Log in as a site administrator.
  2. Click your avatar or username at the top right and choose Admin Panel.
  3. Click the Problems tab. It opens on Summary.

Read what is running and what is wrong

  1. Under Status, read the in-progress list. When something runs, the page says logins can be slow until it finishes; otherwise it says "No migrations or repairs are in progress."
  2. Read the problem lines below it. Each has a count and a detail line saying what to do.

Fix what has a button

  1. Click Repair broken cards, Restore or Repair beside the problem.
  2. For a data health repair that deletes data the button turns into Confirm; click it again to run it.
  3. Wait: the button shows "Repairing…" and is disabled until the repair is done, then the count updates.

Run the data health scan now

  1. Under Data health, click Start. The scan runs in the background; its findings appear under Status when it is done.

Acknowledge or clear the problem streams

  1. Under Problems, tick each line you have reviewed, for example Admin Panel → Problems → Security Report.
  2. Click Acknowledge to reset their new-problem count (the rows stay), or Clear to delete their rows up to now.

Sign-in refusals (#6942)

When somebody could not sign in, Sign-in refusals says why: one row per reason - wrong password, no such account, account disabled, too many attempts, an incomplete request, and for LDAP: the directory refused the password, not in the allowed group, an account with that name not linked to the directory, or the account belongs to another directory entry - with how many times it happened, the latest account and address, and one line on how to fix it, which opens the pane where it is fixed. The person signing in still sees the same generic message whatever the reason, so the sign-in page never tells a stranger which accounts exist.

Under each problem area, its most frequent kinds are listed too: what happened, how many times, when last, and the latest account or address.

How the numbers are calculated

  • A newer WeKan is available: shown when the last Check version in Admin Panel / Settings / Version found a newer WeKan than this server runs, until the server runs it. WeKan never checks on its own: the result is the one an administrator asked for, kept in the versionChecks collection (models/lib/versionCheck.js updateProblem).
Number How it is computed
Reload the pane reloads every 30 seconds (Meteor.setInterval(..., 30000) in client/components/settings/problemsSummary.js).
Broken cards Cards.find(brokenCardsSelector()).countAsync(): cards whose boardId, swimlaneId or listId is null, '' or missing, or whose type is not one of the four card types WeKan shows (models/lib/brokenCardsRepair.js, the same definition the Broken cards pane lists with).
Repair broken cards result how many cards were placed on their board's first usable list / swimlane, and how many cannot be placed (no board id at all; never deleted).
Lists missing their swimlane lists with no swimlaneId whose creation swimlane is recorded in the list's position history and still exists, and whose cards are not in another swimlane (server/lib/restoreListSwimlanes.js, models/lib/listSwimlaneRestore.js). Restore reports how many were restored and how many remain.
Board data-repair boardsDone/boardsTotal boards (Repairs.md).
Data health <date> UTC - Checks with findings: <found> / <checks>, the date as YYYY-MM-DD HH:MM; "Never" when the scan has never run.
New problems: N per stream, rows newer than that stream's last acknowledgement whose severity is not info (models/lib/eventLogProblems.js). Rows with no severity are counted. A stream with 0 is not listed.
Clear deletes every row of each ticked stream with a date up to now, and acknowledges it at that time (models/eventLog.js clearEventLog).
Retention rows older than EVENTLOG_RETENTION_DAYS days (default 90; 0 keeps them for ever) are deleted, checked once an hour and run once a day for the whole installation (the first server to claim the day does it).

How it works in WeKan

The same overview is printed by snap run wekan.problems (Snap.md) and returned by GET /api/admin/problems (REST API), which also gives the new-problem count per stream (server/models/eventLog.js).

Status

From the systemStatusReport method (server/methods/systemStatus.js, server/lib/systemStatus.js, models/lib/problemsOverview.js).

In progress - every migration or repair that is running now, read from the persisted status collections so it is right after a restart too:

  • the database text migration (MongoDB to and from FerretDB v1), with its direction and phase (Migrations.md);
  • the board data-repair, as done/total boards (Repairs.md);
  • data recovery / maintenance;
  • an attachment migration or repair.

When nothing runs, the pane says "No migrations or repairs are in progress." While something does, it says logins can be slow until it finishes.

Problems - each detected problem as a line with its count and detail:

Problem Button What the button does
Broken cards - cards with no board, swimlane or list, or an invalid type Repair broken cards Runs the repairBrokenCards method over every board, then says how many were fixed and how many cannot be placed on any board (no board id at all).
Lists missing their swimlane (#6670) Restore Runs restoreListSwimlanes: puts each list back in the swimlane it was created in, where that is still recorded and still exists, and says how many were restored and how many remain board-wide. A list with cards in another swimlane is left alone, since binding it would hide them.
A failing login-page check - Configuration, not data; the detail says what to change (Login-Problems.md).
A failed or overdue Admin Panel backup - See Backup.
A data health finding Repair Runs repairDataHealth for that check. A repair that only moves data runs on one click; one that deletes data first turns into Confirm and runs on the second click (Data-Health.md).

Every button is disabled while its repair runs, and the overview reloads when it is done so the count changes straight away.

Data health

The last run of the nightly read-only data health scan, as <date> UTC - Checks with findings: <found> / <checks>, or "Never" when it has never run. Start runs the scan now (dataHealthScanNow); it runs in the background and its findings appear under Problems above (Data-Health.md).

Problems (the event streams)

One checkbox line per event stream with problems newer than its last acknowledgement, written as the menu path (Admin Panel → Problems → Security Report) with its count of new problems (New problems: N), from the eventLogProblemAreas method. The streams are security, speed, tests, cpu, ram, disk, database, integrity and mail (EVENT_STREAMS in models/eventLog.js); the API usage report is not one of them. A row with severity info is never counted as a new problem (models/lib/eventLogProblems.js), so a CPU spike that only records its own mitigation does not raise the count.

The menu name comes from STREAM_LABEL_KEY in problemsSummary.js, which names every stream with the key its own pane has in the Problems menu: Security Report, Speed, Tests, CPU usage, Memory usage, Disk usage, Database problems, Filesystem integrity and Email. Until 2026-11-24 the last three had no entry and their line showed the stream id itself (Admin Panel → Problems → database); tests/problemsSummaryLabels.test.cjs now fails when a stream has no name or a different one than its pane.

Tick the streams you have reviewed, then:

  • Acknowledge (acknowledgeEventLog) - resets the new-problem count of each ticked stream. The rows stay in its pane.
  • Clear (clearEventLog, #6893) - deletes every row of each ticked stream up to now and acknowledges it. A problem that happens again after the click shows as new again.

This is the only place in the web page where problems are acknowledged or cleared; the stream panes themselves are read-only. With nothing new, the section says "No new problems." The REST API has the same acknowledge, as POST /api/admin/problems/:stream/acknowledge.

Rows also age out by themselves after EVENTLOG_RETENTION_DAYS days (default 90, 0 keeps them for ever), checked once a day for the whole installation.

Tests

Commits