Aeson exception: Error in $: key "Protocol" not found

Anyone could help me ?
cardano-node run
> --topology relay/shelley_testnet-topology.json
> --database-path relay/db
> --socket-path relay/db/node.socket
> --host-addr
> --port 3001
> --config relay/shelley_testnet-config.json
AesonException “Error in $: key “Protocol” not found”

cardano-node: Aeson exception:
Error in $: key "Protocol" not found

This is what I did to install:

sudo apt-get update -y
sudo apt-get install build-essential pkg-config libffi-dev libgmp-dev libssl-dev libtinfo-dev libsystemd-dev zlib1g-dev make g++ tmux git jq wget libncursesw5 -y

sudo apt install libsodium-dev pkg-config

tar -xf cabal-install-
rm cabal-install- cabal.sig
mkdir -p ~/.local/bin
mv cabal ~/.local/bin/

nano ~/.bashrc
export PATH="~/.cabal/bin:$PATH"
export PATH="~/.local/bin:$PATH"
source ~/.bashrc

cabal update

tar -xf ghc-8.6.5-x86_64-deb9-linux.tar.xz
rm ghc-8.6.5-x86_64-deb9-linux.tar.xz
cd ghc-8.6.5
sudo make install
cd ..

export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"

git clone

cd cardano-node
echo -e "package cardano-crypto-praos\n  flags: -external-libsodium-vrf" > cabal.project.local

git fetch --all --tags
git tag
git checkout tags/1.14.0
rm ~/.cabal/bin/*
cabal install cardano-node cardano-cli

cabal build all

cp -p dist-newstyle/build/x86_64-linux/ghc-8.6.5/cardano-node-1.14.0/x/cardano-node/build/cardano-node/cardano-node ~/.local/bin/
cp -p dist-newstyle/build/x86_64-linux/ghc-8.6.5/cardano-cli-1.14.0/x/cardano-cli/build/cardano-cli/cardano-cli ~/.local/bin/

1 Like

I have the same problem :frowning:

I had to rebuild everything from scratch …

The error “Protocol key not found” is very likely thrown because of a missing entry in config.json file. There should be something like:

“Protocol”: “TPraos”,
“GenesisFile”: “shelley_testnet-genesis.json”,
“RequiresNetworkMagic”: “RequiresMagic”,

Please see documentation for details on the config file:

1 Like

3 posts were split to a new topic: Error in $: key “protocolMagicId” not found”