StakePool - Google Cloud Platform : Local Machine - TestNet - Cardano-node 1.25.1

Hello,

I have an issue with my Stake Pool Setup. Block producer node does not seem to be connecting with the relay node but the relay node runs fine and syncs with the blockchain. Can you please let me know what is wrong with my config?

Error msg :
[2021-04-14 21:25:04.93 UTC] IPs: 0.0.0.0:0 [::]:0 [34.123.182.196:3000] Failed to start all required subscriptions

IPs: 0.0.0.0:0 [::]:0 [34.123.182.196:3000] Skipping peer 34.123.182.196:3000

OS - Linux Ubuntu on both systems i.e. Local and Google Cloud

Relay Node - Google cloud
Relay Node Config -
{
“Producers”: [
{
“addr”: “relays-new.cardano-testnet.iohkdev.io”,
“port”: 3001,
“valency”: 2
},
{
“addr”: “89.101.167.250”,
“port”: 6000,
“valency”: 1
}
]
}

Block Producer : Local Machine
Block Producer config:

{
“Producers”: [
{
“addr”: “34.123.182.196”,
“port”: 3000,
“valency”: 1
}
]
}

1 Like

Hi!

The port of the relay node is closed from outside.

~ $ netcat -zvn 34.123.182.196 3000
netcat: connect to 34.123.182.196 port 3000 (tcp) failed: Connection refused

Have you opened it? Using firewall rules  |  VPC  |  Google Cloud

just by accident I tested port 3001

~ $ netcat -zvn 34.123.182.196 3001
Connection to 34.123.182.196 3001 port [tcp/*] succeeded!

So maybe the port of your relay is 3001?
you can check which port is really used as listening port on relay machine with netstat -lnopta

@laplasz thanks for the reply. Yes i believe so , i allowed three ports on my GCP

3000,3001 and 3002

so provide the output of the netstat -lnopta on the relay

I changed the Producer node to point to 3001 now seems to have connected but it also seems stuck?

Left is the block producer … any idea or is this normal?

image

no, it is not normal… could you just replace the address with IOHK address in BP topology?
{
“addr”: “relays-new.cardano-testnet.iohkdev.io”,
“port”: 3001,
“valency”: 2
}
to test the node…

Yes that works perfectly thanks. I am using the external IP on my GCloud , should it be the internal one? Another thing i am skeptical of is that in my Relay config i am pointing back to my BP node . Using the script you sent : netstat -lnopta i dont see the port or ip address.

I am supposed to connect back to my BP from relay right?

{
“addr”: “89.101.167.250”,
“port”: 6000,
“valency”: 1
}

yes, later on we can continue with relay configuration…
you need to use the external IP, so lets just modify the valency to 2 as it is defined in case of IOHK…

{
“Producers”: [
{
“addr”: “34.123.182.196”,
“port”: 3001,
“valency”: 2
}
]
}

Okay , BP topology config is modified. Do i run them again to see if they connect or do we configure the Relay next?

start the BP and be sure that relay is also running… since BP is syncing from relay

Okay . It is still stuck on the same place as before

IPs: 0.0.0.0:0 [::]:0 [34.123.182.196:3001] Connection Attempt End, destination 34.123.182.196:3001 outcome: ConnectSuccessLast

This is how i am running my node FYI on both BP and Relay:

./cardano-node run --topology ./testnet-topology.json --database-path ./state-lp --port 3001 --config ./testnet-config.json --socket-path ./node.socket

1 Like

Will check your relay with my relay soon

OKay , thanks let me know if you are able to connect.

[dell:cardano.node.addresses:Notice:5] [2021-04-15 11:19:38.59 UTC] [SocketInfo 0.0.0.0:3003]
[dell:cardano.node.diffusion-mode:Notice:5] [2021-04-15 11:19:38.59 UTC] InitiatorAndResponderDiffusionMode
[dell:cardano.node.dns-producers:Notice:5] [2021-04-15 11:19:38.59 UTC] []
[dell:cardano.node.ip-producers:Notice:5] [2021-04-15 11:19:38.59 UTC] IPSubscriptionTarget {ispIps = [34.123.182.196:3001], ispValency = 1}
[dell:cardano.node.ChainDB:Info:5] [2021-04-15 11:19:38.95 UTC] Opened imm db with immutable tip at genesis (origin) and chunk 0
[dell:cardano.node.ChainDB:Info:5] [2021-04-15 11:19:38.95 UTC] Opened vol db
[dell:cardano.node.ChainDB:Info:5] [2021-04-15 11:19:38.95 UTC] Replaying ledger from genesis
[dell:cardano.node.ChainDB:Info:5] [2021-04-15 11:19:39.11 UTC] Opened lgr db
[dell:cardano.node.ChainDB:Info:5] [2021-04-15 11:19:39.11 UTC] Opened db with immutable tip at genesis (origin) and tip genesis (origin)
[dell:cardano.node.ChainDB:Notice:36] [2021-04-15 11:19:39.11 UTC] Chain extended, new tip: d2d90d10993b3eb309f5485a5413cb9c9fe4f088e79b7b4e815dbbe8fcb8e4b7 at slot 0

for me your relay is ok.
are you sure that the topology file is this exactely:

{
  "Producers": [
{
  "addr": "34.123.182.196",
  "port": 3001,
  "valency": 2
}
]
}

since in your logs there is an empty address:
IPs: 0.0.0.0:0 [::]:0

Hmm strange this is my BP topology. What does your relay topology file look like?

{
“Producers”: [
{
“addr”: “34.123.182.196”,
“port”: 3001,
“valency”: 2
}
]
}

what is the node version of BP?

They are both v1.25.1

please create a new topology file with the correct content and use that new file during running

We have the same content from what i can see or am i missing something? I can see that my Relay cannot connect back to my BP. So could be a firewall issue potentially?

image

6000 is not ok - 3001 is the port of your BP as well.
but it is not relevant in this case - since BP should connect to relay and sync, even the relay can not connect to BP

so just create a new topology file and use that when running the BP
remember - I could connect to your relay and sync, even your relay did not connect to my relay…