CNCLI sync gives Connection refused error

I followed the installation instructions on github for CNCLI to enable cncli sync and sendtip. Both scripts gives connection refused error on my node.
The scripts are running locally on the block producing node.
Is there any logs I can look at that explains the error better?

Error:
ERROR cncli::nodeclient::sync > Os { code: 111, kind: ConnectionRefused, message: “Connection refused” }

Im on Centos 8 - if that makes a difference

Hi!

What was the command you executed?
syncing:
cncli sync --host 127.0.0.1 -p 3001

so have you provided the the correct listening address of the block producing node?

I think so? You set that in the mainnet-topology file?

cncli sync --host 127.0.0.1 --port 6000 --db /root/scripts/cncli.db

my mainnett-topology.json

{
“Producers”: [
{
“addr”: [redacted],
“port”: 6000,
“valency”: 2
}
]
}

no - topology file contains remote node addresses
so use sudo netstat -laoptn to figure it out where the cardano-node is listening

Ah! Thanks! It was on 6001!

great!:slight_smile:

consider mark one of the post as solution to indicate others no need more attention

1 Like