Skip to content

Troubleshooting

Symptoms, causes and fixes, one table per component. The messages are quoted from the code and from the comments in .env_sample; search this page for the text you see in a log.

How to read the logs: Deployment for the services, Verifying and measuring for the handler's log lines. Many failures are caught at startup, so read the first lines of the log before the last ones. Messages in the tables are shortened where the code prints a longer sentence.

Backend

The HTTP server behind /api/SendPTB. See The backend HTTP server and HTTP endpoints.

Symptom Cause Fix
500 with No gas coins available for sender <address> The sender owns no coins on the network named in ptb[].network, and it had no cache entry, so the backend asked the node. Fund the address (Fund it). If it already had a cache entry before you funded it, redeploy so the cache is rebuilt.
500 with Unsupported network: … ptb[].network is neither testnet nor devnet. Use one of the two (POST /api/SendPTB).
500 with No PTB definition provided The ptb array is empty. Only its first element is used; a second entry is ignored without an error. Put the definition in ptb[0], or send two requests.
400 from the server The body is not valid JSON or does not match the request type. A body without all four auth fields is rejected this way. Send address, request_number, agent_number and gas_budget.
A sample payload is rejected create_akn_iri.json and update_iter.json name the list ptbs, not ptb. split_coin.json uses SplitCoins, which is not a Move call. Do not use these three as inputs. See Sample payloads.
500 with Invalid array length, expect 2 or 3, got N An argument is not [type, value] or [command, type, data]. Fix the argument. Other encoder messages (Unsupported argument type: …, Invalid address '…') point at the bad value: Errors.
200, but transactions[0].status is Failure: … The transaction was submitted and aborted or failed during execution. A Move abort is still a 200. Read the failure text; look the abort up in the target package.
Failed to execute transaction after 3 retries: … Submission failed three times. The cached gas reference is not updated. Read the error that follows; check node reachability and gas.
503 with body WARMING on /ready The coin caches are not warm yet. Wait. Gate load on /ready, not on /health.
[STARTUP] Warning: SENDER_ADDRESS is not a valid IotaAddress SENDER_ADDRESS in .env is malformed. The bridge sender's gas-coin preload is skipped. Set a valid address. The backend preloads the bridge sender's coins from SENDER_ADDRESS.
[STARTUP] Warning: failed to preload bridge sender coin cache for … The node refused the coin listing for that address. Check the address has coins and the node is reachable.
[STARTUP] Warning: could not parse replica slot from HOSTNAME='…'; defaulting to slot 1 The container hostname has no number the backend can read, so the replica uses slot 1. Run the replicas through the compose files. Each replica owns a disjoint window of coins derived from its Swarm slot, so two replicas on one slot would sign against the same coins.
Failed to load keystore: … iota.keystore is missing in the working directory. Provide the keystore (Keystore).
404 on /api/SendAAPTB Deprecated. The route exists only when ENABLE_AA=true. Use Track C; see Legacy.

Load test

The loadtest binary. See Running a load test.

Symptom Cause Fix
ERROR: Backend did not become ready within 180s (…) /ready kept answering 503 for 180 seconds, or the target is not reachable. Check the backend is running and its caches warmed; check --target-url.
ERROR: Not enough keys in keystore. Found N, need M Fewer addresses in ./iota.keystore than --agents. Lower NUM_AGENTS or use a keystore with more addresses.
Every request fails with No gas coins available for sender <address> The agents' addresses own no coins on the payload's network. Fund them before the run (Fund the agents first).
error: --interval must be > 0 (or another error: line) An argument is out of range; loadtest exits before sending anything. Fix the flag. The rules are listed in Arrival types.
error: --increment-interval is required when --arrival-type=staircase staircase needs --increment-interval and --max-requests-per-interval; poisson needs --poisson-lambda. Add the flags.
run.json has "rate_achieved": false The generator reached under 90 percent of its target rate. The generator is the limit, so the latencies say little about the backend. Add agents, or lower the target rate.
Locked objects, or requests failing in a burst COINS_PER_REPLICA differs from the backend replica count in docker-compose.backend.yml. .env_sample warns that the load test will cause "locked objects" then. Make the two agree (Setup).
Error: LOADTEST_PIPELINE_DEPTH (…) must be <= COINS_PER_REPLICA (…) from deploy.sh The depth, or GRPC_POOL_SIZE, exceeds the coins per replica. Lower it or raise COINS_PER_REPLICA.
Timing numbers look slow A debug build of loadtest. bench_sweep stops when it finds only a debug build. Build with --release.

Event listener

The event_listener binary. See The event listener.

Symptom Cause Fix
No events arrive, no error The package, module or event type filter matches nothing. A wrong filter is silent. Check EVENT_LISTENER_PACKAGE_ID, EVENT_LISTENER_MODULE and EVENT_LISTENER_EVENT_TYPE. The start-up lines Watching <package>::<module> and Event type filter: … show what it uses.
Events emitted while the listener was down are missing EVENT_LISTENER_RESET_CURSOR defaults to true: the listener deletes its saved state and starts at the chain tip (Flushed cursor/events files - starting fresh). Deploy before you send. Set EVENT_LISTENER_RESET_CURSOR=false to resume (Resuming from persisted cursor and processed-event set).
An old event is not delivered again after a restart Its id is in data/processed_events.json. The set is bounded: newest 10,000 ids by default (EVENT_LISTENER_DEDUPE_CAPACITY), oldest evicted first. Remove the file, or rely on the default reset.
Could not parse …; starting empty The processed-events file is corrupt. Delete it; the listener starts with an empty set.
Handler rejected <digest>:<seq> with status 429; will retry The handler's queue is full. The cursor is held. Wait, or reduce the load. The queue is described under POST /api/handle_event.
Handler rejected … with status 403; will retry, forever The committee is on and the listener posts straight to the handler, unsigned. Point the listener at the committee (CONSENSUS_INGEST_URL). See Committee.
Forwarding error for <digest>:<seq>: …; will retry The target is down or unreachable. Start the handler; check EVENT_HANDLER_URL.
Holding cursor: not every event on this page was forwarded At least one event on the page failed to forward. Fix the cause above; the page is retried.
Error fetching events: … or JSON-RPC error: … The source node's JSON-RPC call failed. Check EVENT_LISTENER_RPC_URL.
Logged status 202, but nothing on the destination 202 means queued, not executed. Read the handler log and bridge_results.csv.

Event handler

The event_handler binary. See The event handler and One-time bridge setup.

Startup refusals

Each check turns what would be a Move abort on every request into one error at startup. The handler exits.

Message starts with Cause Fix
BRIDGE_AA_ACCOUNT_ID must be set when EVENT_HANDLER_MODE=bridge A required variable is missing (the message names it: also BRIDGE_AA_PACKAGE_ID, BRIDGE_SOURCE_CHAIN_ID, BRIDGE_TARGET_CHAIN_ID). Set it. … is not a valid object id or … is not a u64 means a bad value.
EVENT_HANDLER_SIGNER (or SENDER_ADDRESS) must name the relayer key No relayer address. Set EVENT_HANDLER_SIGNER to the key registered in the ACL.
Relayer key … not found in keystore / Signer … not found in keystore The address is not in the keystore at EVENT_HANDLER_KEYSTORE_PATH. Add the key or fix the address.
Relayer key … is secp256r1, which bridge_abstract_account cannot verify The account verifies only ed25519 and secp256k1. Use an ed25519 key.
BridgeAA … is bound to chain …, but BRIDGE_TARGET_CHAIN_ID is … The account's own chain id differs from the variable. Every intent would abort with EWrongTargetChain. Make them agree, or recreate the account.
BridgeAA … has no ACL entry for (source_chain_id=…, source_sender=…) The relayer has no ACL entry. Every intent would abort with ESenderNotInAcl. Seed it with bridge_aa_init or add it with bridge_acl_add (Managing the ACL).
BridgeAA … owns no gas coins The account is the sender, so it must hold its own coins. Funding the relayer is not enough. Fund the account (Gas pool sizing).
BridgeAA account … is …, but an abstracted account must be shared or immutable The object is owned (neither shared nor immutable), so it is probably not a BridgeAA from bridge_abstract_account::create. Use the right object id.
BRIDGE_PROTOCOL_PHASES=3 requires EVENT_HANDLER_MODE=bridge Three phases in static mode. Use bridge mode, or BRIDGE_PROTOCOL_PHASES=2.
Unsupported BRIDGE_PROTOCOL_PHASES '…'; expected '2' or '3' Typo. Use 2 or 3.
Unsupported BRIDGE_ACK_SIGNER '…'; expected 'eoa' or 'aa' Typo. Use eoa or aa.
Source-chain BridgeAA … is bound to chain_id … The second account's chain id is wrong. Recreate it on the source network (Three phases).
Source-chain BridgeAA … has no ACL entry for … The destination account is not in the second account's ACL. Seed it with BRIDGE_ACL_SOURCE_SENDERS=<destination BridgeAA>.
… holds no gas coins on … for acknowledgements The ack sender has no coins on the source network. Fund the relayer (eoa) or the second account (aa).
EVENT_LISTENER_PACKAGE_ID missing in three-phase bridge mode The handler reads it only to find the bridge_source package for acknowledgements, and only in 3-phase bridge mode. Set it to the bridge_source package.
Invalid EVENT_HANDLER_SIGNER '…' The address does not parse. Fix the value.

While running

Symptom Cause Fix
gas coin drained below budget -- retiring it for the rest of the run A coin cannot cover the budget. It is retired by a flag until restart. Re-split the pool (Re-splitting the pool).
destination coins below one full batch retired with a high retired The startup pre-screen retired coins below one full batch (LOADTEST_GAS_BUDGET_BRIDGE x BATCH_SIZE). Size the coins for the batch (Batching and gas).
Every row has failure_stage no_gas; Every gas coin for … has been drained below the budget The pool is under-funded and retired itself within the first few batches. A gas budget is a per-transaction reservation that one coin must cover. Fewer, richer coins, or a smaller BATCH_SIZE.
batch budget exceeds the gas coin's balance -- lower BATCH_SIZE or re-split the pool The coin is healthy; one batch asked for more than it held. It stays live. Lower BATCH_SIZE, or re-split into richer coins.
DEST GAS: destination call ran out of gas DURING EXECUTION LOADTEST_GAS_BUDGET_BRIDGE is below what the call costs. Raise it.
ACK GAS: acknowledgement ran out of gas DURING EXECUTION BRIDGE_ACK_GAS_BUDGET is too small. One ack costs more than 1,000,000; 2000000 is known to work. Raise it. Do not go below 2000000.
ACK GAS: BRIDGE_PROTOCOL_PHASES=3 but no acknowledgement gas coin can fund a batch Every acknowledgement will fail, and the ack columns stay empty. Fund or merge coins so each holds at least BRIDGE_ACK_GAS_BUDGET x BATCH_SIZE.
ACK GAS: fewer usable acknowledgement coins than EVENT_HANDLER_CONCURRENCY Acks queue for a coin; phase-3 latency includes the wait. Add coins on the source chain.
fewer gas coins than concurrent workers Throughput is capped by the coin pool. Split more coins or lower EVENT_HANDLER_CONCURRENCY.
acknowledgement batch failed; destination calls are still recorded as successful The ack transaction failed; the destination rows stay successful. See acknowledge transaction reverted: … and the gas lines above.
Event …:… carries no parsedJson (failure_stage build_call) In bridge mode the event body is the call, and it is missing. Make sure the listener posts the event's parsedJson.
Event source_chain_id … does not match the configured source chain … / Event targets chain … but this relayer bridges to chain … The event names a chain this relayer does not represent; it refuses to sign. Fix the request, or the chain-id variables.
queue full and 429 The worker queue is full. The listener retries. Wait, or reduce the load.
timed-out before finality could be reached (code 14) Almost always failed authentication, usually a source_sender missing from the ACL. The handler does not treat it as a gas failure, so the coin stays live. Read the first abort code, as in Move and the authenticator.
batch partially or wholly unsuccessful The transaction was submitted and reverted. It still has a digest and failure_stage on_chain_revert. Look the digest up in the explorer.

failure_stage values (build_call, no_gas, execute_retry_exhausted, on_chain_revert) are defined in CSV schemas.

Committee

The consensus_committee binary and the delivery gate. See Adding the consensus committee and The consensus committee inside.

Symptom Cause Fix
403 CONSENSUS_ENABLED=true: only deliveries signed by the consensus committee are executed The handler's gate refuses an unsigned or altered body, including events posted directly to it. This is the 403 rule. Send events to the committee. Both services need the same CONSENSUS_DELIVERY_KEY.
503 from the committee, the committee can no longer commit; /health and ingest now answer 503 CometBFT processes died at runtime and left no quorum. Restart the committee. The listener keeps its cursor and retries. A committee configured without a quorum stays up on purpose.
503 with ingest queue full; the listener will retry The ingest queue is full. Wait, or raise CONSENSUS_INGEST_QUEUE.
CONSENSUS_DELIVERY_KEY must be set to at least 32 characters The key is missing or short. The committee and the handler both refuse to start. openssl rand -hex 32. Both need the same key in .env.
Error: CONSENSUS_ENABLED=true needs CONSENSUS_DELIVERY_KEY (at least 32 characters) in .env. from deploy.sh The same check, run before anything is torn down. Add echo "CONSENSUS_DELIVERY_KEY=$(openssl rand -hex 32)" >> .env.
CONSENSUS_FAULTY_NODES (…) + CONSENSUS_BYZANTINE_NODES (…) exceeds CONSENSUS_NODES (…) Inconsistent counts. Fix the three variables.
every node is faulty: no process would run All nodes are configured as crashed. Leave at least one live node.
CONSENSUS_BASE_PORT … leaves no room for … processes The port range does not fit. Lower the base port.
could not run … (set COMETBFT_BIN) The CometBFT binary is not found. Set COMETBFT_BIN, or run inside the image that contains it.
could not bind ABCI on … or could not listen on … (set CONSENSUS_LISTEN_ADDR) A port clash. Free the port or change the address.
no honest node is live; events are submitted to Byzantine mempools A configured scenario, not a fault. None needed.
rejecting proposal / event refused; the committee will not order it An honest node rejected a forged, altered or unknown event, or its sender is not in the ACL. Expected under a forge strategy. Otherwise check the ACL.
UNSAFE COMMIT Past the bound, forgers decided. Reduce Byzantine nodes to at most ⌊(n−1)/3⌋.
executor refused delivery; retrying / executor unreachable; retrying The committee cannot deliver to the handler. Check the handler is up and that the keys match.
ACL refresh failed; keeping the previous snapshot The ACL read from the chain failed. Check the node and the account id.

Move and the authenticator

Aborts come from bridge_authenticator, in this order: target chain (4), ACL (1), signature (2), PTB match (3). The first code you see names the first check that failed. The full list is in Move API and abort codes.

Abort Constant Cause Fix
4 EWrongTargetChain The intent's target_chain_id is not the account's chain_id. Make BRIDGE_TARGET_CHAIN_ID, the account and the request agree.
1 ESenderNotInAcl No ACL entry for (source_chain_id, source_sender). The usual cause of a code-14 timeout. Add the sender: Managing the ACL.
2 EInvalidSignature The signature does not match the key in the entry, or the intent has trailing bytes. Check the relayer key is the one in the ACL entry, with the right scheme.
3 ENoMatchingCall No PTB call matches the intent: a different package, module, function, type argument or argument bytes, or an argument that is not pure. Make the call all-pure and byte-identical. See Why only pure arguments are matched.
0, 6 ELengthMismatch, ENoIntents Intents and signatures differ in count, or there are none. A malformed transaction; the handler refuses zero intents before submitting.
5 ETransactionSenderIsNotTheAccount An admin function was called by someone other than the account. Go through bridge_acl_add, which sends from the account.
7, 8, 9 EInvalidPublicKeyLength, EDegeneratePublicKey, EUnsupportedScheme A bad key or scheme in create or add_acl_entry. Use a 32-byte ed25519 key (scheme 0) or a 33-byte secp256k1 key (scheme 1).
10, 11 ENoInitialAclEntries, EInitialAclLengthMismatch create got an empty or uneven ACL. The relayer is always seeded; check BRIDGE_ACL_SOURCE_SENDERS.

Tools that touch the account print their own refusals:

Message Cause Fix
BridgeAA … owns no gas coins; fund it first. (bridge_aa_coins) Nothing to re-split. Fund the account.
--count and --amount must both be positive Bad flags. Fix them.
… was generated for BridgeAA …, but BRIDGE_AA_ACCOUNT_ID is …. Re-run generate. (bridge_acl_add) The batch file is for another account. Re-run generate.
… registers senders on source chain …, but BRIDGE_SOURCE_CHAIN_ID is … The batch is keyed by the wrong chain, so it would authorise nothing. Re-run generate.
Batch … failed: … A batch failed. Fix the cause, then re-run apply on that file alone. add_acl_entry overwrites, so replaying is safe.
… does not exist on this network. Is it published there? BRIDGE_TARGET_PACKAGE or another id is wrong for the network. Check the ids and EVENT_HANDLER_NETWORK.
Creator … is not in keystore … (bridge_aa_init) The signer is not in the keystore. Add it.
BridgeAA … is not a shared object, so it can never be passed as &mut BridgeAA An immutable account cannot run its admin functions. Create it with bridge_abstract_account::create.

To check a live account yourself, run cargo test --lib -- --ignored bridge_aa_prechecks --nocapture from testing_backend/ (Errors).

Deployment

deploy.sh and the compose stacks. See Deployment.

Symptom Cause Fix
Error: unsupported mode '…' The mode is not bridge, benchmark or hybrid. Use one of them.
Error: --mode requires a value / unknown argument '…' Bad arguments. See deploy.sh.
Error: CONSENSUS_ENABLED=true needs CONSENSUS_DELIVERY_KEY (at least 32 characters) in .env. A short or missing CONSENSUS_DELIVERY_KEY. The script stops before it touches the running stack. Generate one with openssl rand -hex 32.
Error: <name> must be a non-negative integer, got '…' A numeric variable is not a number. Fix .env.
Error: GRPC_POOL_SIZE (…) must be <= COINS_PER_REPLICA (…) The pool is larger than the coins per replica. Lower it.
Warning: SENDER_ADDRESS is unset. Bridge sender isolation/preload will not be enabled. SENDER_ADDRESS is empty. Only a warning. Set it if you want the bridge sender's coins preloaded.
Warning: …/.env not found. Using compose defaults. There is no .env. cp stealth_name_service/backend/.env_sample stealth_name_service/backend/.env.
Error: …/iota.keystore not found. It is bind-mounted into the services and must exist before deploying. The keystore is missing. Provide testing_backend/iota.keystore.
Host tools read different values from the containers A second .env in testing_backend/ shadows backend/.env for the host tools: they search the current directory, then its parents. Delete it. Keep one .env (One .env only).
CONSENSUS_ENABLED=true is ignored in benchmark mode (no bridge services). Benchmark mode starts no relayer. Use bridge or hybrid.
The stack is gone after a deploy deploy.sh removes the stack, leaves the swarm and re-initialises it. Expected. Run it only where that is acceptable.
Events were missed during a redeploy The listener starts at the chain tip. Deploy first, then send.