Skip to content

Latest commit

 

History

History
283 lines (211 loc) · 9.28 KB

installation.md

File metadata and controls

283 lines (211 loc) · 9.28 KB

Install

The Arc node can be installed in three ways: downloading pre-built binaries via arcup, building from source, or using Docker images.

After installation, refer to Running an Arc Node for how to start the node (binaries or Docker Compose).

Versions

Versions of the Arc node across networks may not be compatible. Consult the table below to confirm which version to run for each network.

Network Version
Arc Mainnet 0.9.0
Arc Testnet 0.9.0

Pre-built Binary

This repository includes arcup, a script that installs Arc node binaries into $ARC_BIN_DIR, defaulting to $ARC_HOME/bin and then ~/.arc/bin. The pre-built archives include arc-node-execution, arc-node-consensus, and arc-snapshots.

Supported release targets:

Operating system CPU architecture Release target
Linux x86_64 / amd64 x86_64-unknown-linux-gnu
Linux arm64 / aarch64 aarch64-unknown-linux-gnu
macOS Apple silicon aarch64-apple-darwin

Linux pre-built binaries are dynamically linked against GNU libc. The current release artifacts require glibc 2.39 or newer; Ubuntu 24.04 is known to work. Older distributions, such as Debian 12/bookworm, may fail with errors like GLIBC_2.38 not found or GLIBC_2.39 not found. In that case, use a newer Linux distribution/container, Docker images, or build from source.

Install the latest release:

curl -L https://raw.githubusercontent.com/circlefin/arc-node/main/arcup/install | bash

More precisely, the configured paths for Arc nodes are based on the $ARC_HOME variable, with ~/.arc as default value. If $ARC_BIN_DIR is not set, its default value is $ARC_HOME/bin, defaulting to ~/.arc/bin. $ARC_BIN_DIR must be part of the system PATH.

To be sure that the binaries installed under $ARC_BIN_DIR are available in the PATH, load the produced environment file:

export ARC_HOME="${ARC_HOME:-$HOME/.arc}"
source "$ARC_HOME/env"

To install a specific version, run arcup with --install:

arcup --install 0.9.0

Next, verify that the three Arc binaries are installed:

arc-snapshots --version
arc-node-execution --version
arc-node-consensus --version

The arcup script should also be in the PATH and can be used to update Arc binaries:

arcup

To update the installer script itself (and refresh the doctor companion installed beside arcup):

arcup --self-update

To remove arcup, the doctor companion, the installed Arc binaries, and the generated shell env files without deleting node data:

arcup --uninstall

arcup always verifies the downloaded archive against its .sha256 file. GPG signature verification is disabled until the Arc release signing key is published. If an archive for your operating system or CPU architecture is not available in the selected release, arcup prints the expected asset name and the available release assets.

Troubleshooting:

  • Unsupported architecture: use one of the supported targets above, or build from source.
  • Failed to download ...: confirm the selected version exists and includes an archive for your platform.
  • Checksum verification failed: retry the install; if it persists, do not run the downloaded binaries.
  • On macOS, if manually copied binaries are blocked by quarantine attributes, run xattr -dr com.apple.quarantine "$ARC_BIN_DIR" after reviewing the downloaded files.

Validator doctor

arcup doctor is a read-only diagnostic for a local Arc validator. It queries the execution JSON-RPC API, the consensus REST API, and an optional reference RPC, then prints PASS / WARN / FAIL checks with one overall state: HEALTHY, DEGRADED, UNHEALTHY, or UNKNOWN.

Prerequisites

  • Python 3.10+ on PATH as python3
  • Local read-only access to the EL and CL APIs (defaults below)
  • No third-party Python packages. Bootstrap and --self-update install doctor.py plus the libdoctor/ package beside arcup.

Defaults and overrides

Flag Default Purpose
--el-url http://127.0.0.1:8545 Execution JSON-RPC
--cl-url http://127.0.0.1:31000 Consensus REST
--reference-url inferred for Arc Testnet only Public/reference EL for lag comparison
--observe-seconds 15 Wait between height samples
--timeout 5 Per-request timeout in seconds
--format text text or json

For chain ID 5042002 (Arc Testnet), doctor uses https://rpc.testnet.arc.network when --reference-url is omitted. Every other chain ID requires an explicit --reference-url.

Examples

arcup doctor
arcup doctor --format json
arcup doctor --el-url http://127.0.0.1:8545 --cl-url http://127.0.0.1:31000
arcup doctor --reference-url https://rpc.example.invalid --observe-seconds 15
arcup doctor --help

Exit codes

Code Meaning
0 Overall HEALTHY
1 Overall DEGRADED, UNHEALTHY, or UNKNOWN
2 Invalid arguments or incomplete run

Missing comparison data (for example an unreachable reference RPC) yields UNKNOWN rather than HEALTHY. Overall UNKNOWN uses exit code 1.

V1 exclusions

arcup doctor does not inspect process or log state, systemd/Docker/Kubernetes discovery, host resources, signer or firewall configuration, the transaction pool, or support-bundle upload. It does not explain results with AI or load plugins.

Build from Source

The Arc node source code is available in the https://github.com/circlefin/arc-node repository:

1. Clone arc-node

Set $ARC_VERSION to the version from the Versions table, for example 0.9.0. Release tags add a leading v.

git clone https://github.com/circlefin/arc-node.git
cd arc-node
git checkout v$ARC_VERSION

2. Install Rust:

Make sure that you have rust installed. If not, it can be installed with the following commands:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source ~/.cargo/env

With Rust installed, install the dependencies for your operating system:

  • Ubuntu: sudo apt-get install libclang-dev pkg-config build-essential
  • macOS: brew install llvm pkg-config and then export LIBCLANG_PATH="$(brew --prefix llvm)/lib"
  • Windows: choco install llvm or winget install LLVM.LLVM

These are needed to build bindings for Arc node execution's database.

3. Build and install:

The following commands produce three Arc node binaries: arc-node-execution, arc-node-consensus, and arc-snapshots:

cargo install --path crates/node
cargo install --path crates/malachite-app
cargo install --path crates/snapshots

cargo install places compiled binaries into ~/.cargo/bin, which is added to PATH by loading ~/.cargo/env. Include the parameter --root $BASE_DIR to install the compiled binaries into $BASE_DIR/bin instead (for instance, --root /usr/local).

In either case, Arc node binaries should be in the PATH. Verify by calling them:

arc-snapshots --version
arc-node-execution --version
arc-node-consensus --version

Build one package at a time. The commands above are package-scoped (--path crates/...) deliberately. Cargo unifies features across every package it selects in a single invocation, and --bin filters targets rather than packages — so a workspace-wide build enables the test-only byzantine fault-injection option in arc-node-consensus. Use cargo install --path crates/malachite-app or cargo build --release -p arc-node-consensus rather than building the workspace. Released binaries and the published container images are built this way and do not expose --byzantine.

Docker

Running an Arc node requires two Docker images — one for each layer:

Image Description
arc-execution Execution Layer (EL) — EVM, RPC, transaction pool
arc-consensus Consensus Layer (CL) — BFT consensus, follow mode

You can either pull pre-built images from the public registry or build them from source. Both approaches are described below.

Pre-built Docker images

Pre-built multi-arch images (amd64 and arm64) are published to Cloudsmith.

Set $ARC_VERSION to the release from the Versions table, then pull:

docker pull docker.cloudsmith.io/circle/arc-network/arc-execution:$ARC_VERSION
docker pull docker.cloudsmith.io/circle/arc-network/arc-consensus:$ARC_VERSION

Build Docker images

Alternatively, build images from a release tag:

git clone https://github.com/circlefin/arc-node.git && cd arc-node
git checkout v$ARC_VERSION
docker buildx bake \
  --set "*.args.GIT_COMMIT_HASH=$(git rev-parse v$ARC_VERSION^{commit})" \
  --set "*.args.GIT_VERSION=v$ARC_VERSION" \
  --set "*.args.GIT_SHORT_HASH=$(git rev-parse --short v$ARC_VERSION^{commit})" \
  --set "arc-execution.tags=arc-execution:$ARC_VERSION" \
  --set "arc-consensus.tags=arc-consensus:$ARC_VERSION"

After obtaining the images, see Running an Arc Node: Docker for how to start the node.