Skip to content

Troubleshooting

Every entry here happened in this guide's own lab, except where it says otherwise. The transcripts named are the receipts.

First start dies: "ENOENT … noco.db"

Symptom. The binary prints a decorated exception box naming SqliteClient @ createDatabaseIfNotExists and a path ending in noco.db, then exits (transcript t01).

Cause and fix. NC_TOOL_DIR points at a folder that does not exist, and the binary will not create it. mkdir -p the folder first, then start. If the folder exists and the error names a permission instead, the answer is the folder's owner, not the binary.

First start is silent for minutes

Symptom. Nothing in the log, no listener on the port, but the process is alive and growing.

What the lab learned. On its small shared machine the first start took about three minutes to answer; a later check found noco.db created in the tool directory before the port opened. Patience and the file are the diagnostics: if noco.db exists and grows, it is starting; if the process is gone, read the log's last box.

"ERR_FORBIDDEN" when creating a base through the API

Symptom. A token that works elsewhere gets Forbidden - Unauthorized access from POST /api/v2/meta/bases.

Cause and fix. In this build the request must name the workspace: include "fk_workspace_id" in the body (find yours from GET /api/v2/meta/workspaces). The plain list call wants a context too; the app supplies one you never see (transcripts t02, t03).

"Missing 'parentId' property" — and its cousins

Symptom. Creating a link, rollup or lookup is refused with Missing 'fk_relation_column_id' property in request body, or the parentId variant, although the property is right there in colOptions.

Cause and fix. In 0.301.5 these relation properties belong at the top level of the request body, not nested in colOptions. Move them up; transcript t04 has both the refusal and the working call, property by property.

"Cannot POST /api/v2/meta/tables//views"

Symptom. Creating a view at the obvious address answers Cannot POST ....

Cause and fix. Each view kind has its own route in this API generation: /kanbans, /galleries, /forms, /grids beneath the table. The list of views, by contrast, is at /views (transcript t08).

The insert that "failed" — but the row exists

Symptom. A single-record POST answers HTTP 422, ERR_INVALID_PK_VALUE — and the record is in the table afterwards (transcript t07).

Cause and fix. The insert succeeds; building the response trips over the new row's key. Send rows as an array, even an array of one, which returns 200 — and adopt the habit this whole guide runs on: read back after writing.

Symptom. Records were inserted with a link field included; the link column shows nothing, and the rollup over it counts zero (transcript t05).

Cause and fix. Link values inside a record insert are silently ignored in this build. Set links through the link endpoint — POST to /tables/<table>/links/<field>/records/<row-id> with the other row's id — or pick the value in the app, which calls the same endpoint.

A viewer "can't edit" — and shouldn't

Symptom. A collaborator's save is refused: You do not have permission to update data with the roles: Viewer (transcript t09).

Reading. That is not a fault; it is chapter 10 working. The fix, if the person should edit, is a stronger role on that base — granted by an owner, in the member list, never by sharing a stronger account's token.

Symptom. A share link 404s, or shows columns it shouldn't.

Reading. A dead UUID usually means sharing was turned off or the view was deleted — the link is the view, so both kill it. Too much showing means the view shows too much: tighten the view's fields and filters (chapter 8); the link merely reports what the view contains.