Skip to content

Commit

Permalink
Standardize default values for signer environment file path and `DATA…
Browse files Browse the repository at this point in the history
…_STORES_DIRECTORY`
  • Loading branch information
dlachaume committed Nov 23, 2023
1 parent 2453deb commit 617e286
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/website/blog/2022-09-14-sqlite-stores.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ $> ls -1F ../target/release/mithril-signer*

### Running the migration

The first step is to stop the running Mithril node if any. The `mithril-signer-migrate` executable can perform the migration automatically once you know where your actual JSON files are located. Have a look in your configuration file (default `/opt/mithril/mithril-signer/service.env`), check the value associated with the `DATA_STORES_DIRECTORY` key (default to `/opt/mithril/mithril-signer/stores`) and copy the path indicated here. Copy this path after the `--db-dir` option on the following command line:
The first step is to stop the running Mithril node if any. The `mithril-signer-migrate` executable can perform the migration automatically once you know where your actual JSON files are located. Have a look in your configuration file (default `/opt/mithril/mithril-signer.env`), check the value associated with the `DATA_STORES_DIRECTORY` key (default to `/opt/mithril/stores`) and copy the path indicated here. Copy this path after the `--db-dir` option on the following command line:

```
$> ./mithril-signer-migrate automatic --db-dir /paste/the/data/stores/directory/here
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ The data stores of the node need to be updated by running the following command:

```bash
# The path to your data stores directory, which defaults to:
DATA_STORES_DIRECTORY=/opt/mithril/mithril-signer/stores
DATA_STORES_DIRECTORY=/opt/mithril/stores

# Run this command to upgrade your stores:
sqlite3 ${DATA_STORES_DIRECTORY}/signer.sqlite3 "UPDATE protocol_initializer SET value = json_object('stm_initializer', json(value), 'kes_signature', null) WHERE json_extract(value, '$.stm_initializer') IS NULL;"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ sudo mv mithril-signer /opt/mithril
* `User=cardano`:
Replace this value with the correct user. We assume that the user used to run the **Cardano node** is `cardano`. The **Mithril signer** must imperatively run with the same user.

* In the `/opt/mithril/mithril-signer/service.env` env file:
* In the `/opt/mithril/mithril-signer.env` env file:
* `KES_SECRET_KEY_PATH=/cardano/keys/kes.skey`: replace `/cardano/keys/kes.skey` with the path to your Cardano `KES secret key` file
* `OPERATIONAL_CERTIFICATE_PATH=/cardano/cert/opcert.cert`: replace `/cardano/cert/opcert.cert` with the path to your Cardano `operational certificate` file
* `DB_DIRECTORY=/cardano/db`: replace `/cardano/db` with the path to the database folder of the **Cardano node** (the one in `--database-path`)
Expand Down

0 comments on commit 617e286

Please sign in to comment.