# Upgrade to 8.0.0 for Coincashew Users

**URL:** https://forum.cardano.org/t/upgrade-to-8-0-0-for-coincashew-users/117746
**Category:** Operate a Stake Pool
**Created:** [10 May 2023 09:26 UTC](https://forum.cardano.org/t/upgrade-to-8-0-0-for-coincashew-users/117746 "2023-05-10T09:26:27Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![jeremyisme](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/jeremyisme/32/54872_2.png) [@jeremyisme](https://forum.cardano.org/u/jeremyisme)
#### Post date: [10 May 2023 09:26 UTC](https://forum.cardano.org/t/upgrade-to-8-0-0-for-coincashew-users/117746/1 "2023-05-10T09:26:28Z")

</div>

Hi all,

Here’s an upgrade guide for 8.0.0 for Coincashew users. This isn’t essential yet, but it is the latest version now. The numbering has been updated to reflect the protocol version, i.e. version 8.X.X is protocol v8.

Credit to @Gaia-Stake-Pool as I copied his last one and just amended it.

Update Instructions:

Update and restart your instance:

`sudo apt-get update && sudo apt-get upgrade -y && sudo reboot`

Download and install the new branch of libsodium,

```auto
git clone https://github.com/input-output-hk/libsodium
cd libsodium
git checkout dbb48cc
./autogen.sh
./configure
make
make check
sudo make install

```

Download latest cardano-node git and checkout latest branch:

```auto
cd $HOME/git
git clone https://github.com/input-output-hk/cardano-node.git cardano-node2
cd cardano-node2/
git fetch --all --recurse-submodules --tags
git checkout tags/8.0.0

```

_Note: make sure you have ghc 8.10.7 and cabal 3.6.2.0 before proceeding._

_(Others have used 9.2.7 for ghc, so you can use that too)_

```auto
ghcup upgrade
ghcup install ghc 8.10.7
ghcup set ghc 8.10.7
ghcup install cabal 3.6.2.0
ghcup set cabal 3.6.2.0
cabal update
ghc --version
cabal --version

```

Build the node:

```auto
cd $HOME/git/cardano-node2
cabal configure -O0 -w ghc-8.10.7
echo -e "package cardano-crypto-praos\n flags: -external-libsodium-vrf" >> cabal.project.local
cabal build cardano-node cardano-cli

```

This upgrade takes about 20 minutes.

Check cardano-cli and cardano-node that the build was successful:

```auto
$(find $HOME/git/cardano-node2/dist-newstyle/build -type f -name "cardano-cli") version
$(find $HOME/git/cardano-node2/dist-newstyle/build -type f -name "cardano-node") version

```

If it shows 8.0.0, you can shut down the node and move the binaries to your bin:

`sudo systemctl stop cardano-node`

```auto
sudo cp $(find $HOME/git/cardano-node2/dist-newstyle/build -type f -name "cardano-cli") /usr/local/bin/cardano-cli
sudo cp $(find $HOME/git/cardano-node2/dist-newstyle/build -type f -name "cardano-node") /usr/local/bin/cardano-node

```

Check that successful version is reported:

```auto
cardano-node version
cardano-cli version

```

You also need to download the Conway Gensis file from here for your relevant network, e.g. pre-prod, mainnet, [Environments - The Cardano Operations Book](https://book.world.dev.cardano.org/environments.html)

And add

```auto
"ConwayGenesisFile": "conway-genesis.json",
"ConwayGenesisHash": "f28f1c1280ea0d32f8cd3143e268650d6c1a8e221522ce4a7d20d62fc09783e1", 

```

to your config.json file.

Now may be the time to setup p2p as well, as that is starting to be rolled out (on one relay only at the moment).

Then start your node.

Just be aware, it will replay the ledger, which can take an hour or two, so make sure you are doing this when you aren’t scheduled for a block any time soon.

`sudo systemctl start cardano-node`

Clean up:

```auto
cd $HOME/git/
rm -rf cardano-node-old
mv cardano-node cardano-node-old
mv cardano-node2 cardano-node

```

Monitor the progress by either using gliveview or journalctl:

`journalctl --unit=cardano-node --follow`

---

<div class="post-metadata">

### Author: ![brouwerQ](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/brouwerq/32/28193_2.png) [@brouwerQ](https://forum.cardano.org/u/brouwerQ)
#### Post date: [10 May 2023 13:32 UTC](https://forum.cardano.org/t/upgrade-to-8-0-0-for-coincashew-users/117746/2 "2023-05-10T13:32:29Z")

</div>

> [@jeremyisme](#):
>
> (There is a newer version of ghc 9.2.2 but it does not work for this version of Cardano Node, so do not upgrade to this version of ghc.)

Some like @ChrisSTR8 and @georgem1976 managed to build it with GHC 9.2.3 I thought, so this statement should be changed.

You also need to install a new version of libsodium (this commit: [GitHub - input-output-hk/libsodium at dbb48cce5429cb6585c9034f002568964f1ce567](https://github.com/input-output-hk/libsodium/tree/dbb48cce5429cb6585c9034f002568964f1ce567)), which this guide doesn’t mention…

---

<div class="post-metadata">

### Author: ![georgem1976](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/georgem1976/32/38471_2.png) [@georgem1976](https://forum.cardano.org/u/georgem1976)
#### Post date: [10 May 2023 13:47 UTC](https://forum.cardano.org/t/upgrade-to-8-0-0-for-coincashew-users/117746/3 "2023-05-10T13:47:24Z")

</div>

Definitely ghc 9.2.7 can build cardano-node 8.0.0:

```auto
$ cardano-node --version
cardano-node 8.0.0 - linux-x86_64 - ghc-9.2
git rev 69a117b7be3db0f4ce6d9fc5cd4c16a2a409dcb8

```

---

<div class="post-metadata">

### Author: ![jeremyisme](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/jeremyisme/32/54872_2.png) [@jeremyisme](https://forum.cardano.org/u/jeremyisme)
#### Post date: [10 May 2023 18:42 UTC](https://forum.cardano.org/t/upgrade-to-8-0-0-for-coincashew-users/117746/4 "2023-05-10T18:42:37Z")

</div>

yes, I think you’re right. I saw some others mention 9.2.7 as well.

The IOHK install.md still references 8.10.7 though. I’ve amended the guide above to note 9.2.7 and the libsodium install/update.  
 ![image](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/3X/0/e/0e4687caa65dee7b6a0d06389457e9d692845063.png)

Also good point about the libsodium.

```auto
git clone https://github.com/input-output-hk/libsodium
cd libsodium
git checkout dbb48cc
./autogen.sh
./configure
make
make check
sudo make install

```

---

<div class="post-metadata">

### Author: ![ikaruz](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/ikaruz/32/48719_2.png) [@ikaruz](https://forum.cardano.org/u/ikaruz)
#### Post date: [11 May 2023 15:19 UTC](https://forum.cardano.org/t/upgrade-to-8-0-0-for-coincashew-users/117746/5 "2023-05-11T15:19:06Z")

</div>

I personally think it’s way too cumbersome to build cardano-node (always was), like literally endless very specific (old) versions of the build tools and obscure branches. With nodes of other chains you can just upgrade all to latest do make install and get it over with, here endless fine tuning to get the build done.

8.0.0 didn’t build at first for me got “error: undefined reference to ‘crypto\_vrf\_ietfdraft13\_secretkeybytes’”, had to change the libsodium branch to dbb48cc to make it work.

---

<div class="post-metadata">

### Author: ![ChrisSTR8](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/chrisstr8/32/21506_2.png) [@ChrisSTR8](https://forum.cardano.org/u/ChrisSTR8)
#### Post date: [11 May 2023 16:02 UTC](https://forum.cardano.org/t/upgrade-to-8-0-0-for-coincashew-users/117746/6 "2023-05-11T16:02:50Z")

</div>

> [@brouwerQ](#):
>
> Some like @ChrisSTR8 and @georgem1976 managed to build it with GHC 9.2.3 I thought, so this statement should be changed.

I did actually build my 8.0.0 nodes with GHC 8.10.7 and Cabal 3.6.2.0 as per recommendation of IOG. I didn’t attempt to build with GHC 9.2.3 yet, even though I also heard it compiles under newer GHC versions. By reports of SPOs who compiled with newer GHC versions, it doesn’t seem the code is optimised for the newer GHC versions in a way that you see performance gains. So there don’t seem to be any benefit of compiling with newer GHC versions as of yet.

---

<div class="post-metadata">

### Author: ![jeremyisme](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/jeremyisme/32/54872_2.png) [@jeremyisme](https://forum.cardano.org/u/jeremyisme)
#### Post date: [11 May 2023 18:34 UTC](https://forum.cardano.org/t/upgrade-to-8-0-0-for-coincashew-users/117746/7 "2023-05-11T18:34:44Z")

</div>

Yes, I have built it on 8.10.7 and 9.2.7, and with and without dbb48cc. All on pre-prod. But it would be good if IOG update the build requirements for clarity.

---

<div class="post-metadata">

### Author: ![extramileit](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/extramileit/32/43861_2.png) [@extramileit](https://forum.cardano.org/u/extramileit)
#### Post date: [12 May 2023 20:53 UTC](https://forum.cardano.org/t/upgrade-to-8-0-0-for-coincashew-users/117746/8 "2023-05-12T20:53:52Z")

</div>

With P2P enabled for my relay, block replay is about 90% complete after 10 hours. In gLiveView I don’t see any peers. This relay was working well previously with P2P, so hopefully once the replay is done, the peers will connect again. But, this slow block replay is not ideal.

---

<div class="post-metadata">

### Author: ![jeremyisme](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/jeremyisme/32/54872_2.png) [@jeremyisme](https://forum.cardano.org/u/jeremyisme)
#### Post date: [12 May 2023 21:11 UTC](https://forum.cardano.org/t/upgrade-to-8-0-0-for-coincashew-users/117746/9 "2023-05-12T21:11:02Z")

</div>

Oh, yeah, that is taking a while! Are you keeping track of it on journalctl?

---

<div class="post-metadata">

### Author: ![extramileit](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/extramileit/32/43861_2.png) [@extramileit](https://forum.cardano.org/u/extramileit)
#### Post date: [12 May 2023 22:28 UTC](https://forum.cardano.org/t/upgrade-to-8-0-0-for-coincashew-users/117746/10 "2023-05-12T22:28:06Z")

</div>

Yep, I used journalctl to watch things… It finally finished and the peers connected, so it’s looking good.

I can’t say for sure the p2p was the reason for the slow block replay, but I have 2 other relays that are using static configuration, and they each took about 6-8 hours.

Thanks for posting the instructions in this thread. I absolutely appreciate the coincashew guide!

---

<div class="post-metadata">

### Author: ![hanswurst](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/hanswurst/32/21722_2.png) [@hanswurst](https://forum.cardano.org/u/hanswurst)
#### Post date: [13 May 2023 14:32 UTC](https://forum.cardano.org/t/upgrade-to-8-0-0-for-coincashew-users/117746/11 "2023-05-13T14:32:15Z")

</div>

Thank your for your summary. Also used ghc 9.2.7 without problems 🙂

---

<div class="post-metadata">

### Author: ![Patrwx](https://avatars.discourse-cdn.com/v4/letter/p/c6cbf5/32.png) [@Patrwx](https://forum.cardano.org/u/Patrwx)
#### Post date: [16 May 2023 07:18 UTC](https://forum.cardano.org/t/upgrade-to-8-0-0-for-coincashew-users/117746/12 "2023-05-16T07:18:57Z")

</div>

I confirm too it works with ghc 9.2.7!  
Simply plan sufficiently ahead (hours!) of your next block to do the upgrade!

---

<div class="post-metadata">

### Author: ![Hareem\_Adderley](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/hareem_adderley/32/51210_2.png) [@Hareem\_Adderley](https://forum.cardano.org/u/Hareem_Adderley)
#### Post date: [18 May 2023 12:26 UTC](https://forum.cardano.org/t/upgrade-to-8-0-0-for-coincashew-users/117746/13 "2023-05-18T12:26:15Z")

</div>

Docker solves this issue and I appreciate them having an official Docker image, even though there is much more to be desired there. Like an official ARM image.

But I feel your pain on this one. This problem is magnified when it comes to dealing with different system architectures.

---

<div class="post-metadata">

### Author: ![kikiriki](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/kikiriki/32/66999_2.png) [@kikiriki](https://forum.cardano.org/u/kikiriki)
#### Post date: [30 May 2023 06:53 UTC](https://forum.cardano.org/t/upgrade-to-8-0-0-for-coincashew-users/117746/14 "2023-05-30T06:53:07Z")

</div>

Thanks for the nice tutorial.

Any idea why this would happen:

```auto
Conway related : Wrong genesis file: the actual hash is "95e0a3478f0cde6071469a5aa0426e79e9a966c4334384a2fe0f4792b8cc2512", but the expected genesis hash given in the node configuration file is "f28f1c1280ea0d32f8cd3143e268650d6c1a8e221522ce4a7d20d62fc09783e1"

```

On one node 8.0.0 is running without a problem. On another I get this wrong genesis hash error.

---

<div class="post-metadata">

### Author: ![jf3110](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/jf3110/32/32352_2.png) [@jf3110](https://forum.cardano.org/u/jf3110)
#### Post date: [30 May 2023 09:04 UTC](https://forum.cardano.org/t/upgrade-to-8-0-0-for-coincashew-users/117746/15 "2023-05-30T09:04:35Z")

</div>

Looks like your conway-genesis.json is different on the node with the hash error.

---

<div class="post-metadata">

### Author: ![kikiriki](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/kikiriki/32/66999_2.png) [@kikiriki](https://forum.cardano.org/u/kikiriki)
#### Post date: [30 May 2023 11:36 UTC](https://forum.cardano.org/t/upgrade-to-8-0-0-for-coincashew-users/117746/16 "2023-05-30T11:36:41Z")

</div>

The configs appeared to be identical. But they were not. Three hours later I found this, just an empty line in the config at the end:

conway-genesis.json

```auto
{
  "genDelegs": {}
}

(there was an extra empty line here... :( )

```

Thanks for the hint @jf3110

---

<div class="post-metadata">

### Author: ![franc](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/franc/32/67070_2.png) [@franc](https://forum.cardano.org/u/franc)
#### Post date: [1 June 2023 20:48 UTC](https://forum.cardano.org/t/upgrade-to-8-0-0-for-coincashew-users/117746/17 "2023-06-01T20:48:02Z")

</div>

Hi, can anyone confirm that memory ramps up and 24GB is completely necessary for this upgrade?

---

<div class="post-metadata">

### Author: ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)
#### Post date: [2 June 2023 06:18 UTC](https://forum.cardano.org/t/upgrade-to-8-0-0-for-coincashew-users/117746/18 "2023-06-02T06:18:02Z")

</div>

> [@franc](#):
>
> e confirm that memory ramps

nope, its not necesarry as far I know… at least not 24G

---

<div class="post-metadata">

### Author: ![jeremyisme](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/jeremyisme/32/54872_2.png) [@jeremyisme](https://forum.cardano.org/u/jeremyisme)
#### Post date: [11 June 2023 23:14 UTC](https://forum.cardano.org/t/upgrade-to-8-0-0-for-coincashew-users/117746/20 "2023-06-11T23:14:26Z")

</div>

> [@jeremyisme](#):
>
> `cabal update`

Have you run the cabal update command after you cloned the github repo? It needs to be done before you build.

---

<div class="post-metadata">

### Author: ![Alexd1985](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/alexd1985/32/23759_2.png) [@Alexd1985](https://forum.cardano.org/u/Alexd1985)
#### Post date: [12 June 2023 03:36 UTC](https://forum.cardano.org/t/upgrade-to-8-0-0-for-coincashew-users/117746/21 "2023-06-12T03:36:13Z")

</div>

Did u install new libsodium version?

Download and install the new branch of libsodium,

```auto
git clone https://github.com/input-output-hk/libsodium
cd libsodium
git checkout dbb48cc
./autogen.sh
./configure
make
make check
sudo make install

```

then try again to build the node

[Next page](https://forum.cardano.org/t/upgrade-to-8-0-0-for-coincashew-users/117746.md?page=2)
