Each warning or error line in the log has a component in brackets, a code, and details as key=value pairs:
[BACKEND] CONFIG_KEY_MISSING key=title
The code tells you what happened. The details name the file, key or page. KB4IT prints these lines in the terminal and keeps them in var/log/kb4it.log inside the knowledge base. Run with -L DEBUG to see every step around them.
The tables list each code once. Stops means the command ends with exit status 1. The common problems have a longer answer in Troubleshooting.
Command result
KB4IT writes one of these lines last, when a command fails. The line before it names the cause.
Code
Level
Meaning
CONFIG_ERROR
error
The settings are missing or wrong. Stops
THEME_ERROR
error
The theme cannot load, or its own checks failed. Stops
COMPILE_ERROR
error
Pages could not be made, a hook failed, or documents cannot be read with "fail_on_invalid": true. Stops
KB4IT_ERROR
error
Any other failure. Stops
Settings
Code
Level
Meaning
What to do
CONFIG_MISSING
error
The repo.json path given to the command does not exist. Stops
Check the path; it is config/repo.json inside the knowledge base
The apphelp theme checks the properties of each page. With "strict": true, the default, any of these problems stops the build and the message lists them all. With "strict": false they are warnings. See apphelp.
Code
Meaning
What to do
META_MISSING
A page lacks Section, Order, Summary or Feature
Add the property the line names
META_INVALID
A property has a wrong value: a reserved file name, the old Kind property (now DocType and Layout), an unknown Layout, an Order that is not a whole number, a Summary over 160 characters, a Related page that does not exist, or a malformed HelpId
Fix the value the line names
META_UNKNOWN
A Feature, Level or Platform value is not in the vocabulary
Use a listed value, or add it to vocabulary
META_CONFIG
The vocabulary in repo.json has no Feature list
Add one
DOCTYPE_MISSING
A page has no DocType. It is left out
Add DocType
DOCTYPE_INVALID
DocType is not Tutorial, How-to guide, Reference or Explanation. It is left out
Use one of the four
DOC_LEFT_OUT
A page without a valid DocType was left out of the site
See DOCTYPE_MISSING and DOCTYPE_INVALID
HELPID_DUPLICATE
Two pages use the same help id
Give each page its own
HELPID_TARGET_MISSING
A help id points to a page or section that does not exist. Stops in strict mode
Fix the HelpId or the heading it points to
CONTRACT_MISSING
An entry of the contract file has no page. Stops
Add the page or help id, or remove the entry
CONTRACT_FILE_MISSING
The contract file named in repo.json does not exist
Create it, or remove contract
INDEX_PAGE_MISSING
A page is missing from the search index because its file was not written
Look for its error above in the log
Terminal interface and projects
Code
Level
Meaning
What to do
PROJECTS_CORRUPT
warning
projects.json cannot be read. KB4IT renames it to projects.json.corrupt-<date> and starts an empty list
Add your knowledge bases again, or repair the kept copy
PROJECTS_LOAD_ERROR
error
kb4it projects cannot read the list
Check ~/.kb4it/projects.json
PROJECT_SAVE_ERROR
error
A new knowledge base could not be added to the list
Check permissions of ~/.kb4it
REPO_PATH_MISSING, REPO_PATH_CREATED
warning
kb4it create was given a folder that did not exist, and created it
Nothing
WARNING_PUBLIC
warning
kb4it serve listens on an address other computers can reach
Use the default --host 127.0.0.1 unless you need it
Internal errors
These point to a bug in KB4IT or in a theme, not to your documents. Please report them with the log.
Code
Level
Meaning
SERVICE_NOT_REGISTERED
error
A part of KB4IT asked for a service that does not exist. Stops
DOMAIN_UNKNOWN
error
A theme wrote a value into an unknown place
DOC_NOT_IN_DB
warning
A theme asked for a document that is not in the build
Related pages
How-to guideTroubleshooting What to do when a document is missing, a link is broken, a theme is refused or the build stops.
Referencetechdoc The techdoc theme for team knowledge bases, the properties it reacts to and its settings.
Referenceblog The blog theme, how to write a post with an excerpt and the settings it reads.
Referencebookshelf The bookshelf theme for study notes organised as books, parts and chapters, with reading progress.
Referenceapphelp The apphelp theme for application help sites, its page properties, help ids and settings.