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 185.183.182.53
> --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:

/HOME
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

/DOWNLOADS
wget https://downloads.haskell.org/~cabal/cabal-install-3.2.0.0/cabal-install-3.2.0.0-x86_64-unknown-linux.tar.xz
tar -xf cabal-install-3.2.0.0-x86_64-unknown-linux.tar.xz
rm cabal-install-3.2.0.0-x86_64-unknown-linux.tar.xz 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

wget https://downloads.haskell.org/~ghc/8.6.5/ghc-8.6.5-x86_64-deb9-linux.tar.xz
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
./configure
sudo make install
cd ..

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

git clone https://github.com/input-output-hk/cardano-node.git

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/

/RELAY and /NODE
wget https://hydra.iohk.io/build/3175192/download/1/shelley_testnet-config.json
wget https://hydra.iohk.io/build/3175192/download/1/shelley_testnet-genesis.json
wget https://hydra.iohk.io/build/3175192/download/1/shelley_testnet-topology.json
GitHub
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: https://docs.cardano.org/projects/cardano-node/en/latest/getting-started/understanding-config-files.html

1 Like

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