@@ -7,30 +7,46 @@ Export the environment variables:
77``` bash
88export MITHRIL_VM=** MITHRIL_VM**
99export CARDANO_NETWORK=** CARDANO_NETWORK**
10- export MITHRIL_DISTRIBUTION_LINUX_PKG =** MITHRIL_DISTRIBUTION_LINUX_PKG **
10+ export MITHRIL_DISTRIBUTION =** MITHRIL_DISTRIBUTION **
1111```
1212
1313Here is an example for the ` release-mainnet ` network:
1414
1515``` bash
1616export MITHRIL_VM=aggregator.release-mainnet.api.mithril.network
1717export CARDANO_NETWORK=mainnet
18- export MITHRIL_DISTRIBUTION_LINUX_PKG=https://github.com/input-output-hk/mithril/releases/download/2342.0/mithril-2342.0-linux-x64.tar.gz
18+ export MITHRIL_DISTRIBUTION=latest
1919```
2020
21- ## Make a backup of the aggregator database
21+ ## Connect to the VM
2222
2323Connect to the aggregator VM:
2424
2525``` bash
2626ssh curry@$MITHRIL_VM
2727```
2828
29- Once connected to the aggregator VM, export the environment variables:
29+ ## Stop the aggregator
30+
31+ Stop the aggregator container:
32+
33+ ``` bash
34+ docker stop mithril-aggregator
35+ ```
36+
37+ ## Make a backup of the aggregator database
38+
39+ Export the environment variables:
3040
3141``` bash
3242export CARDANO_NETWORK=** CARDANO_NETWORK**
33- export MITHRIL_DISTRIBUTION_LINUX_PKG=** MITHRIL_DISTRIBUTION_LINUX_PKG**
43+ export MITHRIL_DISTRIBUTION=** MITHRIL_DISTRIBUTION**
44+ ```
45+
46+ Truncate WAL and SHM files:
47+
48+ ``` bash
49+ sqlite3 /home/curry/data/$CARDANO_NETWORK /mithril-aggregator/mithril/stores/aggregator.sqlite3 " PRAGMA wal_checkpoint(TRUNCATE);"
3450```
3551
3652And copy the SQLite database file ` aggregator.sqlite3 ` :
@@ -60,19 +76,7 @@ wget https://raw.githubusercontent.com/input-output-hk/mithril/main/docs/runbook
6076Download the mithril pre-compiled binaries package:
6177
6278``` bash
63- wget $MITHRIL_DISTRIBUTION_LINUX_PKG -O mithril-bin.tar.gz
64- ```
65-
66- Unpack the mithril aggregator binary:
67-
68- ``` bash
69- tar xzf mithril-bin.tar.gz mithril-aggregator
70- ```
71-
72- Make mithril aggregator binary executable:
73-
74- ``` bash
75- chmod u+x mithril-aggregator
79+ curl --proto ' =https' --tlsv1.2 -sSf https://raw.githubusercontent.com/input-output-hk/mithril/refs/heads/main/mithril-install.sh | sh -s -- -c mithril-aggregator -d $MITHRIL_DISTRIBUTION -p $( pwd)
7680```
7781
7882Make sure you are running the expected version of the aggregator:
@@ -81,14 +85,6 @@ Make sure you are running the expected version of the aggregator:
8185./mithril-aggregator --version
8286```
8387
84- ## Stop the aggregator
85-
86- Stop the aggregator container:
87-
88- ``` bash
89- docker stop mithril-aggregator
90- ```
91-
9288## Run the migration
9389
9490Once connected to the aggregator container, recompute the certificates hashes:
0 commit comments