Relay node not able to talk to Core node & vice versa

Core node topology :

{
  "Producers": [
    {
      "addr": "107.179.38.10",
      "port": 3000,
      "valency": 1
    }
  ]
}

Relay node topology

{
  "Producers": [
    {
      "addr": "192.3.229.59",
      "port": 3000,
      "valency": 1
    }
  ]
}

Starting relay node using:

/home/prateek/.local/bin/cardano-node +RTS -N2 -RTS run \
   --topology /home/prateek/relay_testnet/testnet-topology.json \
   --database-path /home/prateek/relay_testnet/db \
   --socket-path /home/prateek/relay_testnet/db/node.socket \
   --host-addr 0.0.0.0 \
   --port 3000 \
   --config /home/prateek/relay_testnet/testnet-config.json

Starting core node using:

/home/prateek/.local/bin/cardano-node +RTS -N2 -RTS  run \
   --topology /home/prateek/relay_testnet/testnet-topology.json \
   --database-path /home/prateek/relay_testnet/db \
   --socket-path /home/prateek/relay_testnet/db/node.socket \
   --host-addr 0.0.0.0 \
   --port 3000 \
   --config /home/prateek/relay_testnet/testnet-config.json \
   --shelley-kes-key $pool_keys_dir/kes.skey \
   --shelley-vrf-key $pool_keys_dir/vrf.skey \
   --shelley-operational-certificate $node_cert_dir/node.cert

cardano node version installed

cardano-node --version
cardano-node 1.34.1 - linux-x86_64 - ghc-8.10
git rev 73f9a746362695dc2cb63ba757fbcabb81733d23

Connectivity check

nc -zv 192.3.229.59 3000
Connection to 192.3.229.59 3000 port [tcp/*] succeeded!

nc -zv 107.179.38.10 3000
Connection to 107.179.38.10 3000 port [tcp/*] succeeded!

Issue seen in relay logs

May 30 20:09:36 relay kryptolions-testnet-pool[760]: #033[35m[relay:cardano.node.IpSubscription:Notice:67]#033[0m [2022-05-30 19:09:36.87 UTC] IPs: 0.0.0.0:0 [192.3.229.59:3000] Waiting 0.025s before attempting a new connection
May 30 20:09:36 relay kryptolions-testnet-pool[760]: #033[35m[relay:cardano.node.IpSubscription:Notice:90]#033[0m [2022-05-30 19:09:36.87 UTC] IPs: 0.0.0.0:0 [192.3.229.59:3000] Connection Attempt End, destination 192.3.229.59:3000 outcome: ConnectSuccessLast
May 30 20:10:46 relay kryptolions-testnet-pool[760]: #033[33m[relay:cardano.node.ErrorPolicy:Warning:74]#033[0m [2022-05-30 19:10:46.19 UTC] IP 192.3.229.59:52400 ErrorPolicySuspendPeer (Just (ApplicationExceptionTrace (MuxError MuxBearerClosed "<socket: 95> closed when reading data, waiting on next header True"))) 20s 20s
May 30 20:11:31 relay kryptolions-testnet-pool[760]: #033[33m[relay:cardano.node.ErrorPolicy:Warning:74]#033[0m [2022-05-30 19:11:31.34 UTC] IP 192.3.229.59:40477 ErrorPolicySuspendPeer (Just (ApplicationExceptionTrace (MuxError (MuxIOException Network.Socket.recvBuf: resource vanished (Connection reset by peer)) "(recv errored)"))) 20s 20s

Issue seen on core node logs

May 30 20:13:02 clone kryptolions-testnet-pool-core[840]: #033[35m[clone:cardano.node.ErrorPolicy:Notice:56]#033[0m [2022-05-30 19:13:02.40 UTC] IP 107.179.38.10:3000 ErrorPolicySuspendConsumer (Just (ApplicationExceptionTrace ExceededTimeLimit (ChainSync (Header (HardForkBlock (': * ByronBlock (': * (ShelleyBlock (ShelleyEra StandardCrypto)) (': * (ShelleyBlock (ShelleyMAEra 'Allegra StandardCrypto)) (': * (ShelleyBlock (ShelleyMAEra 'Mary StandardCrypto)) (': * (ShelleyBlock (AlonzoEra StandardCrypto)) ('[] *)))))))) (Tip HardForkBlock (': * ByronBlock (': * (ShelleyBlock (ShelleyEra StandardCrypto)) (': * (ShelleyBlock (ShelleyMAEra 'Allegra StandardCrypto)) (': * (ShelleyBlock (ShelleyMAEra 'Mary StandardCrypto)) (': * (ShelleyBlock (AlonzoEra StandardCrypto)) ('[] *)))))))) (ServerAgency TokNext TokMustReply))) 20s
May 30 20:13:02 clone kryptolions-testnet-pool-core[840]: #033[34m[clone:cardano.node.IpSubscription:Info:99]#033[0m [2022-05-30 19:13:02.40 UTC] IPs: 0.0.0.0:0 [107.179.38.10:3000] Closed socket to 107.179.38.10:3000
May 30 20:13:03 clone kryptolions-testnet-pool-core[840]: #033[34m[clone:cardano.node.IpSubscription:Info:60]#033[0m [2022-05-30 19:13:03.40 UTC] IPs: 0.0.0.0:0 [107.179.38.10:3000] Restarting Subscription after 91.0473734s desired valency 1 current valency 0
May 30 20:13:03 clone kryptolions-testnet-pool-core[840]: #033[34m[clone:cardano.node.IpSubscription:Info:60]#033[0m [2022-05-30 19:13:03.40 UTC] IPs: 0.0.0.0:0 [107.179.38.10:3000] Trying to connect to 107.179.38.10:3000
May 30 20:13:03 clone kryptolions-testnet-pool-core[840]: #033[34m[clone:cardano.node.IpSubscription:Info:117]#033[0m [2022-05-30 19:13:03.40 UTC] IPs: 0.0.0.0:0 [107.179.38.10:3000] Connection Attempt Start, destination 107.179.38.10:3000
May 30 20:13:03 clone kryptolions-testnet-pool-core[840]: #033[35m[clone:cardano.node.IpSubscription:Notice:60]#033[0m [2022-05-30 19:13:03.40 UTC] IPs: 0.0.0.0:0 [107.179.38.10:3000] Waiting 0.025s before attempting a new connection
May 30 20:13:03 clone kryptolions-testnet-pool-core[840]: #033[35m[clone:cardano.node.IpSubscription:Notice:117]#033[0m [2022-05-30 19:13:03.41 UTC] IPs: 0.0.0.0:0 [107.179.38.10:3000] Connection Attempt End, destination 107.179.38.10:3000 outcome: ConnectSuccessLast

I have disabled the firewall on both the machines for now.
I have went every possible post around this issue but can’t get it to work. Please help.

Hi,

The servers are 100% synced?
VPS servers?

If the nodes are not 100% synced then add back the IOHK testnet servers inside the topology file, restart the node and after that :

  • on BP topology file add only the relay
  • on Relay run topology updater (where u will add the BP IP + port)

Cheers,

1 Like

The servers are 100% synced? - NO
VPS servers? - YES

Where can I get the IOHK testnet servers details from?
Should I add them only to relay?
Topology updater - can you please share the relevant doc?

I am beyond impressed by your quick response. Thank you taking interest in my post.

Add only the IOhK testnet servers on both servers (servers will not connect to each other if are not synced)

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

Which guide did u followed?

2 Likes

I followed this guide

Added the IOHK testnet servers. Waiting for both the nodes to sync.
I think I completely missed the topology updater . Didn’t see it in the above document . Can you please point me to the write place from where I can install?

Ok,

Wait for the nodes to sync then configure:

On relay configure the topology file
On BP (after u set the relay) remove IOHK servers and add the relay IP + port

Use coincashew guide (testnet config)

3 Likes