There was an error reading the genesis file: ./testnet-alonzo-genesis.json Error: ./testnet-alonzo-genesis.json: openBinaryFile: does not exist (No such file or directory)

Dear Cardano Experts,
I am getting the error message “There was an error reading the genesis file: ./testnet-alonzo-genesis.json Error: ./testnet-alonzo-genesis.json: openBinaryFile: does not exist (No such file or directory)” while I was trying to Start Cardano node with the following commands (my IP is masked). Please let me know how to fix this issue.
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

If u followed the coinchasew guide the start up script should look like


cat > $NODE_HOME/startBlockProducingNode.sh << EOF

#!/bin/bash

DIRECTORY=$NODE_HOME

PORT=3001

HOSTADDR=0.0.0.0

TOPOLOGY=\${DIRECTORY}/${NODE_CONFIG}-topology.json

DB_PATH=\${DIRECTORY}/db

SOCKET_PATH=\${DIRECTORY}/db/socket

CONFIG=\${DIRECTORY}/${NODE_CONFIG}-config.json

/usr/local/bin/cardano-node run --topology \${TOPOLOGY} --database-path \${DB_PATH} --socket-path \${SOCKET_PATH} --host-addr \${HOSTADDR} --port \${PORT} --config \${CONFIG}

EOF

Thank you Alex

Hi, I solve the problem downloading the testnet-alonzo-genesis.json file with:

wget https://hydra.iohk.io/job/Cardano/cardano-node/cardano-deployment/latest-finished/download/1/testnet-alonzo-genesis.json

2 Likes