github DogeOS69/dogeos-rpc-package v0.2.0-testnet
DogeOS RPC Package v0.2.0-testnet

pre-release2 hours ago

This release updates existing v0.3.0 testnet RPC and follower deployments from RPC Package v0.1.1-testnet. It moves testnet into its own testnet/ directory, adds grouped snapshot restore and a persistent L2 P2P identity, and removes every host dependency except Docker, Compose 2.24+ and Bash 4.4+.

This is a one-time maintenance upgrade. Commands, the settings file location and the startup procedure change. Read the testnet changelog before you start. Chain data, the Dogecoin volume, DATA_ROOT and RPC credentials are kept; no resync is needed.

Changes

  • Docker and Bash only on the host. Python, jq, curl, sqlite3, GNU tar, ssh-keygen and socat are no longer needed. The helper scripts are now Bash (./scripts/NAME.sh replaces python3 scripts/NAME.py) and run their tools from the pinned image ghcr.io/dogeos69/rpc-toolbox:0.1.0@sha256:922fb8a79337826795fa420bae02e3c8992975893d3e3243bbb8b1d364ef4a30, pulled on first use, so the host needs access to ghcr.io (or the image pulled in advance). Helper containers run as the invoking user with all capabilities dropped, and none gets the Docker socket. ./scripts/doctor.sh checks a host.
  • Self-contained network directory. Testnet lives in testnet/ with its own Compose file, configuration, scripts, docs and changelog. Operator settings are in one testnet/.env file. The root docker-compose.yml, configs/, envs/ and scripts/ are gone. NETWORK and DOGECOIN_P2P_PORT are no longer used.
  • Grouped snapshots and staged startup. ./scripts/snapshot-group.sh list | restore GROUP_ID | start restores a matched set of Dogecoin, L1 Interface and L2Reth snapshots with archive, checksum and SQLite validation, dependency checkpoints and an interruption journal. start waits for Dogecoin sync and L1 Interface readiness before starting L2Reth. Snapshot set 20261114024603 (Dogecoin block 68,064,104, L2 block 9,456,342) is published in the snapshot group catalog; ./scripts/snapshot-group.sh list shows it.
  • Run as an ordinary docker-group user. The scripts no longer need sudo: run them as one ordinary user in the docker group (which, as with any Docker host, is root-equivalent). p2p-identity.sh init creates DATA_ROOT and the service data directories as that user, and if DATA_ROOT belongs to someone else it stops with the owner's name and the one-time chown command. Permission errors now name the owner of DATA_ROOT instead of suggesting sudo.
  • Persistent L2 P2P identity. L2Reth now requires a P2P key stored outside its data directory, so snapshot restore and reset keep the node ID. ./scripts/p2p-identity.sh init creates it from the existing discovery-secret.
  • add-l2reth-peer over an IPC volume. L2Reth serves its admin IPC socket at /run/reth/reth.ipc in the l2reth_ipc volume. add-l2reth-peer.sh reaches it through the toolbox and no longer needs sudo or /proc. L2RETH_IPC_PATH is removed, and L2RETH_EXTRA_ARGS may not set --ipcpath or --ipcdisable.
  • L1 derivation start block fix. startL1Block in the testnet genesis is now 14023282, inside the L1 history the L1 Interface serves. The genesis hash is unchanged.
  • L2Reth startup and limits. L2Reth waits for L1 Interface /api/v1/health/ready on every start. Default L2RETH_MEM_LIMIT is now 16g (was 8g).
  • RPC and operations. Configurable L2RETH_HTTP_API, L2RETH_WS_API and L2RETH_EXTRA_ARGS; Prometheus metrics on 127.0.0.1:6060; log rotation for every container (100 MB × 5); an L1 Interface healthcheck; INTERNAL_BIND_ADDR for internal ports.
  • Documentation. New operations, snapshots, P2P identity and RPC verification guides, including how the L1 Interface's synthetic L1 heights relate to Dogecoin heights, and clearer restore log messages.
  • Cleanup. Removed Celestia and L2Geth leftovers, unused env files and world-writable permission changes in the L1 Interface bootstrap. L2RETH_PEER_LIST replaces L2GETH_PEER_LIST (still accepted).

Service images are unchanged from v0.1.1-testnet; the toolbox image above is the only new image. L2Reth stays on dogeos69/rollup-node:v0.3.0-beta.1c-ca.20261021.1-stateroot@sha256:ae9af79d24d585edb0a644f246a62517318f9cd6ed872295e8d369c4dcc0429f.

Upgrade

Plan a maintenance window. L2 RPC is unavailable while the containers are recreated, Dogecoin reloads its block index, and L2Reth catches up.

Before you start

Check your current settings for these, because they stop L2Reth or the helpers after the upgrade:

  • L2RETH_EXTRA_ARGS must not contain --nat, --port, --discovery.port, --p2p-secret-key, --ipcpath or --ipcdisable; L2Reth exits with an error if it does. Use L2_P2P_PORT and L2RETH_P2P_PUBLIC_IP instead.
  • If L2Reth uses a custom L1 endpoint, also set L2RETH_L1_READY_URL in testnet/config/l2reth.env.
  • Custom L1 Interface database-path overrides are rejected; reconcile them first.
  • L2RETH_P2P_SOURCE_CIDRS is no longer used and can be removed.

Steps

  1. In the repository root, record what the running deployment resolves to. If your settings file is already at testnet/.env.testnet, run this in testnet/ instead and in step 2 rename it with mv .env.testnet .env there.
docker compose --env-file .env.testnet config \
  | grep -E '^ *name:|source: .*/(l2reth|l1-interface)$' | sort -u \
  > /tmp/dogeos-layout-before.txt
  1. Update the checkout to v0.2.0-testnet, move the settings file, and confirm the new layout resolves to the same project name, Dogecoin volume and data directories:
git fetch --tags && git checkout v0.2.0-testnet   # or: git pull on main
mv .env.testnet testnet/.env
cd testnet
docker compose config \
  | grep -E '^ *name:|source: .*/(l2reth|l1-interface)$' | sort -u \
  | diff /tmp/dogeos-layout-before.txt - && echo "Layout unchanged"

Continue only after Layout unchanged. Otherwise follow If the layout check differs. An existing l1-interface.local.env is still read from envs/testnet/ or testnet/config/ but is deprecated; move its values into testnet/.env using the settings table in the changelog.

  1. On a host with less than 64 GB of memory, set L2RETH_MEM_LIMIT in testnet/.env first (6g on a 32 GB host). Then check the host (including that the toolbox image can be pulled), create the P2P key, and start:
./scripts/doctor.sh
./scripts/p2p-identity.sh init
./scripts/snapshot-group.sh start

snapshot-group.sh start pulls images and recreates the containers once, which applies the new L2Reth IPC path, entrypoint, memory limit, log rotation and healthchecks.

Run these and all later scripts as one ordinary user in the docker group. If DATA_ROOT already belongs to root (Docker created it at an earlier start, or scripts ran with sudo), p2p-identity.sh init stops and names the owner. Before running it, either hand the directory over once, with the stack stopped:

docker compose stop
sudo chown -R "$USER": /your/data/root

or keep running every script with sudo. Do not mix the two: scripts run under sudo create root-owned files that the ordinary user cannot replace later. The Dogecoin Docker volume is not affected. See P2P Identity.

  1. Update anything that runs Compose from the repository root (cron jobs, systemd units, deploy and monitoring scripts) to run inside testnet/ without --env-file. Do not schedule snapshot-group.sh start as a periodic health check; it stops L1 and L2 each time it runs.

Nodes started from an empty L2 data directory (instead of restoring the L2Reth snapshot) on an earlier release may have no safe or finalized head. Reset L1/L2 data with this release (run in testnet/; the old data is moved to timestamped backups and the Dogecoin volume is kept), or restore a snapshot group as described in Snapshots and Recovery. Nodes restored from a snapshot are not affected.

./scripts/reset-chain-data.sh
./scripts/snapshot-group.sh start

A group restore never replaces an existing Dogecoin volume: on a node that already has one, set a new, unused DOGECOIN_VOLUME_NAME first, and use --force to keep the existing L1/L2 data as a backup.

Verify

docker compose ps
./scripts/verify-rpc.sh
curl --fail http://localhost:9090/health
curl --fail http://localhost:9090/api/v1/health/ready

verify-rpc.sh compares http://127.0.0.1:8545 with the published reference RPC; if you changed the HTTP port, pass --local-url http://127.0.0.1:PORT. Both L1 Interface health endpoints should return HTTP 200. Confirm that safe and finalized advance. To check peering, run ./scripts/add-l2reth-peer.sh; with no argument it adds the public testnet bootnode, or pass an enode://… URL.

This release was validated end to end on a testnet host: a grouped restore with ./scripts/snapshot-group.sh restore latest (Dogecoin, L1 Interface and L2Reth snapshots, with SHA-256 and archive layout checks), staged startup, verify-rpc.sh (PASS), L1 Interface /health (ready), and adding a real peer with add-l2reth-peer.sh through the IPC volume all passed.

Don't miss a new dogeos-rpc-package release

NewReleases is sending notifications on new releases.