Add guide for downgrading Mina node to older versions.#1183
Open
Add guide for downgrading Mina node to older versions.#1183
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
glyh
commented
Apr 13, 2026
| 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 |
Member
Author
There was a problem hiding this comment.
I'm not very sure how is it packaged, exactly, this is left to reviewer to confirm.
glyh
commented
Apr 13, 2026
| --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" |
Member
Author
There was a problem hiding this comment.
I'm not very sure how is it packaged, exactly, this is left to reviewer to confirm.
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>
5cb19e4 to
361b48c
Compare
dkijania
reviewed
Apr 13, 2026
| - on-disk state | ||
| --- | ||
|
|
||
| # Downgrading to Older Versions |
Member
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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