You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are running a Mina node on a version above 3.3.0 and need to roll back to 3.3.0 or below, you can convert the on-disk state in place using `mina-storage-converter`. This avoids a full rebootstrap from a remote S3 ledger bucket, which can save significant time.
8838
+
8839
+
## Debian/Ubuntu
8840
+
8841
+
### 1. Stop the Mina daemon
8842
+
8843
+
Ensure your Mina node is fully shut down before proceeding:
8844
+
8845
+
```sh
8846
+
mina client stop daemon
8847
+
```
8848
+
8849
+
Or however you normally stop your node process. Verify it is no longer running before continuing.
8850
+
8851
+
### 2. Install storage toolbox packages
8852
+
8853
+
Install the required toolbox packages that provide `mina-storage-converter` and the RocksDB scanners:
- `NODE_DIR` is the path to your node's config directory. This is usually `~/.mina-config` if you haven't set it explicitly.
8873
+
- `SOURCE_VERSION` is the version you are downgrading from.
8874
+
- `TARGET_VERSION` is the version you are downgrading to (e.g. `3.3.0`).
8875
+
8876
+
The `*` wildcard lets bash resolve the RocksDB version directory automatically, so you don't need to know which RocksDB version is bundled with each Mina release.
8877
+
8878
+
The tool will prompt for confirmation before making changes.
8879
+
8880
+
### 4. Install the target version
8881
+
8882
+
Install the older Mina package. For example, to install 3.3.0:
Your node should resume from the converted local state without needing to rebootstrap.
8897
+
8898
+
## Docker
8899
+
8900
+
On-disk state conversion is only possible if your `mina-config` directory is persisted as a volume outside the container (e.g. via `--mount "type=bind,source=$(pwd)/.mina-config,dst=/root/.mina-config"`).
8901
+
8902
+
:::caution
8903
+
8904
+
If your `mina-config` is not persisted outside of the container, there is no way to convert the on-disk state. You will need to rebootstrap from scratch after switching to the older image.
8905
+
8906
+
:::
8907
+
8908
+
Since the Docker image is a Debian/Ubuntu environment with the Mina Debian package installed, you can run the same conversion steps inside the container. The default `NODE_DIR` inside the container is `/root/.mina-config`.
8909
+
8910
+
### 1. Stop the running container
8911
+
8912
+
Assume your mina daemon container is running with name `mina-node`
8913
+
8914
+
```sh
8915
+
docker stop mina-node
8916
+
```
8917
+
8918
+
### 2. Install toolbox packages and run the converter
8919
+
8920
+
Use the current (newer) image to install the toolbox packages and run the conversion against your mounted `mina-config` volume:
0 commit comments