Troubleshooting
Symptom-based guide. Container names are those in docker-compose.yml (konsolidat_backend, konsolidat_worker, konsolidat_scheduler, konsolidat_clickhouse, konsolidat_mariadb, konsolidat_caddy).
Excel add-in
| Symptom | Cause | Fix |
|---|---|---|
#NAME? on every K. cell | The add-in did not load, or Excel on the web could not fetch functions.json cross-origin | Open the task pane: its Instructions & testing panel logs associate=no or names=no. Re-sideload the manifest; for Excel on the web the server must send a CORS header on functions.json |
#N/A with "Not logged in" | No token | Sign in on the Konsolidat task pane; the token (X-Konsolidat-Token) lasts 8 hours |
Cells go #N/A after a working session | Token expired | Sign in again |
#N/A with "No trial balance for …" | An actuals read of a period that has no trial balance (konsol#401) | Submit the trial balance for that entity and period, or read another period |
#VALUE! | The add-in or the server refused the cell; the cell message names it (Invalid year, a malformed dimensions argument, an undeclared dimension, "Unknown request key", an undeclared period, no access to the entity) | Fix the argument; check the Messages panel |
#VALUE! with "takes at most … arguments" | A formula written before konsol#287, with two dimension arguments | Rewrite it with one dimensions argument; see Rewriting formulas |
Value 0 where you expect data | The period is loaded but has no rows for that account, scenario or dimensions, or a budget has no amount | Check the account, the dimensions filter, the Dataset's default measure, and that the build ran |
K.EPMSAVE shows #N/A | The server refused the write: locked cycle (423), stale cell (409), an undeclared budget dimension: the cell message says which. No write access to the entity, account or dimension shows "Not logged in" (HTTP 403) | Check the Budget Cycle status, the dimensions names and your Budget role |
Period 13 or CLS fails | The year does not declare period 13 | Add the closing period on the EPM Fiscal Year and Generate Periods |
| Slow sheet | Many distinct (dataset, measure, dimensions, scenario, layer) groups | Each group is one query; reduce the variety per sheet |
API
| Symptom | Cause | Fix |
|---|---|---|
401 | Not logged in | POST /api/method/login, or send the add-in token |
403 | Role gate (frappe.only_for) or entity scope | Check the user's roles and User Permissions on Entity |
403 on a GET from the Desk | frappe.xcall defaults to POST; GET-only methods refuse it | Call with GET |
417 / ValidationError naming periods | Undeclared period token | Use a period the EPM Fiscal Year declares |
423 Locked | Budget Cycle is locked | Unlock the cycle or write to an open one |
409 Conflict on budget_cell_save | base_modified is stale | Re-read the cell; the response carries the current value and timestamp |
Batch size N exceeds maximum of 2000 | Too many items | Split the request |
| A GET that writes "did nothing" | Frappe rolls back a GET | Writes must be POST (methods=["POST"]) |
null in a batch response | Per-item validation error | Read the errors array |
dbt builds
dbt runs inside the Frappe image. Do not install it on the host.
| Symptom | Cause | Fix |
|---|---|---|
| Build Approval stays Pending Review | Nobody approved it, or a stuck one blocks the scope | Approve from the record's Actions menu; the 15-minute reaper releases stuck Approved/Running rows |
assert_staging_not_stale fails with LAGGING | A reference table was missed by the latest reconcile_all | Read the Error Log for the failed sync, fix the cause, run reconcile_all |
... EMPTIED | The watermark promises rows the table lacks (wiped ClickHouse, restore in the wrong order) | Run reconcile_all, rebuild |
... NO_RECONCILE_RUN | No reconcile has run since the run-id column appeared | Run reconcile_all |
| Governed-rate pre-hook fails | A translated currency has no Group Exchange Rate for the period | Create and approve the rate |
| Governed-chart guard fails | The chart is not published, or an account lacks fx_method | Publish the chart |
| Models build against nothing on a fresh site | dbt ran before bench migrate wrote the reference tables | docker compose --profile setup run --rm configurator, then dbt_init |
| Manual build needed | — | docker compose --profile setup run --rm dbt_init (append dbt arguments to scope it: dbt_init run --select gold_trial_balance+); see the Operations Runbook |
| Full rebuild needed | Schema change | docker compose --profile setup run --rm dbt_init build --full-refresh (a schema-changing Build Approval does this itself) |
ClickHouse
| Symptom | Cause | Fix |
|---|---|---|
| Container unhealthy | Startup failure | docker logs konsolidat_clickhouse |
| Port 8123 not reachable from another host | Ports bind to 127.0.0.1 by default | Set CLICKHOUSE_BIND only if you mean to expose it |
Table doesn't exist | Models not built | Run a build |
| Disk full | Uncapped logs before konsolidat 302250a, or data growth | Logs are capped at 3 × 100 MB per container; check sizes with SELECT database, formatReadableSize(sum(bytes_on_disk)) FROM system.parts WHERE active GROUP BY database |
| Write-through table empty after restore | Reference tables are not in the backup | reconcile_all rewrites them from konsol |
epm_raw empty after restore | backup.sh skips epm_raw | Rebuild from the Trial Balance Submissions (konsol PR #381) |
Frappe / konsol
| Symptom | Cause | Fix |
|---|---|---|
| New code, old behaviour | docker compose up -d does not migrate | ./deploy.sh, or run the configurator (bench migrate) |
deploy.sh refuses to start | .env pins FRAPPE_BRANCH=version-15 | Back up, delete the line or set version-16, re-run |
| Background job never runs | Worker not running or on old code | docker compose ps; docker restart konsolidat_worker |
/app/... link | Frappe v16 Desk is at /desk | Old URLs redirect; update bookmarks |
| API returns HTML | Wrong path | /api/method/konsol.api.<method> |
| "Not permitted" on EPM Settings | Needs System Manager / EPM Admin | Grant the role |
| Sign-off throws after an upgrade | Migrate not run (new Close Settings fields) | bench migrate inside konsolidat_backend |
Close app
| Symptom | Cause | Fix |
|---|---|---|
| "No close role" | User has none of EPM Admin, EPM Analyst, Entity Accountant, EPM User | Assign a role |
| Entity missing from Trial balances | No Ownership Period covers the period, or no User Permission | Create the Ownership Period; grant the permission |
| Sign-off blocked | A blocking gap: missing TB, no rate, draft IC Balance with a rule, undeclared tolerance, Red checks | Each gap is listed with its fix on the Sign-off screen |
| Period shows "Re-sign needed" | An approval after sign-off changed the fingerprinted numbers | Run Checks and sign again |
| Remind refused | Nobody holds a User Permission on the entity | Give the accountant a User Permission on Entity |
| Rate missing for a currency | Entity has no functional currency, or no rate approved | Set the currency on the Entity; approve the rate |
Airbyte (optional)
| Symptom | Cause | Fix |
|---|---|---|
| D365 sync returns 401 | Expired client secret | Update it on the Connector and re-provision |
| Destination error | Wrong host or database | Destination is epm_raw at the pinned 172.30.0.10:8123 (scripts/setup-airbyte.sh) |
| Sync stuck Running | Timeout on a large entity | Use incremental sync; check Connector Health |
Common patterns
"It was working yesterday"
docker compose ps— every container healthy?curl http://localhost:8069/api/method/konsol.api.health- Connector Health list and
sync_watermark— anythingLAGGING? - Was the last Build Approval approved and did it finish?
"Numbers look wrong"
- Is the period signed off, and has anything changed since (Audit trail)?
- Query
epm_golddirectly to separate an API problem from a data problem. - Period token: month,
P07,Q1,FY,CLS? - Dataset and measure: which default measure does the Dataset declare?
- Run Checks: which assertion is Red, and which rows?