# Updating stake pool school Config files

**URL:** <https://forum.cardano.org/t/updating-stake-pool-school-config-files/37749>\
**Category:** Operate a Stake Pool\
**Created:** [6 August 2020 22:52 UTC](https://forum.cardano.org/t/updating-stake-pool-school-config-files/37749 "2020-08-06T22:52:25Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![maliky](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/maliky/32/16193_2.png) [@maliky](https://forum.cardano.org/u/maliky)\
**Post date:** [6 August 2020 22:52 UTC](https://forum.cardano.org/t/updating-stake-pool-school-config-files/37749/1 "2020-08-06T22:52:25Z")

</div>

There is a discrepancy between references to config files in the stake pool school.

The link given in "[Get configuration files](https://cardano-foundation.gitbook.io/stake-pool-course/stake-pool-guide/getting-started/getconfigfiles_and_connect)’ points to

```auto
wget https:...testnet-config.json
wget https:...testnet-shelley-genesis.json
wget https:...testnet-byron-genesis.json
wget https:...testnet-topology.json

```

while [start-your-node](https://cardano-foundation.gitbook.io/stake-pool-course/stake-pool-guide/start_your_nodes/start-your-node) refer to `shelley_testnet-topology.json` and `shelley_testnet-config.json`

They don’t seem to have the same content since the first starts a node with `CardanoProtocol` and the later with `ShelleyProtocol`

Also trying to copy the url from the screen cast I get a 404 error for the files

```auto
wget https://hydra.iohk.io/job/Cardano/cardano-node/cardano-deployment/latest-finished/download/1/shelley_testnet-config.json
wget https://hydra.iohk.io/job/Cardano/cardano-node/cardano-deployment/latest-finished/download/1/shelley_testnet-shelley-genesis.json
wget https://hydra.iohk.io/job/Cardano/cardano-node/cardano-deployment/latest-finished/download/1/testnet-byron-genesis.json
wget https://hydra.iohk.io/job/Cardano/cardano-node/cardano-deployment/latest-finished/download/1/shelley_testnet-topology.json

```

but in the end, it does not seem to make a big difference. The node starts and seem to sync.

Another difference, I notice, is the node version. The screen cast use 1.15 while I use 1.18 but since I did not follow the first tuto on node installation with AWS I can’t say if 1.15 was the recommanded version to install. Still, I’de rather stick to the latest.

---

<div class="post-metadata">

**Author:** ![adatainment](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/adatainment/32/81481_2.png) [@adatainment](https://forum.cardano.org/u/adatainment)\
**Post date:** [7 August 2020 06:28 UTC](https://forum.cardano.org/t/updating-stake-pool-school-config-files/37749/2 "2020-08-07T06:28:22Z")

</div>

Hello @maliky,

if you have found a solution to your problem, it would be very helpful for many others to post it here rather than withdrawing you posting.

Thank you very much for consideration.

---

<div class="post-metadata">

**Author:** ![maliky](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/maliky/32/16193_2.png) [@maliky](https://forum.cardano.org/u/maliky)\
**Post date:** [7 August 2020 10:47 UTC](https://forum.cardano.org/t/updating-stake-pool-school-config-files/37749/3 "2020-08-07T10:47:18Z")

</div>

It’s not so much that I had found a solution to the problem, but rather that I had found that there were no real problem.

---

<div class="post-metadata">

**Author:** ![TheAndy](https://avatars.discourse-cdn.com/v4/letter/t/6bbea6/32.png) [@TheAndy](https://forum.cardano.org/u/TheAndy)\
**Post date:** [7 August 2020 16:11 UTC](https://forum.cardano.org/t/updating-stake-pool-school-config-files/37749/4 "2020-08-07T16:11:53Z")

</div>

The command lines given in [Get Configuration Files](https://cardano-foundation.gitbook.io/stake-pool-course/stake-pool-guide/getting-started/getconfigfiles_and_connect) are

```auto
wget https:...testnet-config.json
wget https:...testnet-shelley-genesis.json
wget https:...testnet-byron-genesis.json
wget https:...testnet-topology.json

```

Then we move on to [Start your node](https://cardano-foundation.gitbook.io/stake-pool-course/stake-pool-guide/start_your_nodes/start-your-node) where the commands given are

```auto
 cardano-node run \
 --topology shelley_testnet-topology.json \
 --database-path db \
 --socket-path db/node.socket \
 --host-addr x.x.x.x \
 --port 3001 \
 --config shelley_testnet-config.json

```

There is a discrepancy between the downloaded files and the files used for topology and config. The commands as given do not work, as they reference files that do not exist.

I changed the topology and config FILEPATHs to instead reference the files downloaded which gives (my ip is excluded for this post)

```auto
cardano-node run \
 --topology testnet-topology.json \
 --database-path db \
 --socket-path db/node.socket \
 --host-addr x.x.x.x \
 --port 3001 \
 --config testnet-config.json

```

---

<div class="post-metadata">

**Author:** ![maliky](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/maliky/32/16193_2.png) [@maliky](https://forum.cardano.org/u/maliky)\
**Post date:** [7 August 2020 16:52 UTC](https://forum.cardano.org/t/updating-stake-pool-school-config-files/37749/5 "2020-08-07T16:52:00Z")

</div>

I don’t see much difference between mainnet and testnet config files.  
Below are a few diff which could help

```auto
--- ...Cardano/config/mainnet-topology.json	
+++ ...Cardano/config/testnet-topology.json	
@@ -1,7 +1,7 @@
 {
   "Producers": [
     {
- "addr": "relays-new.cardano-mainnet.iohk.io",
+ "addr": "relays-new.cardano-testnet.iohkdev.io",
       "port": 3001,
       "valency": 2
     }

```

and

```auto
--- ...Cardano/config/mainnet-config.json	
+++ ...Cardano/config/testnet-config.json	
@@ -1,16 +1,16 @@
 {
   "ApplicationName": "cardano-sl",
- "ApplicationVersion": 1,
- "ByronGenesisFile": "mainnet-byron-genesis.json",
- "ByronGenesisHash": "5f20df933584822601f9e3f8c024eb5eb252fe8cefb24d1317dc3d432e940ebb",
+ "ApplicationVersion": 0,
+ "ByronGenesisFile": "testnet-byron-genesis.json",
+ "ByronGenesisHash": "96fceff972c2c06bd3bb5243c39215333be6d56aaf4823073dca31afe5038471",
   "LastKnownBlockVersion-Alt": 0,
   "LastKnownBlockVersion-Major": 2,
   "LastKnownBlockVersion-Minor": 0,
   "MaxKnownMajorProtocolVersion": 2,
   "Protocol": "Cardano",
- "RequiresNetworkMagic": "RequiresNoMagic",
- "ShelleyGenesisFile": "mainnet-shelley-genesis.json",
- "ShelleyGenesisHash": "1a3be38bcbb7911969283716ad7aa550250226b76a61fc51cc9a9a35d9276d81",
+ "RequiresNetworkMagic": "RequiresMagic",
+ "ShelleyGenesisFile": "testnet-shelley-genesis.json",
+ "ShelleyGenesisHash": "849a1764f152e1b09c89c0dfdbcbdd38d711d1fec2db5dfa0f87cf2737a0eaf4",
   "TraceBlockFetchClient": false,
   "TraceBlockFetchDecisions": false,
   "TraceBlockFetchProtocol": false,

```

I’m running node 1.18

---

<div class="post-metadata">

**Author:** ![dszone](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/dszone/32/10149_2.png) [@dszone](https://forum.cardano.org/u/dszone)\
**Post date:** [7 August 2020 22:06 UTC](https://forum.cardano.org/t/updating-stake-pool-school-config-files/37749/6 "2020-08-07T22:06:53Z")

</div>

Thanks Andy!

When trying to follow the course you were correct in that the “start your node” section will not work as the command references files that do not exist. I tried your suggestion above and found that it worked!

cardano-node run   
–topology testnet-topology.json   
–database-path db   
–socket-path db/node.socket   
–host-addr x.x.x.x   
–port 3001   
–config testnet-config.json

---

<div class="post-metadata">

**Author:** ![dszone](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/dszone/32/10149_2.png) [@dszone](https://forum.cardano.org/u/dszone)\
**Post date:** [7 August 2020 22:48 UTC](https://forum.cardano.org/t/updating-stake-pool-school-config-files/37749/7 "2020-08-07T22:48:10Z")

</div>

So now that my node is up:

Its saying that I’m on both the Byron and Shelley release at the top of the screen in LiveView and it is connected to the blockchain.

I’m having trouble running cardano-cli; cardano-cli shelley now. Unable to generate keys…

Will the school be updating the course? I might need to start over.

---

<div class="post-metadata">

**Author:** ![TheAndy](https://avatars.discourse-cdn.com/v4/letter/t/6bbea6/32.png) [@TheAndy](https://forum.cardano.org/u/TheAndy)\
**Post date:** [8 August 2020 12:37 UTC](https://forum.cardano.org/t/updating-stake-pool-school-config-files/37749/8 "2020-08-08T12:37:24Z")

</div>

Yes, after starting the node for the first time all following commands get response  
“cardano-node: error while loading shared libraries: libsodium.so.23: cannot open shared object file: No such file or directory”

---

<div class="post-metadata">

**Author:** ![maliky](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/maliky/32/16193_2.png) [@maliky](https://forum.cardano.org/u/maliky)\
**Post date:** [8 August 2020 14:39 UTC](https://forum.cardano.org/t/updating-stake-pool-school-config-files/37749/9 "2020-08-08T14:39:08Z")

</div>

This may be a different issue:  
Did you build and install libsodium

```auto
  cd ~; mkdir git ; cd git;
  git clone https://github.com/input-output-hk/libsodium
  cd libsodium
  git checkout 66f017f1
  ./autogen.sh
  ./configure
  make
  sudo make install

```

---

<div class="post-metadata">

**Author:** ![TheAndy](https://avatars.discourse-cdn.com/v4/letter/t/6bbea6/32.png) [@TheAndy](https://forum.cardano.org/u/TheAndy)\
**Post date:** [8 August 2020 16:37 UTC](https://forum.cardano.org/t/updating-stake-pool-school-config-files/37749/10 "2020-08-08T16:37:34Z")

</div>

Yes, that was done before.  
I don’t get that message before running the node. Only after the node has been run I start getting it. After starting then stopping the node a couple times I can no longer start the node. Just keep getting that message.

---

<div class="post-metadata">

**Author:** ![conrad](https://avatars.discourse-cdn.com/v4/letter/c/ebca7d/32.png) [@conrad](https://forum.cardano.org/u/conrad)\
**Post date:** [8 August 2020 21:17 UTC](https://forum.cardano.org/t/updating-stake-pool-school-config-files/37749/11 "2020-08-08T21:17:32Z")

</div>

same with me, after rebooting  
I did the steps 9 and 10 of the libsodium installation:  
export LD\_LIBRARY\_PATH="/usr/local/lib:$LD\_LIBRARY\_PATH"  
export PKG\_CONFIG\_PATH="/usr/local/lib/pkgconfig:$PKG\_CONFIG\_PATH"  
inside libsodium directory  
and than the cardano-node command worked  
but don’t know how to fix it permanently

---

<div class="post-metadata">

**Author:** ![ADAfrog](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/adafrog/32/16303_2.png) [@ADAfrog](https://forum.cardano.org/u/ADAfrog)\
**Post date:** [8 August 2020 21:27 UTC](https://forum.cardano.org/t/updating-stake-pool-school-config-files/37749/12 "2020-08-08T21:27:44Z")

</div>

Just add this to your .bashrc (and then source .bashrc to take effect same session)

export LD\_LIBRARY\_PATH="/usr/local/lib:$LD\_LIBRARY\_PATH"  
export PKG\_CONFIG\_PATH="/usr/local/lib/pkgconfig:$PKG\_CONFIG\_PATH"

---

<div class="post-metadata">

**Author:** ![ADAfrog](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/adafrog/32/16303_2.png) [@ADAfrog](https://forum.cardano.org/u/ADAfrog)\
**Post date:** [8 August 2020 21:34 UTC](https://forum.cardano.org/t/updating-stake-pool-school-config-files/37749/13 "2020-08-08T21:34:22Z")

</div>

can you try adding this to your .bashrc and source it:  
export LD\_LIBRARY\_PATH="/usr/local/lib:$LD\_LIBRARY\_PATH"  
export PKG\_CONFIG\_PATH="/usr/local/lib/pkgconfig:$PKG\_CONFIG\_PATH"

and within your .bash\_profile add:  
test -f ~/.bashrc && source ~/.bashrc

---

<div class="post-metadata">

**Author:** ![TheAndy](https://avatars.discourse-cdn.com/v4/letter/t/6bbea6/32.png) [@TheAndy](https://forum.cardano.org/u/TheAndy)\
**Post date:** [8 August 2020 23:08 UTC](https://forum.cardano.org/t/updating-stake-pool-school-config-files/37749/14 "2020-08-08T23:08:10Z")

</div>

Thanks ADAfrog!

Here is how I implemented that solution.

```auto
cd
nano .bashrc

```

scroll to bottom and paste these two lines

```auto
export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH"

```

Press control-x to exit  
Press y to save  
Press enter to confirm save

```auto
nano .bash_profile

```

scroll to the bottom and paste

```auto
test -f ~/.bashrc && source ~/.bashrc

```

Press control-x to exit  
Press y to save  
Press enter to confirm save

```auto
sudo reboot

```

Reboot command will restart your machine.  
Close and reopen your terminal window.  
Wait a couple minutes then log back into your machine.

I could be wrong about the implementation, though. I’m a noob myself.

---

<div class="post-metadata">

**Author:** ![Fernando](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/fernando/32/20955_2.png) [@Fernando](https://forum.cardano.org/u/Fernando)\
**Post date:** [10 August 2020 19:23 UTC](https://forum.cardano.org/t/updating-stake-pool-school-config-files/37749/15 "2020-08-10T19:23:19Z")

</div>

Thanks both! Thats work like a charm!

---

<div class="post-metadata">

**Author:** ![dszone](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/dszone/32/10149_2.png) [@dszone](https://forum.cardano.org/u/dszone)\
**Post date:** [11 August 2020 13:41 UTC](https://forum.cardano.org/t/updating-stake-pool-school-config-files/37749/16 "2020-08-11T13:41:35Z")

</div>

Configure Topology Files for Relay and Block Producing Nodes:

![image](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/5/4/54b76f215ab03f8484f0aad5c5d9771f0975afa7.png)

This section script will not work. I used the main net version instead:

```auto
wget https://hydra.iohk.io/job/Cardano/cardano-node/cardano-deployment/latest-finished/download/1/mainnet-config.json
wget https://hydra.iohk.io/job/Cardano/cardano-node/cardano-deployment/latest-finished/download/1/mainnet-byron-genesis.json
wget https://hydra.iohk.io/job/Cardano/cardano-node/cardano-deployment/latest-finished/download/1/mainnet-shelley-genesis.json
wget https://hydra.iohk.io/job/Cardano/cardano-node/cardano-deployment/latest-finished/download/1/mainnet-topology.json

```

---

<div class="post-metadata">

**Author:** ![ADAfrog](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/adafrog/32/16303_2.png) [@ADAfrog](https://forum.cardano.org/u/ADAfrog)\
**Post date:** [11 August 2020 15:42 UTC](https://forum.cardano.org/t/updating-stake-pool-school-config-files/37749/17 "2020-08-11T15:42:34Z")

</div>

change “sudo reboot” to “source .bash\_profile”

nice work!

---

<div class="post-metadata">

**Author:** ![dszone](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/dszone/32/10149_2.png) [@dszone](https://forum.cardano.org/u/dszone)\
**Post date:** [11 August 2020 23:11 UTC](https://forum.cardano.org/t/updating-stake-pool-school-config-files/37749/18 "2020-08-11T23:11:16Z")

</div>

Anyone get this error on node start up?

[ip-172-3:cardano.node.release:Notice:5] [2020-08-11 23:09:01.75 UTC] CardanoProtocol  
FsError {fsErrorType = FsInsufficientPermissions, fsErrorPath = /db, fsErrorString = “Permission denied”, fsErrorNo = Just (Errno 13), fsErrorStack = [(“ioToFsError”,SrcLoc {srcLocPackage = “ouroboros-consensus-0.1.0.0-inplace”, srcLocModule = “[Ouroboros.Consensus.Storage.FS.IO](http://Ouroboros.Consensus.Storage.FS.IO)”, srcLocFile = “src/Ouroboros/Consensus/Storage/FS/IO.hs”, srcLocStartLine = 88, srcLocStartCol = 41, srcLocEndLine = 88, srcLocEndCol = 68}),(“handleError”,SrcLoc {srcLocPackage = “ouroboros-consensus-0.1.0.0-inplace”, srcLocModule = “[Ouroboros.Consensus.Storage.FS.IO](http://Ouroboros.Consensus.Storage.FS.IO)”, srcLocFile = “src/Ouroboros/Consensus/Storage/FS/IO.hs”, srcLocStartLine = 84, srcLocStartCol = 23, srcLocEndLine = 84, srcLocEndCol = 38}),(“rethrowFsError”,SrcLoc {srcLocPackage = “ouroboros-consensus-0.1.0.0-inplace”, srcLocModule = “[Ouroboros.Consensus.Storage.FS.IO](http://Ouroboros.Consensus.Storage.FS.IO)”, srcLocFile = “src/Ouroboros/Consensus/Storage/FS/IO.hs”, srcLocStartLine = 65, srcLocStartCol = 54, srcLocEndLine = 65, srcLocEndCol = 71}),(“createDirectoryIfMissing”,SrcLoc {srcLocPackage = “ouroboros-consensus-0.1.0.0-inplace”, srcLocModule = “Ouroboros.Consensus.Storage.FS.API”, srcLocFile = “src/Ouroboros/Consensus/Storage/FS/API.hs”, srcLocStartLine = 123, srcLocStartCol = 5, srcLocEndLine = 123, srcLocEndCol = 29})], fsLimitation = False}

cardano-node: FsInsufficientPermissions for /db: Permission denied at CallStack (from HasCallStack):  
ioToFsError, called at src/Ouroboros/Consensus/Storage/FS/IO.hs:88:41 in ouroboros-consensus-0.1.0.0-inplace:Ouroboros.Consensus.Storage.FS.IO  
handleError, called at src/Ouroboros/Consensus/Storage/FS/IO.hs:84:23 in ouroboros-consensus-0.1.0.0-inplace:Ouroboros.Consensus.Storage.FS.IO  
rethrowFsError, called at src/Ouroboros/Consensus/Storage/FS/IO.hs:65:54 in ouroboros-consensus-0.1.0.0-inplace:Ouroboros.Consensus.Storage.FS.IO  
createDirectoryIfMissing, called at src/Ouroboros/Consensus/Storage/FS/API.hs:123:5 in ouroboros-consensus-0.1.0.0-inplace:Ouroboros.Consensus.Storage.FS.API[ec2-user

---

<div class="post-metadata">

**Author:** ![maliky](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/maliky/32/16193_2.png) [@maliky](https://forum.cardano.org/u/maliky)\
**Post date:** [12 August 2020 08:45 UTC](https://forum.cardano.org/t/updating-stake-pool-school-config-files/37749/19 "2020-08-12T08:45:46Z")

</div>

Did you check that the user you run the cardano-node has write to `/db` ? maybe instead of `/db` you should user `~/db` or `~/node/db`

---

<div class="post-metadata">

**Author:** ![dszone](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/dszone/32/10149_2.png) [@dszone](https://forum.cardano.org/u/dszone)\
**Post date:** [12 August 2020 18:03 UTC](https://forum.cardano.org/t/updating-stake-pool-school-config-files/37749/20 "2020-08-12T18:03:36Z")

</div>

Thanks! it was because I was mixing mainnet files with testnet. Is there a tutorial for that is up to date for creating a mainnet stake pool?

[Next page](https://forum.cardano.org/t/updating-stake-pool-school-config-files/37749.md?page=2)
