Add guide for downgrading Mina node to older versions.#1183
Add guide for downgrading Mina node to older versions.#1183dkijania merged 3 commits intolyh/fix-doc-build-warningsfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| Install the required toolbox packages that provide `mina-storage-converter` and the RocksDB scanners: | ||
|
|
||
| ```sh | ||
| sudo apt-get install -y mina-daemon-storage-toolbox mina-daemon-recovery-storage-toolbox |
There was a problem hiding this comment.
I'm not very sure how is it packaged, exactly, this is left to reviewer to confirm.
There was a problem hiding this comment.
I think it's good, it will pull newest versions for both of them
| --entrypoint bash \ | ||
| --mount "type=bind,source=$(pwd)/.mina-config,dst=/root/.mina-config" \ | ||
| minaprotocol/mina-daemon:${SOURCE_VERSION}-bullseye-mainnet \ | ||
| -c "apt-get update && apt-get install -y mina-daemon-storage-toolbox mina-daemon-recovery-storage-toolbox && mina-storage-converter --node-dir /root/.mina-config --current-scanner /usr/lib/mina/storage/*/${SOURCE_VERSION}/mina-rocksdb-scanner --stable-scanner /usr/lib/mina/storage/*/${TARGET_VERSION}/mina-rocksdb-scanner" |
There was a problem hiding this comment.
I'm not very sure how is it packaged, exactly, this is left to reviewer to confirm.
5cb19e4 to
361b48c
Compare
| - on-disk state | ||
| --- | ||
|
|
||
| # Downgrading to Older Versions |
There was a problem hiding this comment.
I would add some pre section for this section explaining why we ever need to rollback to previous storage version. Maybe add some example of issue was reported. Another idea would be to leave this document as it is but add another docs for known issues, where we put the issue BP were experiencing and link to this doc which should be a solution for known issues
Covers converting on-disk state via mina-storage-converter to avoid rebootstrapping, with step-by-step instructions for both Debian/Ubuntu and Docker setups. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
3a9be3f to
35f9ba9
Compare
NOTE
We haven't actually relased a breaking version until now, I think. It'd be better we test the instructions in this doc work right after the release, so to update doc accordingly.
Summary
mina-storage-converter, avoiding a full rebootstrap from the remote S3 ledger bucketDetails
Node operators upgrading past 3.3.0 may later need to roll back. Without this guide, the only option is a time-consuming full rebootstrap. The
mina-storage-convertertool can convert the local RocksDB state between versions, but the process is undocumented — this page fills that gap.Key design choices in the guide:
*wildcard for the RocksDB version path so operators don't need to know which RocksDB version is bundled with each Mina releaseNODE_DIR,SOURCE_VERSION,TARGET_VERSION) consistently across Debian and Docker sectionsdocker run ... -c "..."one-liner that installs toolbox packages and runs the converter in one shotmina-configis not persisted outside the container