When Kaisar Node fails, it prints a readable error: line followed by a log: line with a code. Codes starting with KN- come from Kaisar Node itself; codes starting with E- come from Kaisar's servers. A code never changes meaning.
error: <what went wrong>
log: KN-1002Command and local files (KN-10xx)
| Code | What it means | What to do |
|---|---|---|
KN-1001 | The command or one of its options is not valid. | Run kaisar --help or kaisar <command> --help and check the spelling of the command and options. |
KN-1002 | The link code is missing or is not 6 digits. | Copy the 6-digit code from Kaisar App › Node Hub › Add node and run kaisar link <code> again. |
KN-1003 | A file you passed to the command could not be read. | Check the path and that your user can read the file. |
KN-1004 | This operating system or processor is not supported. | See the system requirements on Run a node and use a supported build. |
KN-1005 | Running in a container without the host machine ID mounted, so the machine cannot be identified. Linking is refused. | Mount the host machine ID read-only: add -v /etc/machine-id:/etc/machine-id:ro to docker run (or the same volume in Compose), then link again. |
KN-1006 | This Linux machine has no usable machine ID (missing, empty or uninitialized). Linking is refused. | Create one once as root: sudo systemd-machine-id-setup, or dbus-uuidgen > /etc/machine-id (Alpine: apk add dbus first). Then link again. |
KN-1007 | This machine has less than the 8 GB (estimate, not final) memory minimum (16 GB recommended). Tasks may fail, and below 4 GB they will not run reliably. Linking and running are not blocked. | Close other apps while Kaisar Node runs. A task that runs out of memory fails and is given to another machine. |
KN-1008 | Less than 2 GB (estimate, not final) of disk space is free where Kaisar Node keeps its data. This is a warning only. | Free up at least 2 GB (estimate, not final) of disk space for task packages and models. |
KN-1009 | The enrollment token is empty or malformed. | Copy the enrollment token again from the operator portal and run kaisar link --token again. |
KN-1010 | This machine has fewer than 4 (estimate, not final) CPU threads. This is a warning only: tasks still run, more slowly. | Tasks still run. If they often run out of time, use a machine with more CPU threads. |
Node key and OS key store (KN-11xx)
| Code | What it means | What to do |
|---|---|---|
KN-1101 | The OS key store (Keychain, Credential Manager or the Linux kernel key store) returned an error. | Run Kaisar Node as the same signed-in user that linked it. On a server, run it under one fixed user account. |
KN-1102 | The node key in the OS key store is damaged. | Remove the machine in Kaisar App › Node Hub, then link it again: a new key is created. |
KN-1103 | There is no node key on this machine yet. | Link the machine with kaisar link <code>. If it was linked before, remove the old entry in Kaisar App › Node Hub first. |
KN-1104 | The key store on this machine (the Linux kernel key store) does not keep the node key after a restart. | After this machine restarts, remove it in Kaisar App › Node Hub and link it again. |
KN-1105 | The node key file or its folder can be read by other users, has the wrong owner or is a symbolic link, so it is not used. | Only the user running the node may read the key: chmod 700 on its folder and chmod 600 on the key file, both owned by that user. Kaisar Node does not change permissions for you. |
KN-1106 | The node key is in a key store that cannot be used here, for example the desktop keyring without a desktop session. | Run Kaisar Node in your desktop session with the keyring unlocked. Kaisar Node does not create a second key elsewhere. |
Machine profile (KN-12xx)
| Code | What it means | What to do |
|---|---|---|
KN-1201 | The configuration folder could not be found. | Make sure your user has a home folder, or set KAISAR_NODE_CONFIG_DIR to a folder your user can write. |
KN-1202 | The machine profile (the saved node ID) could not be read or written. | Check that your user can write the configuration folder and that the disk is not full. |
KN-1203 | The machine profile is damaged. | Run kaisar unlink, or remove the machine in Kaisar App › Node Hub, then link again. |
Linking (KN-13xx)
| Code | What it means | What to do |
|---|---|---|
KN-1301 | This machine is not linked to a Kaisar ID. | Run kaisar link <code> with a code from Kaisar App › Node Hub › Add node. |
KN-1302 | The link request ended without being confirmed: it was rejected, cancelled or it expired. | Get a new code in Kaisar App and confirm the request there within 10 minutes. |
KN-1303 | The link was confirmed but no node ID came back. | Run kaisar whoami. If it shows no node ID, link again with a new code. |
KN-1304 | Unlinking was not confirmed by Kaisar. | Check the connection and run kaisar unlink again, or remove the machine in Kaisar App › Node Hub. |
Connection to Kaisar (KN-20xx)
| Code | What it means | What to do |
|---|---|---|
KN-2001 | Kaisar could not be reached. | Check the internet connection, and that outbound HTTPS on port 443 is allowed by your firewall or proxy. |
KN-2002 | The reply from Kaisar could not be read. | Try again later. A proxy that rewrites HTTPS traffic can cause this: let Kaisar Node connect directly. |
KN-2003 | Kaisar refused the request without giving a reason. | Try again later. If it keeps happening, contact support with the full log: line. |
KN-2004 | An address that is not HTTPS was refused. | Use the default Kaisar address. Releases and snapshots are only downloaded over HTTPS. |
KN-2005 | This version is older than the minimum supported version. The machine gets no tasks until it is updated. | Install the latest version from Downloads, or run kaisar update-check --download <folder>. |
KN-2006 | A reply was larger than allowed and was dropped. | Try again later. If it keeps happening, contact support with the full log: line. |
KN-2007 | This machine's clock differs from Kaisar's time. From 10 seconds it is a warning; from 30 seconds requests are rejected. | Turn on automatic time sync. Linux: timedatectl set-ntp true; Windows and macOS: set the date and time automatically. |
Machine rules (KN-22xx)
| Code | What it means | What to do |
|---|---|---|
KN-2201 | This machine already runs a node: one node per machine. Reported by Kaisar's servers. | Unlink the old node with kaisar unlink on this machine, or remove it in Kaisar App › Node Hub. A cloned virtual machine needs its own machine ID: Linux sudo rm /etc/machine-id && sudo systemd-machine-id-setup then restart; Windows: set a new GUID in HKLM\SOFTWARE\Microsoft\Cryptography\MachineGuid (as administrator). Containers share the host machine ID: one node per host. |
Local endpoints on the machine (KN-23xx)
| Code | What it means | What to do |
|---|---|---|
KN-2301 | The metrics address was refused. Metrics can only listen on this machine (127.0.0.1), or on a private address when a metrics token is set. | Use --metrics-bind 127.0.0.1:9464. In Docker or on Kubernetes, listen on the container or pod private address and set --metrics-token-file. |
KN-2302 | The metrics endpoint could not start: the port is in use, or the metrics token file is missing or too short. | Choose another port with --metrics-bind, or stop the program that uses it. A metrics token file must hold at least 32 characters. |
Tasks (KN-30xx)
| Code | What it means | What to do |
|---|---|---|
KN-3001 | A task ticket was not valid and was skipped. | Nothing to do: the task goes back to the queue. Update Kaisar Node if this keeps happening. |
KN-3002 | A task failed while running. | The task is returned so another machine can run it. Check free memory and disk; update Kaisar Node if it keeps happening. |
KN-3003 | The task worker stopped unexpectedly. | Restart Kaisar Node. If it keeps happening, contact support with the full log: line. |
KN-3004 | The lease on a task ended before Kaisar received the result. | The task is given to another machine. Check the connection and the system clock; a slow or busy machine can also cause this. |
KN-3005 | Kaisar Node is already running for this node on this machine. | Stop the other Kaisar Node process (the desktop app or kaisar run), then start it again. |
KN-3006 | Kaisar Node is not running with this data folder, or it has not reported for over 2 minutes. | Check the container or service log and run kaisar doctor, then restart Kaisar Node. |
Releases and updates (KN-40xx)
| Code | What it means | What to do |
|---|---|---|
KN-4001 | The release key built into this version is damaged. | Download Kaisar Node again from Downloads and verify the file before you run it. |
KN-4002 | The signature file (.minisig) could not be read. | Download the .minisig file again, next to the build it belongs to. |
KN-4003 | The signature does not match the Kaisar release key. | Do not run the file. Delete it, download it again from Downloads and tell us via Help. |
KN-4004 | The SHA-256 checksum of the downloaded file does not match. | Do not run the file. Delete it and download it again. |
KN-4005 | The download was larger than allowed and was dropped. | Do not run any partial file. Try again later. |
KN-4006 | The offered version is not newer than the one running, so it was refused. | Nothing to do: you already run this version or a newer one. |
KN-4007 | The signature is not bound to this file or version. | Do not run the file. Delete it and download it again from Downloads. |
KN-4008 | The downloaded file could not be saved. | Check that the download folder exists, that your user can write it and that the disk is not full. |
KN-4009 | There is not enough disk space for the update. | Free up disk space, then check for updates again. |
KN-4010 | The update could not be installed. | Download the latest version from Downloads and install it yourself. |
KN-4011 | This installation cannot update itself. | Update Kaisar Node with your package manager, for example apt. |
Market data snapshots (KN-50xx)
| Code | What it means | What to do |
|---|---|---|
KN-5001 | A market data snapshot is not valid JSON. | Nothing to do: the task is skipped and returned. Update Kaisar Node if this keeps happening. |
KN-5002 | A market data snapshot has the wrong structure. | Nothing to do: the task is skipped and returned. Update Kaisar Node if this keeps happening. |
KN-5003 | A snapshot was signed with a key this version does not trust. | Update Kaisar Node: newer versions carry newer snapshot keys. |
KN-5004 | The snapshot signature is wrong. | Nothing to do: the snapshot is refused and the task is not run. |
KN-5005 | The candle hash does not match the candles in the snapshot. | Nothing to do: the snapshot is refused and the task is not run. |
KN-5006 | The number or times of candles in the snapshot do not match. | Nothing to do: the snapshot is refused and the task is not run. |
KN-5007 | The snapshot ID does not match its content. | Nothing to do: the snapshot is refused and the task is not run. |
KN-5008 | The snapshot is not the one the task asked for. | Nothing to do: the snapshot is refused and the task is not run. |
KN-5009 | The snapshot was larger than allowed and was dropped. | Nothing to do: the task is skipped and returned. |
KN-5010 | The snapshot could not be downloaded. | Check the connection and that outbound HTTPS on port 443 is allowed. |