reth download --archive hangs on resume
C-bugS-needs-triageS-stale
### Describe the bug
The archive snapshot cannot be downloaded in its entirety if interrupted and resumed:
```bash
reth download --datadir /reth --archive
```
### Steps to reproduce
```bash
reth download --datadir /reth --archive
# Stop the process with Ctrl+C after ~1 TB downloaded
reth download --datadir /reth --archive
# Hangs
```
### Node logs
```text
martin@martin-pc:~$ reth download --datadir /reth --archive -vvvvv
2026-05-16T21:29:15.648915Z INFO reth::cli: Initialized tracing, debug log directory: /home/martin/.cache/reth/logs/mainnet
2026-05-16T21:29:15.654753Z INFO reth::cli: Discovering latest snapshot manifest api_url=https://snapshots.reth.rs/api/snapshots chain_id=1
2026-05-16T21:29:15.695085Z DEBUG hyper_util::client::legacy::connect::http: connecting to 104.21.4.253:443
2026-05-16T21:29:15.726781Z DEBUG hyper_util::client::legacy::connect::http: connected to 104.21.4.253:443
2026-05-16T21:29:15.905450Z INFO reth::cli: Found latest snapshot manifest block=25101605 url=https://snapshots-r2.reth.rs/reth-1-archive-stable-25101605-1778864664/manifest.json
2026-05-16T21:29:15.905461Z INFO reth::cli: Fetching snapshot manifest source=https://snapshots-r2.reth.rs/reth-1-archive-stable-25101605-1778864664/manifest.json
2026-05-16T21:29:15.953705Z DEBUG hyper_util::client::legacy::connect::http: connecting to 104.21.4.253:443
2026-05-16T21:29:15.986686Z DEBUG hyper_util::client::legacy::connect::http: connected to 104.21.4.253:443
2026-05-16T21:29:16.537130Z INFO reth::cli: Loaded snapshot manifest block=25101605 chain_id=1 storage_version=2 components=8
2026-05-16T21:29:16.537170Z INFO reth::cli: Queued component for download component=State (mdbx) archives=1 selection=All
2026-05-16T21:29:16.537308Z INFO reth::cli: Queued component for download component=Headers archives=503 selection=All
2026-05-16T21:29:16.537460Z INFO reth::cli: Queued component for download component=Transactions archives=503 selection=All
2026-05-16T21:29:16.537606Z INFO reth::cli: Queued component for download component=Transaction Senders archives=503 selection=All
2026-05-16T21:29:16.537761Z INFO reth::cli: Queued component for download component=Receipts archives=503 selection=All
2026-05-16T21:29:16.537924Z INFO reth::cli: Queued component for download component=Account Changesets archives=503 selection=All
2026-05-16T21:29:16.538136Z INFO reth::cli: Queued component for download component=Storage Changesets archives=503 selection=All
2026-05-16T21:29:16.538238Z INFO reth::cli: Queued component for download component=RocksDB Indices archives=1 selection=All
```
### Platform(s)
Linux (x86)
### Container Type
Not running in a container
### What version/commit are you on?
```text
Reth Version: 2.2.0
Commit SHA: 88505c7fcbfdebfd3b56d88c86b62e950043c6c4
Build Timestamp: 2026-05-16T13:08:56.000000000Z
Build Features: asm_keccak,jemalloc,keccak_cache_global,min_debug_logs,otlp,otlp_logs
Build Profile: release
```
### What database version are you on?
```text
2026-05-16T21:37:40.907752Z INFO Initialized tracing, debug log directory: /home/martin/.cache/reth/logs/mainnet
Current database version: 2
Local database version: 2
```
### Which chain / network are you on?
mainnet
### What type of node are you running?
Archive (default)
### What prune config do you use, if any?
_No response_
### If you've built Reth from source, provide the full command you used
_No response_
### Code of Conduct
- [x] I agree to follow the Code of Conduct
关闭于 2026-06-14 2 条评论