Skip to content

Troubleshooting

Each entry is what you see, why, and what to do. Error bodies are { status, error, message, details? }; the error code is what to search for. See the node API reference for the full list.

You see Cause Fix
the node's id is not set / the node's public URL is not set --node-id or --public-url missing from flags, environment and file Set them; init needs both.
no data directory: --data-dir DIR (or --node NAME) run without --node and without --data-dir Pass one.
peer must be id=url A --peers entry without = --peers 1=https://n1/,2=https://n2/.
a TDX node takes its storage key from mero-kms only --storage-key or --storage-key-file without --dev Use --kms-url with --kms-identity, or add --dev on a development machine.
--dev attests with mock quotes, so it never takes a key from mero-kms --dev with --kms-url A development node never asks mero-kms: drop --kms-url and --kms-identity, or run without --dev.
no storage key: pass --kms-url with --kms-identity TDX mode with no key source As it says.
mero-kms needs both --kms-url and --kms-identity One of the two Give both.
a TDX node needs MERO_TEE_VERSION and MERO_TEE_PROFILE Not running in a mero-tee image, or the image did not set them Run in the image, or set --tee-release/--tee-profile (or --peer-profiles); for a local node use --dev.
TDX quote: … TDX mode outside a TD Use --dev outside a TD.
… exists: merod --node NAME config ... changes it A second init config to change it, init --force to replace it.
config.toml: unknown field … A typo, or a key this release does not have Remove it; keys are kebab-case and listed in Configuration.
Address already in use Another process on --listen (often a running merod local on 2501–2503) Stop it or choose another port.
the local cluster did not form within 20 s merod local nodes could not reach each other Check the ports are free; try --fresh.
You see Cause Fix
which node? --api URL, --node ALIAS, or save one No node chosen meroctl node add NAME URL, or --api.
real quote refused: this client trusts no TD image A real node, and no --tee-profiles Pass --tee-profiles PROFILE (or CALIMERO_TEE_PROFILES).
a refusal naming a mock quote A development node, without --allow-mock --allow-mock, or node add NAME URL --allow-mock.
a refusal naming the release or min version The node’s release is older than --min-release (default 2.3.109) Upgrade the node, or lower the floor knowingly.
a refusal naming a debug profile The node runs a debug image Only for debugging: --allow-debug-profiles.
a file passkey is for development clusters (--allow-mock) login against a real cluster Sign in in a browser and use an API key (--api-key).
You see Cause Fix
400 UNKNOWN_CHALLENGE (“start again on this node”) begin and finish reached different nodes, or the challenge was used Keep a ceremony on one node: session affinity on the balancer, or one node URL.
400 EXPIRED_CHALLENGE More than 5 minutes between begin and finish Start again.
401 PASSKEY_UNKNOWN_HERE The browser offered a passkey from another cluster (clusters share an rp-id), or one that was removed Sign up on this cluster, or open the app from the link for the cluster the account is on; the passkey’s name in the password manager names its cluster.
400 BAD_REGISTRATION or a refused assertion Wrong origin or relying party The page’s origin must be in --origins; --rp-id must be its domain or a parent of it.
401 UNAUTHENTICATED “token signed with an unknown key” The node has not applied the session key yet, or the token is from another cluster Retry; check you are talking to the cluster that issued it.
401 “refresh token already used; the session is revoked” A refresh token was presented twice Sign in again; find who else holds the token.
401 “the passkey this session used was removed” The device was revoked Sign in with another passkey.
403 “this needs a passkey session, not an API key” Managing credentials, approvals or upgrades with an API key Use a passkey session.
403 “this API key is scoped; installing code …” A scoped or read-only key installing or creating apps Use an unscoped key or a session.
403 “API key not scoped to this app” or “this API key is scoped; this needs …” A key scoped to other apps reading or changing this one, or a scoped key changing an organization’s settings Use a key scoped to this app, an unscoped key, or a session.
403 “a session opened on an app’s frontend can use that app only” An app-bound session doing account work Do it on the cluster’s own page (its --origins, the Cloud console on Calimero Cloud), or, for creating an organization, minting an invite or joining with one, have the app ask the consent page (createOrg, createInvite, acceptInvite).
403 “a session opened on an app’s frontend changes only that app’s own teams” An app-bound session changing a team outside its package’s app team, or the app team itself Do it on the cluster’s own page.
403 “the Ops API is disabled on this node” No --ops-token / --ops-token-sha256 Configure one and restart.
403 “operator credential required” Wrong ops token Check the token against the configured hash.
428 OPERATOR_SIGNATURE_REQUIRED (“pass –operator-key-file”) An operator decision (a node, a move, quotas, pools, prices, a restore, the backup key, a deadline) without the operator’s signature meroctl --operator-key-file operator.key ...; with another client, sign details.message and its nonce and send it again as operatorProof.
403 BAD_OPERATOR_SIGNATURE Signed with another key than the one --operator-key recorded at genesis Use the operator key the cluster was founded with; it cannot change after genesis.
403 UPGRADE_KEY_ONLY An upgrade key used for anything but its app’s upgrade Use another API key or a session.
403 SIGN_UP_REFUSED The cluster’s sign-up policy is invite or closed and no valid invite came with the sign-up Sign up with an organization or cluster sign-up invite (Sign-up policy).
403 DEPLOY_NOT_GRANTED An install where --deployments granted and the account (or its organization) holds no live deployer grant The operator (or the cluster’s owner) grants one: POST /ops/deployers.
409 CONSENT_STALE What a consent page showed changed before the person approved it The app asks again (POST /consent/requests).
403 SIGN_COUNT_REPLAYED The passkey’s signature counter did not move past the one the cluster last saw: another copy of the passkey signed since (two meroctl commands at once with one --dev-passkey file, or a file restored from an older copy) Sign again with the passkey’s current copy; run commands that share one passkey file one at a time.
403 ASSERTION_REFUSED A step-up approval (confirm) whose assertion did not verify: wrong origin, relying party or signature Sign the challenge again from an origin in --origins; the session itself is still good.
412 CONFIRM_REQUIRED The action needs a passkey assertion A browser or SDK client answers it; meroctl needs --dev-passkey on development clusters.
You see Cause Fix
503 UNAVAILABLE “no leader yet; retry” An election is under way, or a group lost its majority Retry after a few seconds; if it persists, check that a majority of the group’s replicas (or the system voters) is up.
Every node is up but the system group keeps electing (the term climbs; the leader logs timeout after 200ms when AppendEntries to a peer, and Quote parsed successfully repeats without Overall verification: PASSED) merod before this fix attested a peer inside each Raft RPC and dropped the attestation with the RPC, so on TDX (about a second per attestation) the channel never opened Run a merod with the fix; nothing on disk needs changing.
503 UNAVAILABLE “the system group did not commit this write in 10 s (leader …, voters […], learners […], behind the leader: […])” The system group has a leader but cannot commit: too few voters answer, or a voter change waits on members that do not The members listed behind the leader are the ones not answering: check they run and reach the leader on the cluster port. The write may still apply once the group commits, so look before repeating it.
503 NOT_CAUGHT_UP A stale read with minIndex the replica has not reached in 2 s Retry, lower minIndex, or read from the leader.
421 NOT_LEADER on ops move Sent to a follower Send it to details.leaderUrl; meroctl ops move does this itself.
404 NOT_FOUND “no such app” The app does not exist, or the caller does not reach it Check the id or alias, and the app’s access.
403 “read-only in this team: the call would write” A read-only team member called a method that is not a view Change their role, or call a view.
422 APP_ERROR The app’s method returned an error The app’s own logic; see message and details.
413 ARGS_TOO_LARGE A call’s or view’s arguments over the node’s argument cap, refused before it runs Send less per call; pass large content as a blob and its id.
413 TOO_LARGE A call’s log entry over 1 MiB, or a bundle over 16 MiB Write less per call; keep large content in blobs.
429 RATE_LIMITED on events The node has 4096 open streams Use another node, or close idle streams.
You see Cause Fix
warn apps whose holder set no backup key are not on the recovery disk --recovery-dir is set, but the operator or an organization has no backup key Set one: meroctl ops backup-key --public-key HEX (operator), POST /orgs/{org}/backup-key (organization).
409 FEATURE_NOT_ACTIVE on a backup key A registered node runs a release before 1.0.0-rc.20 Finish the rollout (Runbooks).
409 NO_BACKUP_DIR The node has neither --recovery-dir nor --recover-from Start it with the disk mounted and the flag set.
409 NOT_RECOVERING on ops recover The node was not started with --bootstrap --recover-from, or its system state is not empty Run it against the founder, on an empty data directory.
409 OLD_CLUSTER_ANSWERS A node of the cluster the backups came from still answers Stop it for good first: two clusters must never hold the same data.
400 BAD_RECOVERY_KEY / BAD_RECOVERY_FILE The key does not open the file, or the file is damaged Use the backup key the holder had set when the file was written; try an older file (--recovery-file).
400 UNATTESTED_RECOVERY_FILE The file’s writer’s attestation fails this node’s peer policy (--peer-profiles, --peer-min-release) Recover on nodes whose peer policy accepts the release that wrote it.
409 RECOVERY_SEGMENTS_MISSING A sealed file’s segment is missing from the disk, or altered Copy the whole holder directory, seg-* included.
409 APP_RESTORING The app waits for its restore, or one is under way Restore it (ops restore), or wait; send the same restore again if it stopped half way.
400 BAD_BACKUP, 409 BACKUP_FROM_NEWER_RELEASE, 409 BUNDLE_GONE A --backup-dir restore’s checks (Restore an app) See the runbook.
no cluster key in ... opens with this node's storage key --restore-from on a release that kept no copy of the cluster key, or whose mero-kms is gone Found it on a release the message names; if none is left, use the recovery disk.
You see Cause Fix
403 “this node takes signed packages only” Raw WASM on a node without --allow-unsigned-bundles Install a signed .mpk.
400 BAD_PACKAGE Signature, digest, pinned signer or minRuntimeVersion check failed Rebuild and sign with meroctl app pack; a package keeps its first release’s signer.
400 UNSUPPORTED_BUNDLE The bundle is a WASM core module (an SDK 0.12 app), which this node no longer runs Rebuild the app with calimero-sdk into a calimero:app component.
410 UNSUPPORTED_ENGINE The app is an SDK 0.12 (wasmer) app from before the engine was removed: listed, but nothing runs Rebuild it with calimero-sdk, create it again, and delete the old instance.
400 NO_REGISTRY PACKAGE@VERSION with no --registry-url Configure the registry (on a --dev cluster you may upload the .mpk instead).
403 UPLOADS_DISABLED An uploaded .mpk on a node without --dev Publish it to the registry and install PACKAGE@VERSION.
422 INIT_FAILED The app’s init failed; no instance is left behind Check initArgs.
422 UPGRADE_FAILED The app’s group refused the upgrade (a named migrate, which is not supported; an active compute run calling a result method the target drops) See details; the app stays on its bundle.
409 RUNTIME_TOO_OLD An upgrade, a new app or a replica move would have a node run a release needing a newer runtime (minRuntimeVersion) than it runs; details.nodes names them Move those nodes to a newer release, or move the app off them (ops move); the app’s report names the newest release it can reach (latestReachable).
uninstall refused An app still runs that release Upgrade or delete those apps first.
429 QUOTA_EXCEEDED An account quota meroctl ops quotas; raise with ops set-quotas.
409 RELEASE_DEADLINE The operator set a deadline on a mero-tee release this organization still relies on (GET /releases), and it passed Approve a newer release (POST /orgs/{org}/releases); running apps go on meanwhile.
403 “deployed with … decided by its operator” / “by each app’s owner” The other party holds that decision See Governance; it cannot change after genesis.
403 “node N runs release …, which this app’s owner has not approved” A replica move onto a node on an unapproved release Get the release approved first.
an app’s outbound request refused (NotApproved, AwaitingApproval) No [outbound] policy, the host is not allowed, or the prefix is not approved for the publisher Configure [outbound]; the holder of outbound approvals approves the prefix.