Configuration baker keys on ubuntu

Hello

on ubuntu i have saved my baker keys i a folder home/gsm/baker

But i cant find the correct syntax for the mainnet.node.service

Environment=CONCORDIUM_NODE_BAKER_CREDENTIALS_FILE= ???

This is on your website. But it is 3.0.0, so please update.
[Service]

Environment=CONCORDIUM_NODE_BAKER_CREDENTIALS_FILE=%S/concordium-9dd9ca4d19e9393877d2c44b70f89acbfc0883c2243e5eeaecc0d1cd0503f478/baker-credentials.json
BindReadOnlyPaths=/home/user/concordium/baker-credentials.json:%S/concordium-9dd9ca4d19e9393877d2c44b70f89acbfc0883c2243e5eeaecc0d1cd0503f478/baker-credentials.json

1 Like

Found the solution :grinning: the filename under var/lib

Iā€™m glad you resolved your issue.
If someone else is in the same position, I will add, what I would have replied:

Iā€™m assuming that you are following this guide (otherwise, please do):
https://developer.concordium.software/en/mainnet/net/guides/run-node-ubuntu.html#baker-node-ubuntu
And you are at the following step:

  1. Add the following snippet to the opened file (the file is empty the first time you open it):

    [Service]

    Environment=CONCORDIUM_NODE_BAKER_CREDENTIALS_FILE=%S/concordium-9dd9ca4d19e9393877d2c44b70f89acbfc0883c2243e5eeaecc0d1cd0503f478/baker-credentials.json
    BindReadOnlyPaths=/home/user/concordium/baker-credentials.json:%S/concordium-9dd9ca4d19e9393877d2c44b70f89acbfc0883c2243e5eeaecc0d1cd0503f478/baker-credentials.json

Where you replace the path /home/user/concordium/baker-credentials.json with the actual location of the file.

In your case, assuming you saved your baker keys as baker-credentials.json, you should use:

[Service]

Environment=CONCORDIUM_NODE_BAKER_CREDENTIALS_FILE=%S/concordium-9dd9ca4d19e9393877d2c44b70f89acbfc0883c2243e5eeaecc0d1cd0503f478/baker-credentials.json
BindReadOnlyPaths=/home/gsm/baker/baker-credentials.json:%S/concordium-9dd9ca4d19e9393877d2c44b70f89acbfc0883c2243e5eeaecc0d1cd0503f478/baker-credentials.json