nautechsystems/nautilus_trader · error
Failed to persist transaction
Error message
Failed to persist transaction {tx_hash}: {e}; the in-flight slot stays occupied What it means
Persistence failure in the sign-and-persist path: storing the signed transaction envelope in the database failed; the in-flight concurrency slot is deliberately left occupied so the intent is reconciled later rather than double-executed.
Solutions
- Restore database availability and retry
- Reconcile the intent on next connect - the occupied slot prevents duplicate submissions
- Inspect the wrapped database error for the root cause
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at crates/adapters/blockchain/src/execution/client.rs:2829 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of nautechsystems/nautilus_trader@18893faf8b (2026-09-08).
Data as JSON: /api/errors/611f910c3371adde.
Report an issue: GitHub.
Appendix: source
Thrown at crates/adapters/blockchain/src/execution/client.rs:2829
.await?;
let context = payload_context_identity(
&intent,
&transaction_hash,
self.chain_id,
self.payload_keys.deployment_id(),
)?;
let envelope = self.payload_keys.seal(&prepared.raw_tx, &context)?;
let row = self
.database
.add_execution_transaction_envelope(
prepared.intent_id,
self.chain_id,
&transaction_hash,
&envelope,
)
.await
.map_err(|e| {
anyhow::anyhow!(
"Failed to persist transaction {tx_hash}: {e}; the in-flight slot stays occupied"
)
})?;
let stored = open_execution_payload(
&self.payload_keys,
policy,
&intent,
&row,
"initial persistence",
)?;
anyhow::ensure!(
stored == prepared.raw_tx,
"Persisted transaction {tx_hash} does not match the signed bytes"
);
Ok(())
}
fn payload_policy(&self) -> PayloadPolicy {View on GitHub (pinned to 18893faf8b)