Error codes
Every error code komando gives, with its exit code, an example message and the usual next step. The error's own hint says what to do in your case. This page is made from the code (komando schema lists the same under error_codes). Results and errors explains the common ones.
| Code | Exit | Example message | Usual next step |
|---|---|---|---|
AMBIGUOUS_MATCH | 8 | --old matches … times in … | add surrounding context to --old so it is unique (read the file with komando fs cat SERVER PATH), or pass --all |
APPROVAL_WINDOW_FAILED | 1 | read the message; komando doctor checks this computer's setup | |
AUDIT_TAMPERED | 1 | the audit log chain is broken at line … | keep a copy of the file and find out who changed it; komando keeps adding records after it |
AUDIT_UNAVAILABLE | 1 | the audit log cannot be written (…), so the key's command does not run | fix the file or folder permissions on the komando computer (komando doctor checks them) |
AUTH_FAILED | 4 | … asks … (two-factor login); only a person can answer it, and none is at a terminal here | run komando login SERVER in a terminal: komando asks you for the code once and keeps the login, so later commands (an AI agent's too) need no code; an AI agent asks the user to run it |
AWS_FAILED | 4 | AWS profile …: … | check the profile in ~/.aws/config |
AWS_LOGIN_REQUIRED | 4 | AWS profile …: … | a person runs komando login aws --profile … once, then run it again |
AWS_PROFILE_NOT_FOUND | 3 | there is no AWS profile … | add the profile to ~/.aws/config (or fix --option aws_profile) |
AZURE_FAILED | 4 | …: … | check that this computer reaches login.microsoftonline.com |
AZURE_LOGIN_REQUIRED | 4 | …: … | set AZURE_TENANT_ID, AZURE_CLIENT_ID and AZURE_CLIENT_SECRET for a service principal, run komando on Azure with a managed identity, or a person runs az login |
BACKUP_FAILED | 5 | could not make a backup of …: …; the file was not changed | check free space with komando exec TARGET --read-only -- df -h, or run without --backup |
BACKUP_NOT_FOUND | 3 | no backup of … found (looked for ….bak) | komando keeps a backup only when you edit with --backup; give another copy with --copy PATH |
BAD_CA | 2 | registry CA …: … | store the registry's CA certificate (PEM) with komando secret set NAME < ca.crt |
BAD_FILE | 2 | not a backup komando can read: … | give a backup komando can read: plain SQL text or a pg_dump custom archive (-Fc) |
BAD_RELEASE | 1 | … is … bytes, more than komando accepts; nothing was changed | report it at …/issues |
BAD_SECRET | 2 | the password for … contains a line break | store the password again without line breaks (komando secret set NAME) |
BINARY_FILE | 1 | … is a binary file; fs cat shows text only | save it with komando download … … |
BUCKET_NOT_FOUND | 3 | bucket does not exist | check the bucket name in the conn URL (komando conn show NAME) |
BUILTIN_RULE | 2 | … is a built-in rule and cannot be removed | built-in rules always apply (see them with komando policy list); for one intended command, confirm with the user and pass --allow-dangerous |
CACHE_AUTH | 4 | memcached refused the login: … | check the user in the URL and the password reference (komando conn show NAME) |
CACHE_CONNECT | 4 | cannot connect to …: … | the server's certificate could not be checked against this computer's CAs: give the CA that signed it with ?ca=secret:NAME (komando secret set NAME < ca.pem), or reach the server --via an SSH server with the plain scheme (redis://, memcached://) instead (komando conn edit NAME --via HOST --url ...) |
CACHE_ERROR | 5 | this memcached cannot list keys: … | start memcached with the LRU crawler on (the default since 1.5); cache get works without it |
CACHE_KEY_NOT_FOUND | 3 | no cache key named … | list keys with komando cache keys CONN 'pattern*' |
CACHE_SECTION_NOT_FOUND | 3 | INFO … returned nothing | this server has no such section; try komando cache info CONN --all |
CANCELLED | 1 | interrupted | it stopped before the end (Ctrl-C or a signal); check what it left, then run it again |
CA_EXISTS | 8 | server CA … already exists | choose another name, or komando host ca rm … first |
CA_HOSTS_INVALID | 2 | a server CA needs the server names it may vouch for | run komando host ca add NAME --key FILE --hosts '*.corp.example', with the domains the CA may vouch for |
CA_NOT_FOUND | 3 | no server CA named … | see the CAs with komando host ca list |
CERT_PROBLEMS | 1 | … of … targets need attention: … | renew or replace the certificates marked expiring, expired or not_trusted; see each result |
CHECKSUM_MISMATCH | 1 | … does not match checksums.txt of its release; nothing was changed | run it again, and report it at …/issues if it happens again |
CHMOD_FAILED | 5 | cannot set mode … on …: …; the file was not changed | this SFTP server does not allow setting file modes, and its new files are more open than asked for; if the server has a shell and sudo, retry with --sudo |
CODE_WRONG | 2 | that code does not match; nothing was changed | check the phone's clock and run it again |
COMMAND_FAILED | 5 | exit code … | read the error output (stderr) for the reason |
COMMAND_NOT_FOUND | 3 | no command … | run komando schema --compact to see every command |
CONFIRM_REQUIRED | 6 | deleting group … takes … entries out of it | check with --dry-run, ask the user; once they agree, run it again with --yes (komando then asks them in a window on their screen) |
CONNECTION_LOST | 4 | the connection to … broke while reading the job's status | run it again; the job keeps running on the server |
CONNECTION_REFUSED | 4 | the server refused the connection: nothing listens on that port | check that sshd runs on the server and listens on this port: komando host show … |
CONNECT_TIMEOUT | 7 | connecting to … timed out | a firewall drops the connection, or the server is private: check the address with komando host show …, reach it through a bastion or VPN (komando host edit … --via NAME), or raise --connect-timeout on a slow link |
CONN_EXISTS | 8 | … … already exists | use komando … edit or pass --overwrite to replace it |
CONN_UNREACHABLE | 4 | cannot reach …: … | check the name and port; if the site is only reachable from a server or VPN, run it again with --via: komando cert check … --via NAME |
CONSUMER_GROUP_NOT_FOUND | 3 | no consumer group named … | list consumer groups with komando queue groups CONN |
CONSUMER_NOT_FOUND | 3 | no consumer named … | list consumers with komando queue groups CONN; name one as STREAM/CONSUMER |
CRONTAB_UNREADABLE | 5 | cannot read the crontab (exit …) | check the user name; reading another user's crontab needs sudo |
DB_AUTH | 4 | bigquery: the stored key is not a service account key: … | the --password-ref of a bigquery conn holds a service account key (the JSON file from the console), or leave it out to use gcloud's login |
DB_BYTES_LIMIT | 6 | the query would read …, more than --max-bytes …, so it did not run | BigQuery bills by the bytes a query reads: select fewer columns, filter on the partition or cluster columns, or, if that cost is intended (ask the user), raise --max-bytes |
DB_CONNECT | 4 | cannot open …: … | check the file path in the conn URL (komando conn show NAME) |
DB_ERROR | 5 | … (SQLSTATE …) | fix the SQL; komando db schema CONN TABLE shows columns and types |
DB_NOT_FOUND | 3 | … failed on … (exit …): … | check the database name at the end of the conn URL (komando conn show …) |
DB_PRIVILEGE | 5 | … (error …) | the conn's user lacks this right; ask an admin to grant it, or use a conn with an admin user |
DB_USER_EXISTS | 8 | user … already exists | change its password with komando db user passwd CONN … --password-ref secret:NAME |
DB_USER_IN_USE | 8 | the database user owns objects or has sessions, so it is not removed | end its sessions first: find them with komando db activity CONN --all, then komando db kill CONN PID --session |
DB_USER_NOT_FOUND | 3 | no database user named … | list users with komando db user list CONN |
DECLINED | 6 | not run: the person said no; nothing was changed | run it again to be asked again |
DELETE_FAILED | 1 | cannot delete …: … | check the file's permissions |
DELIVERY_LIMIT_NEAR | 8 | subscription … moves a message to its dead-letter topic after … deliveries, and peek would count as one | do not peek this subscription: every delivery counts, and a message delivered too often goes to the dead-letter topic. Peek a subscription of the dead-letter topic instead, or raise maxDeliveryAttempts |
DEPLOY_FAILED | 5 | key deploy could not add the key to the server's authorized_keys (the server's words follow) | check that ~/.ssh is writable there: komando fs stat SERVER ~/.ssh |
DIG_MISSING | 3 | … records need dig, which is not installed on this server, and komando could not ask the server's resolver itself (no nameserver in /etc/resolv.conf, or the se… | install dig (Debian/Ubuntu: dnsutils, Alpine: bind-tools, RHEL: bind-utils), for example komando pkg install TARGET dnsutils; A and AAAA work without it |
DNS_ERROR | 4 | the server's name does not resolve on this computer | the name does not resolve here: check it with komando host show … and fix it with komando host edit … --address ADDRESS; a name only a VPN resolves needs --via that VPN |
DOCKER_ERROR | 5 | docker on the server answered with an error | check that Docker runs there: komando exec TARGET --read-only -- docker info |
DOCKER_MISSING | 3 | docker not found | install Docker on the server, or pick another server |
DOCKER_OBJECT_NOT_FOUND | 3 | list what exists with komando docker ps TARGET --all or komando cluster list TARGET services | |
DOCKER_PERMISSION | 5 | the login user may not use docker on the server (add --sudo, or the docker group) | add --sudo, or add the login user to the docker group |
DOCTOR_FAILED | 1 | some checks failed | fix the checks marked ✗ (ok: false in -o json), then run komando doctor again |
DRY_RUN_UNSUPPORTED | 2 | this change cannot be previewed; run it without --dry-run to make it | run it again without --dry-run to make the change |
DUMP_FAILED | 5 | the backup stopped before the end; no partial file is left | check the conn with komando test …; with --run-on HOST, pg_dump or mysqldump on that server runs instead |
DUMP_UNSUPPORTED | 2 | komando's own dump cannot write an object (the message names it) | run pg_dump on a server that has it and can reach the database (--run-on HOST), or dump the other tables with --table |
EMPTY_FOLDER_CONFIRM_REQUIRED | 6 | … lists no files in …, so --delete would remove … there in …; nothing was deleted | see what would go with komando sync SRC DST --delete --dry-run, ask the user; once they agree, run it again with --allow-dangerous (komando then asks them in a window on their screen) |
ENCODED_SECRET_INVALID | 2 | the script or command holds a private key; komando does not send one this way | put the key in the vault and pass it with secret run: komando secret set NAME < key, then komando secret run --env KEY=secret:NAME -- …; to search for keys, quote only 'PRIVATE KEY-----', not the whole BEGIN line |
ERROR | 1 | an error with no more specific code (read the message) | read the message; komando doctor checks this computer's setup |
FILE_CHANGED | 8 | … …; nothing was added | run the same command again (komando cp SRC DST --continue): komando reads the file's length again |
FILE_ERROR | 1 | a file on this computer cannot be read or written | check that the folder exists and is writable |
FILE_EXISTS | 8 | … already exists on this computer | choose another --to, remove the file, or pass --overwrite |
FILE_NOT_FOUND | 3 | identity file …: … | give the path of a private key file, or register it with komando key add NAME FILE and use --key |
FILE_TOO_LARGE | 8 | …:… is more than …; komando holds a copy from a pod in memory, and stopped | copy a smaller part, or pack it smaller in the pod first: komando cluster run TARGET --write -- exec POD -- gzip PATH |
FOLDER_NOT_FOUND | 3 | no folder named … | add -p/--parents to create it |
GCP_LOGIN_REQUIRED | 4 | …: … | a person runs gcloud auth application-default login again, or set GOOGLE_APPLICATION_CREDENTIALS to a service account key file; on Google Cloud the machine's service account is used |
GROUP_EXISTS | 8 | group … exists | pick another name; to merge them, run komando group add … @… and then komando group rm … |
GROUP_NOT_FOUND | 3 | no group named … | run komando group list to see groups |
HELM_RELEASE_NOT_FOUND | 3 | no Helm release named … in namespace … | see the releases with komando cluster helm list TARGET -A, and name the namespace with --namespace |
HELM_REVISION_NOT_FOUND | 3 | … has no revision … | see the revisions with komando cluster helm history TARGET RELEASE |
HIDDEN_VALUE | 2 | stdin holds a value komando hid ([hidden] or [secret:NAME]); uploading it would destroy the real value | edit the file on the server with komando fs replace (an --old with [hidden] in it matches the hidden value), and put a secret in with {{secret:NAME}} |
HOSTKEY_MISMATCH | 4 | host key for … changed: the server was rebuilt, or someone is intercepting the connection | possible man-in-the-middle: report this to the user and do not re-trust the key yourself; once they have checked the new fingerprint another way, they can run komando host trust … --reset |
HOSTKEY_REVOKED | 4 | … shows the revoked host key …; nothing was sent | this key is on komando's list of revoked host keys: treat the server as compromised, tell its owner, and do not re-trust it with komando host trust |
HOSTKEY_UNKNOWN | 4 | host key for … is not trusted yet (host keys are strict) | compare the fingerprint with what the server's owner sees, then run komando host trust … (an AI agent asks the user: its pin needs their yes) |
HOSTKEY_UNREADABLE | 4 | the pinned host key for … cannot be read | a person checks the server's key and runs komando host trust for it in their own terminal |
HOST_EXISTS | 8 | … … already exists | use komando … edit or pass --overwrite to replace it |
HOST_IN_USE | 8 | server … is on the --via path of … | change them first: … (or --via OTHER), or remove them in the same command |
IMAGE_TAG_NOT_FOUND | 3 | … not found; the repository has no tags | list the repositories with komando registry list CONN |
IMPORT_INCOMPLETE | 1 | … not imported (see skipped) | fix them in the source and import again: the rest is in, and importing again skips it |
INSECURE_PROTOCOL | 2 | …:// crosses the network to … without TLS, so the password and the data travel unencrypted | use the URL's TLS form if the server has TLS (rediss://, memcacheds://, amqps://, nats tls://, kafka tls=true, an https:// endpoint, ftps://, webdavs://), or reach it --via an SSH server (--via HOST); otherwise add ?insecure=1 to accept that the login and the data travel unencrypted |
IS_A_DIRECTORY | 2 | …:… is a folder, not a file | copy the folder and everything in it with -r: komando cp -r … … |
IS_A_SYMLINK | 8 | … is a symbolic link (--no-follow) | drop --no-follow to write the file it points to |
JOB_FAILED | 5 | job exited with … | read its output with komando job logs … --limit 50 |
JOB_KILLED | 5 | job … was killed (…) | it was stopped with komando job kill |
JOB_LOST | 5 | job … lost | it stopped without an exit code (killed, or the server restarted): komando job logs … --limit 50 shows how far it got; start it again with komando job start … -- … if needed |
JOB_NOT_FOUND | 3 | no job named … | see them with komando job list |
JOB_RUNNING | 8 | job … is still running | stop it first with komando job kill …, or pass --kill to stop and remove it |
JOB_START_FAILED | 5 | could not start job: … | check that /bin/sh and nohup work there: komando test TARGET |
JOURNAL_PERMISSION | 5 | this user may not read the system journal | add --sudo, or add the login user to the systemd-journal group |
K8S_CONFLICT | 8 | the object changed or exists already (the cluster's words follow) | the object changed meanwhile or exists already: look at it with komando cluster get TARGET TYPE/NAME, then run it again |
K8S_CONTAINER_NOT_FOUND | 3 | no container named … | its containers: … |
K8S_ERROR | 5 | the Kubernetes API answered with an error (its words follow) | read the cluster's words; komando cluster events TARGET --warnings shows what went wrong lately |
K8S_FORBIDDEN | 4 | listing Helm releases: … | Helm keeps releases as Secrets: the kubeconfig's user needs to list secrets there (or name one namespace with --namespace) |
K8S_INVALID | 2 | the cluster refused the request as written (its words follow) | the cluster refused it as written: check the label selector (-l) or the object's YAML |
K8S_NOT_FOUND | 3 | list what exists with komando cluster list TARGET pods (or deployments, services ...) | |
K8S_POD_NOT_FOUND | 3 | … has no running pod | check them with komando cluster list TARGET pods |
KEYCHAIN_FAILED | 5 | …; the vault still uses store.key, nothing was lost | a person unlocks the keychain (an AI agent asks the user), then run it again; on Linux it needs secret-tool and a keyring |
KEYCHAIN_SLOW | 1 | nothing was changed: the keychain did not answer in time, so komando could not check that … is the newest copy | run it again in a moment; if it keeps happening, run komando doctor |
KEYCHAIN_TAKEN | 8 | …; the vault still uses store.key, nothing was lost | put back the vault you moved aside, or once no vault needs that key, a person deletes the keychain item (an AI agent asks the user), then run it again |
KEYSCAN_FAILED | 4 | cannot fetch host key from …: … | check the address and port with komando host show … |
KEY_EXISTS | 8 | key … already exists | choose another name, or komando key rm … first |
KEY_FAILED | 1 | could not read key …: …; nothing was written | check the key with komando key show …, or leave out --with-keys |
KEY_INVALID | 2 | … is not a public key: … | give the CA's public key file (.pub) |
KEY_IN_USE | 8 | server … still uses this key | give the server another key first: komando host edit … --key OTHER |
KEY_PASSPHRASE_REQUIRED | 2 | key … is encrypted and … | load the key into ssh-agent with ssh-add PATH, or store its passphrase with komando secret set NAME (the hint gives the whole commands) |
KEY_UNREADABLE | 4 | cannot read key …: … | check the key path (komando key list shows the keys komando knows) |
KILL_FAILED | 5 | the server did not stop session … | you may lack the right to stop another user's session |
KUBECONFIG | 2 | conn …: … | import it again with komando import kubeconfig |
LOGIN_FAILED | 4 | the login to … ended early (…) | a person reads the whole log in … |
MIXED_OS | 2 | the target picks Windows servers (…) and other servers (…) | a command is written for one shell: run it twice, once with TARGET,os:windows (PowerShell) and once with TARGET,!os:windows (sh) |
MOVE_FAILED | 5 | the copy on the server (…) ended badly: …; … was kept | run it again: komando storage mv CONN … … |
NAME_TAKEN | 8 | the rename clashes: …; nothing was renamed | pick other names, or rename or remove what is in the way first |
NEEDS_PERSON | 6 | logging in to … needs a person at a terminal to answer its questions | ask a person to run komando login … in a terminal; after that your commands to … need no login |
NEEDS_TERMINAL | 2 | cluster shell needs a person at a terminal | agents and scripts use komando cluster exec |
NOTHING_TO_RENAME | 3 | no … starts with … | check OLD with komando list and komando secret list; names are matched from the start, as written |
NOT_A_FOLDER | 8 | … is a file, not a folder | give a folder path, not a file |
NOT_SUPPORTED | 2 | … waits for data that keeps coming, so cache run would never return | cache run sends one command and prints its one reply; drop BLOCK from XREAD, and use redis-cli for MONITOR or SUBSCRIBE |
NOT_SWARM_MANAGER | 3 | … is not a Swarm manager (docker not found) | Swarm commands run on a manager: komando exec … --read-only -- docker node ls shows whether it is one |
NOT_TEXT | 2 | … is not text | download it with komando storage download CONN OBJECT |
NOT_WRITABLE | 8 | cannot replace …: …: …; nothing was changed | make … writable, or install komando in another folder with the install line (KOMANDO_INSTALL_DIR=DIR) |
NO_AUTH | 4 | no authentication method available for …: it has no key or password, and … | start ssh-agent, then run … |
NO_CERTIFICATE | 5 | … sent no certificate | check that … is the TLS port of the site |
NO_FOLDER | 1 | cannot find the folder: … | set HOME, or run it from the project folder |
NO_JOURNAL | 3 | journald has no log files on this server | the service may log to a file: komando logs TARGET --file /var/log/... |
NO_MATCH | 8 | --old text not found in … | read the file with komando fs cat TARGET … and copy the exact text (whitespace matters) |
NO_MATCHING_TARGETS | 3 | nothing to check | give a server, a TLS conn or a website (https://NAME): komando cert check URL |
NO_PACKAGE_MANAGER | 3 | no supported package manager on this server | komando knows apt, dnf, yum, apk, zypper and pacman |
NO_PASSPHRASE | 2 | the vault has no passphrase to take away | the vault keeps its key in store.key or the OS keychain already; the hint says which |
NO_PUBLIC_KEY | 2 | komando does not have the public key of … | place ….pub next to the key, then komando key rm … and add it again |
NO_RECORDS | 3 | … has no … records (or does not exist) from this server | check the name and type, and the server's DNS (/etc/resolv.conf) |
NO_RESPONSE | 4 | no HTTP answer from … | check the URL, and that the server can reach it: komando net check … ADDRESS:443 |
NO_SYSTEMD | 3 | systemd is not running on this server | this server runs without systemd (a container?); read logs with komando logs TARGET --file PATH or komando docker logs |
NO_TUNNEL_NEEDED | 2 | … has no --via, so it is reachable without a tunnel | connect to … directly |
NO_USER_MANAGER | 3 | the login user has no systemd user manager running on this server | the login user's systemd manager runs only while they are logged in, unless lingering is on: a person with sudo runs loginctl enable-linger USER on the server, then try komando svc list TARGET --user-units |
NXDOMAIN | 3 | … does not resolve from this server | check the name, and the server's DNS (/etc/resolv.conf) |
OBJECT_NOT_FOUND | 3 | … not found | list files with komando storage list CONN [PREFIX] |
OPEN_BIND | 6 | the tunnel would listen on … of …, open to its network (the default 127.0.0.1 keeps it to that computer) | check with --dry-run, ask the user; once they agree, run it again with --yes (komando then asks them in a window on their screen) |
OPTION_LIKE_VAR | 2 | the value of … may not start with '-' (… would be read as an option) | for a path that starts with -, write ./… |
OUTPUT_TRUNCATED | 1 | the rows are more than the output size cap (--max-output) allows; nothing was printed | raise --max-output (bytes, for example --max-output 104857600), or narrow the SQL with WHERE or LIMIT; a whole database copies with komando db dump |
OVPN_UNSUPPORTED | 2 | the OpenVPN profile has an option komando's own client does not support (the message names it) | change the profile, or report the option you need at …/issues |
PACKAGE_NOT_FOUND | 3 | …: no such package in the server's package index | check the name; refresh the index with komando pkg update TARGET if the package is new |
PARTIAL_FAILURE | 1 | some targets failed and some worked (see each result) | read each target's error and hint (data.results in -o json) |
PARTIAL_TRANSFER | 5 | … could not be copied; the other files were copied | fix the listed ones (permissions?) and run it again |
PARTITION_NOT_FOUND | 3 | topic … has no partition … (it has …) | partitions are numbered from 0; see them with komando queue describe CONN … |
PASSPHRASE_MISMATCH | 2 | the two passphrases you typed differ; nothing was changed | run it again |
PATH_NOT_FOUND | 3 | … does not exist; nothing was changed | check the source path |
PERMISSION_DENIED | 5 | cannot read … | add --sudo |
PHONE_KEY_INVALID | 2 | the key does not match the key check the phone shows; nothing was written | check that the key file came from the phone, then run komando export --for-phone --to FILE again and type the key check it shows |
PKG_FAILED | 5 | pkg … failed (exit …) | read the error output (stderr) for the package manager's message |
POLICY_BLOCKED | 6 | the command matches destructive rules [rm-rf]: deletes files recursively | check with --dry-run, ask the user; once they agree, run it again with --allow-dangerous (komando then asks them in a window on their screen) |
POLICY_MAC_FAILED | 1 | …: …, so komando does not run (the safety rows no longer match their policy MAC) | something other than komando changed a protection, rule, setting or pinned host key; a person finds out what, then restores the komando folder from a backup made before it (komando doctor then says whether that copy is older than the keychain remembers) |
PORT_CLOSED | 5 | cannot connect to … | check the address, firewall or service on the other side |
PORT_IN_USE | 8 | cannot listen on 127.0.0.1:…: … | pick another LOCAL port (komando tunnel list shows the ones komando holds) |
POWERSHELL_FAILED | 5 | the login check in PowerShell failed on … (exit …): … | komando runs every command on Windows in Windows PowerShell (powershell.exe): check that it is on the PATH of the login user, and read the message |
PROTECTED_TARGET | 6 | a change action on protected conn …: … | check with --dry-run, ask the user; once they agree, run it again with --yes (komando then asks them in a window on their screen) |
PROXY_FAILED | 4 | proxy command for …: … | check the program in --proxy-command is installed |
PROXY_NOT_FIRST | 2 | … has a proxy command but is reached through another hop | a proxy command can only start a path; put that server first in --via |
QUEUE_AUTH | 4 | the brokers refused the login: … | check the user in the URL, the sasl= option and the password reference (komando conn show NAME) |
QUEUE_CONNECT | 4 | cannot connect to …: … | run komando test TARGET to check reachability, or reach the server --via an SSH server that can |
QUEUE_DENIED | 5 | the server refused the vhost …: … | check the vhost in the URL's path (%2F is the default vhost "/") and that the user has permissions on it |
QUEUE_ERROR | 5 | …: could not give back the messages peek pulled: …; nothing is lost | Pub/Sub gives the messages out again once the subscription's ack deadline has passed |
QUEUE_EXISTS | 8 | queue … already exists | pick another name, or see it with komando queue describe CONN … |
QUEUE_NOT_FOUND | 3 | no queue named … | list queues with komando queue list CONN (it needs ?management=PORT in the conn's URL); the vhost is the URL's path |
READ_FAILED | 5 | cannot read …: … | run it again; the output was cut (raise --max-output?) |
READ_ONLY_VIOLATION | 6 | --read-only, but the command is not known to only read (…) | --read-only runs only what komando knows only reads: for a server's state use komando facts, logs, svc status or fs read; otherwise tell the user what the command does, then run it without --read-only (a protected server also needs --yes) |
REBOOT_FAILED | 5 | the reboot command failed (exit …): … | read the error output (stderr); without sudo rights a reboot is refused |
REBOOT_TIMEOUT | 7 | … did not come back within … | check the server's console; komando did not reboot the servers after it |
RECIPE_BUILTIN | 8 | … is a built-in recipe | pick another name; see komando recipe list |
RECIPE_CHANGED | 8 | recipe … changed while komando was starting | run it again |
RECIPE_EXISTS | 8 | recipe … exists | see it with komando recipe show NAME, or pass --overwrite to replace it |
RECIPE_NOT_FOUND | 3 | no recipe named … | see them with komando recipe list |
REGISTRY_AUTH | 4 | the registry refused to list its repositories: … | the login may read images but not list every repository: name one with komando registry list CONN REPO; else check the user in the conn URL and its --password-ref |
REGISTRY_ERROR | 5 | the registry did not say the image's digest | run it again; if it keeps failing, the registry may not support this image format |
REGISTRY_RATE_LIMIT | 5 | the registry turned the request down: too many requests (Docker Hub's pull limit) | the registry limits how many requests it takes (Docker Hub: pulls per 6 hours, fewer without a login); wait and run it again |
REGISTRY_TLS | 4 | the registry's TLS certificate is for another name: … | use the host name the certificate is for in the conn URL; with --via the server on the path looks the name up (its /etc/hosts applies) |
REGISTRY_UNSUPPORTED | 5 | … has no list of every repository | name the repository: komando registry list CONN REPO (on Docker Hub, nginx means library/nginx) |
RELEASE_SIGNATURE_INVALID | 2 | komando … is not signed with the komando project's key; nothing was changed | do not install it another way, someone may have replaced the release's files: report it privately at …/security, and check again later with komando update --dry-run |
RELEASE_SIGNATURE_NOT_FOUND | 3 | komando … has no signature, so komando cannot tell it comes from the komando project; nothing was changed | releases up to … have no signature: to go back to one anyway, use the install line with KOMANDO_VERSION=… (…#install); to stay on a signed release, run komando update |
REMOTE_ERROR | 1 | an error from outside komando with no more specific code (its words follow) | run it again with -o json for the details; komando doctor checks this computer's setup |
REMOTE_WRITE_FAILED | 5 | cannot write …: …; the file was not changed | check that the user may write to the folder and the disk has free space: komando fs stat SERVER PATH |
RENAME_FAILED | 1 | the vault cannot rename the VPN's secrets: …; nothing was renamed | check that the vault opens (komando secret list, KOMANDO_VAULT_PASS) |
REPOSITORY_NOT_FOUND | 3 | no repository named … | list the repositories with komando registry list CONN |
RESERVED_SECRET | 2 | secret … belongs to komando's approval code | a person manages it with komando config approval-code |
RESTORE_FAILED | 5 | the restore stopped at a line: PostgreSQL changed nothing (one transaction), MySQL kept the statements before it | fix the file, then restore it again: komando db restore … --from … |
RESTORE_SPACE_MISSING | 3 | not enough free space for the restore's copy; nothing was sent to the database | free … bytes in … (komando checks a private copy of the backup there before the database is touched), then restore again: komando db restore CONN --from … |
RESTORE_UNSUPPORTED | 2 | line … switches to another database: … | the file switches databases (pg_dump --create or pg_dumpall); dump the one database without --create and restore that into this conn |
RESUME_CONFLICT | 8 | … does not match the source after the copy (sha256 …, the source …); it was left as it is | copy the whole file again without --continue (a download replaces a file here only with --overwrite): komando cp SRC DST |
RESUME_UNSUPPORTED | 2 | … cannot be continued: this kind of storage (S3, Google Cloud Storage, Azure Blob, WebDAV) stores a file whole and cannot add to one; nothing was changed | run it again without --continue to copy the whole file: komando cp SRC DST |
REVEAL_NEEDS_PERSON | 6 | --reveal needs the user's yes | values stay [hidden] in a dry run; run it without --dry-run to ask the user in a window on their screen |
REVEAL_NEEDS_TERMINAL | 6 | --reveal only works for a person at a terminal | ask a person to run komando secret show … --reveal in a terminal; to use the secret in a command, reference it (secret:…) instead |
REVISION_NOT_FOUND | 3 | no earlier revision to go back to | see the revisions with komando cluster history TARGET TYPE/NAME |
REVOKE_FAILED | 5 | the key could not be removed from a server's authorized_keys | run it again; to look at the file: komando fs cat SERVER ~/.ssh/authorized_keys |
ROLLOUT_FAILED | 5 | pods stuck for … | see why with komando cluster describe TARGET …; komando cluster rollback goes back |
ROLLOUT_TIMEOUT | 7 | not rolled out after … (replicas …)… | see the tasks with komando cluster describe … service/… |
RULE_NOT_FOUND | 3 | no custom deny rule named … | see the custom rules and their ids with komando policy list |
SAFETY_SETTING | 6 | … weakens komando's safety checks | check with --dry-run, ask the user; once they agree, run it again with --yes (komando then asks them in a window on their screen) |
SEALED_FILE_INVALID | 2 | … is damaged or cut short: komando cannot read it as a sealed file; nothing was imported | copy the file again whole, or make it again with komando export --sealed --to FILE |
SEALED_FILE_UNSUPPORTED | 2 | … is sealed for the iPhone app: only the phone whose key it was sealed to opens it; nothing was imported | on the old computer, make a file for this one with komando export --sealed --to FILE |
SECRET_DESTINATION | 6 | an AI agent asked to send …; that needs a person's yes | check with --dry-run, ask the user; once they agree, run it again with --yes (komando then asks them in a window on their screen) |
SECRET_EXISTS | 8 | secret … is used by … already; --ask-password and --ask-psk do not replace it | use it with --… …, or store this one under another name: komando secret set NAME, then --… secret:NAME |
SECRET_IN_ARGS | 2 | refusing a secret value on the command line: it would be saved in shell history | run komando secret set … and type it (hidden), use --from-env VAR, or pipe it in (stdin) |
SECRET_IN_USE | 8 | secret … is used by … | point them at another secret first, for example …, or rename it with komando secret rename |
SECRET_MISMATCH | 1 | the value is not the one stored in … | if the stored one is wrong, store the right one with komando secret set … |
SECRET_NOT_FOUND | 3 | no secret named … | see them with komando secret list |
SECRET_UNRESOLVED | 3 | registry CA …: … | store the CA certificate with komando secret set NAME < ca.crt |
SECURITY_UNSUPPORTED | 3 | no package manager komando knows on … | komando knows apt, dnf, yum, zypper, apk and pacman; see what the server has with komando facts TARGET |
SELF_NOT_FOUND | 1 | cannot find the komando program that is running: … | run komando by its full path, for example /usr/local/bin/komando update |
SENSITIVE_FILE | 6 | … is …, not … | use a database of your own; komando's data is read only through komando's commands (komando list, komando secret list) |
SESSION_NOT_FOUND | 3 | no session … | list sessions with komando db activity CONN --all |
SFTP_UNAVAILABLE | 4 | sftp: … | enable the sftp subsystem in sshd_config |
SHARED_FOLDER_CONFLICT | 8 | … can be changed by …, not only by root and the SSH user: as root, komando does not write … there (that user could swap it for a link while root writes) | write it as … instead, for example komando exec TARGET --sudo-user … --stdin-file FILE -- sh -c 'cat > "$0"' … |
SHELL_IDLE_TIMEOUT | 7 | the shell on … ended after … with no input and no output | connect again (ssh -t HOST komando shell …); run long work as a job: komando job start … -- COMMAND |
SIZE_CONFLICT | 8 | --size said … bytes, and stdin sent …; nothing was put into place | send the whole file again: komando upload TARGET - DEST --size N |
SKIPPED | 1 | skipped: another server failed first, and --fail-fast is on | run without --fail-fast to reach every server |
SOURCE_BUILD | 8 | this komando was built from source (version …), so update does not replace it | build it again (git pull, then make build), or install a release with the install line: https://github.com/sgnd/komando#install |
SOURCE_EMPTY | 3 | … has no files to sync, so --delete would remove everything in …; nothing was deleted | check the source path |
SQL_HIDDEN_CODE | 2 | -- is followed by a non-ASCII byte | put a space after -- to start a comment: whether this one starts a comment depends on the server's character set |
SQL_SAFE_SETTINGS_REQUIRED | 6 | this user's queries are read as …, not ClickHouse SQL | komando checks ClickHouse SQL; use a user whose settings profile keeps dialect = 'clickhouse' (komando conn edit NAME --url URL) |
SQL_STRING_RULES | 2 | changing … is not allowed in komando db | leave this setting alone: komando checks SQL with the server's default string rules |
SQL_TX_CHECK_REQUIRED | 6 | statement … (…) ended komando's transaction, so komando stopped (…) | leave transactions to komando, and tell the user: what ran before this point may have been committed; look at the data with komando db query CONN -- SELECT ... |
SQL_TX_CONTROL | 2 | … is not allowed in komando db | leave transactions to komando: without --write it runs a read-only transaction, with --write one transaction that --dry-run rolls back |
SSH_AGENT_NEEDED | 2 | a key komando made is sealed in its store and never written to a file, so OpenSSH gets it from a running ssh-agent, and none was found (SSH_AUTH_SOCK) | start one with eval "$(ssh-agent)" and run this again, or use komando shell SERVER, which logs in with the key itself |
SSH_AGENT_REFUSED | 1 | the ssh-agent did not take key …: … | check the ssh-agent, or use komando shell SERVER |
SSH_GATE_NETWORK_REQUIRED | 6 | komando … is refused for a read key without network: … | this key was added with --read-only and without --network: it runs only reads that stay on the servers and conns in your list; a person adds a key for this with komando ssh-gate line --read-only --network, or runs it on the komando computer |
SSH_GATE_PATH | 1 | komando cannot tell its own full path, which the line needs | run komando by its full path, for example /usr/local/bin/komando ssh-gate line ... |
SSH_GATE_READ_ONLY | 6 | komando … is refused for a read-only key: … | this key was added with --read-only and runs only commands that read; use a key that may change things, or the komando computer itself |
SSH_GATE_REFUSED | 6 | komando … needs a person at a terminal on this computer; a key cannot run it | a person runs it in a terminal on the komando computer itself |
SSH_GATE_SYNTAX | 2 | an ssh-gate key sent more than one komando command, or a character a shell would expand (the message names it) | send one komando command; put an argument with ; | & $ or backquotes in single quotes ($ and backquotes are refused even in double quotes) |
SSH_KEY_NOT_FOUND | 3 | no SSH key named … | see them with komando key list |
SSM_FAILED | 4 | AWS Session Manager could not open a session to the instance | check the instance ID, its SSM agent and your AWS login (komando login aws) |
STATE_CORRUPT | 1 | nothing was changed: … | the key does not open every record: restore the komando folder from a backup; if komando then calls it an older copy, run komando doctor --accept-old-copy |
STORAGE_AUTH | 4 | an azblob conn needs the storage account's key or a SAS token | store the account key or a SAS token with komando secret set NAME and pass --password-ref secret:NAME |
STORAGE_CONNECT | 4 | komando could not reach the bucket or file server | run komando test TARGET to check reachability |
STORAGE_ERROR | 5 | the file is in use | another program has the file open; close it there and run it again |
STORAGE_TLS | 4 | the storage server's TLS certificate does not verify: … | if the server uses a self-signed certificate you trust, add ?tls=skip-verify to the conn URL |
STORAGE_UNSUPPORTED | 2 | … is … storage, which has no file modes | chmod works on SFTP conns; komando list kind:storage lists yours |
STORE_BUSY | 8 | komando's store stayed busy for …, so the server's host key could not be checked: … | another komando process is writing komando's store, or one is stuck (komando status lists what runs): wait for it to finish, then run it again |
STORE_CONFLICT | 8 | nothing was done: … was replaced, given a new key or checked again while this command ran, and this command still held it as it was | run the command again: komando opens the store again from the start; if it keeps happening, run komando doctor |
STORE_KEY_CHANGED | 1 | …: … | run it again: another komando changed the store's key while this one ran |
STORE_NEWER | 1 | … was made by a newer komando | a newer komando made or changed this store; update this one: komando update |
STORE_OLD_COPY | 6 | … …: servers, rules, secrets or pinned host keys may be old | if the komando folder was restored from a backup on purpose, a person runs komando doctor --accept-old-copy in their own terminal; otherwise find out who put an old copy back or changed the keychain |
STREAM_EXISTS | 8 | stream … already exists | pick another name, or see it with komando queue describe CONN … |
STREAM_NOT_FOUND | 3 | no stream named … | list streams with komando queue list CONN |
SUBSCRIPTION_EXISTS | 8 | subscription … already exists | pick another name, or see it with komando queue describe CONN subscriptions/… |
SUBSCRIPTION_NOT_FOUND | 3 | no subscription named … | list subscriptions with komando queue groups CONN; komando queue describe CONN TOPIC shows a topic's own |
SVC_FAILED | 5 | systemctl daemon-reload failed (…) | read the error output (stderr) for systemd's reason; a unit file with a mistake is named there |
SWARM_ERROR | 5 | Docker Swarm answered with an error | check that Docker runs there: komando exec TARGET --read-only -- docker info |
SWARM_OBJECT_NOT_FOUND | 3 | no … named … | list what exists with komando cluster list TARGET …s |
SWARM_SERVICE_NOT_FOUND | 3 | no service named … | list services with komando cluster list TARGET services |
SWARM_STACK_NOT_FOUND | 3 | no stack named … | list the stacks with komando cluster list … stacks |
SYMLINK_LOOP | 8 | …: too many levels of symbolic links | a link points back to itself; look at it with komando fs stat SERVER PATH |
TABLE_NOT_FOUND | 3 | no table named … | run komando db schema CONN to list tables |
TARGET_EMPTY | 3 | target … matched nothing | run komando list to see servers, conns, groups and tags |
TARGET_NOT_FOUND | 3 | no VPN named … | see them with komando vpn list |
TIMEOUT | 7 | redis did not answer in time | raise --timeout |
TLS_HANDSHAKE_FAILED | 4 | TLS handshake with … failed: … | the server ended the TLS handshake; run it again, and check that … is the TLS port (not plain HTTP) |
TOOL_FAILED | 5 | kubectl exited … | read the error output (stderr) for the reason; komando cluster events TARGET --warnings shows the cluster's recent problems |
TOOL_MISSING | 3 | … is not a program on this computer: … | check the name, or give the program's path |
TOOL_TOO_OLD | 5 | … failed on … (exit …): … | pg_dump … is older than the server (…): install postgresql-client-… where the tool runs, or name a server that has it with --run-on HOST |
TOO_MANY | 8 | … objects match, more than --max-remove … | narrow --prefix or --older-than, or raise --max-remove above … after checking the list |
TOO_MANY_TAGS | 2 | … has more than … tags | komando prunes a repository of at most 10000 tags, and --match does not change that (every tag is read, so a kept tag protects its image): delete some first with komando registry rm CONN IMAGE |
TOPIC_EXISTS | 8 | topic … already exists | pick another name, or see it with komando queue describe CONN … |
TOPIC_NOT_FOUND | 3 | no topic named … | list topics with komando queue list CONN |
TUNNEL_FAILED | 4 | the server refused the port forwarding (AllowTcpForwarding, address) | check that the server allows forwarding (AllowTcpForwarding in sshd_config) and that the address is right |
TUNNEL_NOT_FOUND | 3 | no tunnel named … | see them with komando tunnel list |
TUNNEL_TIMEOUT | 7 | tunnel did not become ready… | check that … answers: komando test …; a person reads the whole log in … |
UNEXPECTED_CHANGE | 8 | … changed after patching: … | check the server (komando docker ps …, komando svc list … --failed); servers after it were not patched: run it again with --keep-going to patch them anyway |
UNEXPECTED_STATUS | 5 | HTTP …, expected … | check the URL and the service behind it |
UNIT_NOT_ACTIVE | 5 | not active after …s: … | read why with komando logs TARGET --unit UNIT -n 50 |
UNIT_NOT_FOUND | 3 | no unit named … | check the name with komando svc list TARGET |
UNKNOWN_SETTING | 2 | komando has no setting named … | see the settings with komando config show: … |
UNKNOWN_VAR | 2 | recipe … has no blank named … (…) | see the recipe with komando recipe list |
UNSAFE_BACKUP | 6 | line … is a client command, not SQL: … | the file contains a client command that could run programs or read files where the restore runs; remove that line if the file is not from a trusted dump |
UNSAFE_PATH | 5 | path … leads outside …; nothing outside the folder was written | rename the file so it has no .. in its path |
UNSUPPORTED_PLATFORM | 8 | there is no komando release for … | build komando from source: https://github.com/sgnd/komando#install |
UPLOAD_NOT_RENAMED | 5 | could not rename the upload into place: …; the old file was removed | the new content is on the server as …: rename it by hand |
URL_HAS_PASSWORD | 2 | a conn URL holds no password | remove the password from the URL, store it with komando secret set NAME, then pass --password-ref secret:NAME |
USAGE | 2 | --… and --unset … contradict each other | pass one of them |
USER_NOT_FOUND | 3 | no user named … | list the accounts with komando user list TARGET --all |
VALIDATION_FAILED | 8 | --validate rejected the new file: …; the file was not changed | fix the content and run it again |
VAULT_CHANGED | 8 | …; nothing was changed | run it again |
VAULT_DECRYPT | 1 | …; nothing was lost | KOMANDO_VAULT_PASS is not the passphrase this vault was saved with: set the right one (komando doctor says which vault mode is in use) |
VAULT_KEY | 1 | password for … (…): … | restore ~/.komando/store.key from a backup, or move the key back with komando secret keychain on the computer whose keychain holds it; komando doctor checks the vault |
VAULT_LOCKED | 1 | password for … (…): … | the person who set the passphrase exports KOMANDO_VAULT_PASS in the shell that runs komando (an AI agent asks the user; it never sees the passphrase) |
VERSION_NOT_FOUND | 3 | komando … has no download for … | pick another version from …/releases |
VIA_CYCLE | 2 | server … is in its own --via path | --via names the servers (or VPN) in front of this one, not the server itself |
VIA_NOT_FOUND | 3 | no server or VPN named … | --via takes server and VPN names; see them with komando list |
VIA_ORDER | 2 | …: the --via path reaches VPN … after another step | a path can use one VPN, as its first step |
VPN_CLIENT_MISSING | 3 | … VPNs need the … program, which is not installed | install the program the message names (macOS: brew install NAME; Linux: its package) |
VPN_CONFIG | 2 | …: … | check the file is a WireGuard (wg-quick) config |
VPN_DOWN | 4 | VPN … did not start: … | the message ends with its log; komando vpn test … tries again, and a person reads the whole log in … |
VPN_EXISTS | 8 | … … already exists | use komando … edit or pass --overwrite to replace it |
VPN_IN_USE | 8 | VPN … is on the --via path of … | change their --via first: komando host edit TARGET --via OTHER |
VPN_KEY_IN_USE | 8 | VPN …: its WireGuard key is in use by komando process … (VPN …, komando home …) | one WireGuard key runs in one session at a time: stop the other with …, or give this VPN a key of its own with komando vpn add … wireguard --config FILE |
VPN_LOGIN_REQUIRED | 4 | VPN … is not connected and needs a person to log in | ask a person to run komando vpn up … (it needs their login); then run it again |
VPN_NOT_FOR_OPENSSH | 2 | VPN … (…) runs inside komando; OpenSSH cannot use it | use komando shell SERVER (it opens the VPN itself), or connect the VPN on this computer and leave it out of --via |
VPN_STOP_FAILED | 1 | could not disconnect …: … | run komando vpn down … again; if it still fails, end process … yourself |
WAIT_TIMEOUT | 7 | job … still running after … | it is still running: komando job wait … waits again, komando job logs … --limit 50 shows its output so far |
WEAK_PASSPHRASE | 2 | …; nothing was changed | run it again with another passphrase |
WINRM_ERROR | 5 | …: … | read the message; winrm quickconfig on the server sets WinRM up, and the user needs the right to use it (an administrator, or the Remote Management Users group) |
WINRM_INSECURE | 2 | Basic login over plain HTTP sends the password unencrypted | use HTTPS (leave tls=off out), or NTLM (leave auth=basic out), which never sends the password |
WINRM_NOT_HTTPS | 4 | …: … | the server speaks plain HTTP there: use port 5986 for HTTPS, or ?tls=off if it truly has no HTTPS (commands then travel unencrypted) |
WINRM_TLS | 4 | …: the WinRM server's certificate cannot be trusted: … | if the server's certificate comes from your own CA, store it with komando secret set NAME < ca.crt and add ?ca=secret:NAME to its winrm:// address (komando host edit … --address winrm://...) |
WRITE_FAILED | 1 | …; nothing was changed | check that you may write to … |
WRITE_REQUIRES_FLAG | 6 | … needs --write | this command may change data (or is not known to be a read); run it again with --write |
WRONG_KIND | 2 | … is a … URL, not one for komando … add | add it with komando … add (or komando conn add) |
WRONG_PASSPHRASE | 2 | that passphrase does not open the vault; nothing was changed | run it again and type the passphrase the vault has now |
Source: docs/features/error-codes.md in sgnd/komando at commit b622784.