This page covers common installation problems you may encounter when setting up a Canton Network development environment, including Nix shell failures, Docker configuration, and memory allocation.Documentation Index
Fetch the complete documentation index at: https://docs.canton.network/llms.txt
Use this file to discover all available pages before exploring further.
Nix Problems
Nix shell fails to start
Ifnix-shell exits with a hash mismatch or download error, your local Nix cache may be stale.
nix-shell hangs during evaluation, check that your NIX_PATH is set correctly and that no conflicting Nix channels exist:
nix-shell.
”command not found: nix” after installation
Your shell profile may not source the Nix environment. Add the following to your~/.bashrc or ~/.zshrc:
PATH conflicts between Nix and system packages
If a system-installed tool (e.g., a different Java version) takes precedence over the Nix-provided one, verify your PATH ordering:nix-shell, Nix prepends its paths to $PATH. If you still see system binaries, check whether your shell profile appends paths after Nix or overrides them.
Docker Configuration
Insufficient memory for LocalNet
LocalNet runs a full Canton topology locally and needs significant resources. If containers crash with OOM (Out of Memory) kills or fail to start, increase Docker’s memory allocation. Minimum requirements for LocalNet:- Memory: 16 GB
- CPU: 4 cores
- Disk: 50 GB free
Volume mount permission errors
On Linux, Docker containers may fail to write to mounted volumes if your user ID does not match the container’s expected UID. Fix this by ensuring the host directory has appropriate permissions:--user flag matching your host UID:
Docker Compose version mismatch
Canton Quickstart requires Docker Compose 2.26.0 or higher. If you see:Memory Allocation
JVM heap for sandbox
The Daml sandbox runs on the JVM and defaults to conservative heap settings. If you encounterjava.lang.OutOfMemoryError: Java heap space, increase the heap:
OOM kills on LocalNet
When Docker kills containers silently, check for OOM events:true, you need to increase Docker’s memory allocation (see the Docker section above). You can also check system-level OOM events:
Resource limits summary
| Environment | Min Memory | Recommended Memory | Min CPU |
|---|---|---|---|
| Sandbox only | 4 GB | 8 GB | 2 cores |
| LocalNet | 16 GB | 24 GB | 4 cores |
| cn-quickstart | 8 GB | 16 GB | 4 cores |
Before running cn-quickstart, you must execute
make setup and make build before make start. Skipping these steps causes startup failures that can look like resource problems.