> ## Documentation Index
> Fetch the complete documentation index at: https://dromeus.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Errors, exit codes and current limits

> The DromeusError classes and what each means, how they map to command-line exit codes, and the current limits on group size, models, membership and privacy.

Every failure Dromeus raises on purpose is a `dromeus.DromeusError`, with a message that says what went wrong and what to change. This page lists the error classes, their command-line exit codes, and the limits of the current release.

## Errors

| Error | Meaning | Exit code |
| - | - | - |
| `ConfigError` | The node configuration or a local setting is invalid | `3` |
| `TaskError` | The task's model, batches, loss or optimizer isn't admissible | `3` |
| `DraftError` | The draft is malformed, or doesn't match this task or machine | `3` |
| `PrivacyError` | A privacy policy, ledger or budget check failed | `3` |
| `FormationError` | The group couldn't form: invitation, membership or readiness | `4` |
| `RunError` | The run failed after formation: peers, transport or rounds | `5` |

The first four are also `ValueError`; the last two are also `RuntimeError`. Catch `dromeus.DromeusError` to handle all of them:

```python theme={null}
try:
    result = asyncio.run(node.run(task(), local=local))
except dromeus.DraftError as error:
    print(f"this node's setup doesn't match the draft: {error}")
except dromeus.DromeusError as error:
    print(f"run failed: {error}")
```

See [exit codes](https://dromeus.mintlify.site/reference/cli.md#exit-codes) for the full command-line table.

## Common problems

> [accordion] DraftError: draft requires PyTorch X; this machine has Y
>
> Every node must install the Dromeus and PyTorch releases recorded in the draft. Install the named release, or have the group write a new draft. Different builds of one PyTorch release, such as `+cpu` and `+cu130`, are compatible.

> [accordion] DraftError naming a definition hash
>
> This node's task differs from the one the draft was written from. `dromeus check` names the field, such as `loss_definition_hash`. Make sure every node runs the same task code and definition text.

> [accordion] doctor: axl bridge fails
>
> Nothing answers at the node configuration's `axl_bridge_url`. Start the AXL node, and check that its `api_port` matches the URL. See [AXL setup](https://dromeus.mintlify.site/guides/axl-setup.md).

> [accordion] doctor: no peer link is up
>
> The AXL node is running but connected to no one. Check the `Peers` and `Listen` settings and that the bootstrap peer's port is reachable.

> [accordion] FormationError: enrollment closed
>
> The initiator's enrollment window ended before every participant joined. Deliver the invitation sooner, lengthen `enrollment_window_seconds`, or start again with a new run ID.

## Limits

* **Group size.** Groups are fixed, even-sized, and have 4 to 16 participants.
* **Fixed membership.** Membership can't change during a run. If one node fails or misses a deadline, the run stops; there is no automatic group restart.
* **Equal weight.** Every node weighs equally in the outer update, whatever its number of records.
* **Models.** Parameters must be dense float32. Nodes must agree on model structure and parameter meaning.
* **Separate models.** Each node keeps its own model, and final weights can differ between nodes.
* **Restarts.** Checkpoint restore requires compatible application state. Secure private runs can't resume after a crash.
* **Privacy.** Keeping data local doesn't make ordinary model updates private; use [private training](https://dromeus.mintlify.site/guides/private-training.md) for record-level guarantees.
* **Not implemented.** Secure aggregation and Byzantine fault tolerance.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.